Stock Takes
List Stock Takes
Get paginated stock takes with filtering, sorting and search. Uses Spatie QueryBuilder + GroupedFilterSupport.
Search Stock Takes
Returns the same paginated list of stock takes as the GET version of this endpoint, but accepts filters as a JSON request body instead of the query string. Use this POST variant when the filter set is too large or too complex to fit in a URL.
Get Stock Take
Get a single stock take with full details including items, warehouse, parent and child stock takes.
Update Stock Take
Update a stock take and its line items. Handles adding, updating, and removing items.
Delete Stock Take
Delete a single stock take.
Search Products
Search products for adding to a stock take. Returns standard and kit products only (excludes archived).
Resolve SKUs
Bulk resolve a list of SKUs or barcodes to products in a single query. Used for importing large stock count sheets.
Create Stock Take
Create a new stock take.
Bulk Delete Stock Takes
Bulk delete multiple stock takes.
Create Stock Take from Products
Create a new stock take and bulk-insert product IDs as line items in one operation.
Check Initial Uniqueness
Check if an initial stock take already exists for a warehouse + condition combination.
Initiate Count
Transition a stock take from Draft to Open status. Takes an inventory snapshot for all items.
Re-Snapshot Inventory
Re-take inventory snapshot for an open stock take. Updates all items' snapshot_inventory to current levels.
Zero Out Counted Quantities
Set all counted quantities to zero (or to allocated quantities). Only works for open, non-adjustment stock takes.
Finalize Stock Take
Finalize an open stock take. Creates inventory adjustments for all variances and transitions to Closed status.
Finalize Adjustment
Finalize an adjustment mode stock take (goes directly from Draft to Closed, bypassing Open status).
Revert to Draft
Revert an open stock take back to draft status.
Reverse Stock Take
Reverse a closed stock take, undoing all inventory adjustments.
Get Reconciliation Preview
Get a preview of what reconciliation will do, including items with conflicts and open fulfillments.
Execute Reconciliation
Execute reconciliation for an open stock take, handling fulfillment conflicts and applying adjustments.
Get Reconciliation Logs
Get reconciliation log entries for a stock take.
Cancel Fulfillment
Cancel a single fulfillment as part of reconciliation preparation. Called line-by-line before executeReconciliation.
Preview Adjustment Feasibility
Get a feasibility preview for each item before finalizing an adjustment mode stock take.
Analyze Reversibility
Analyze whether a closed stock take can be reversed. Shows which items have consumed FIFO layers.
Create Compensating Adjustment
Create a compensating adjustment stock take for a closed stock take whose FIFO layers have been consumed.
Preview Cost Correction
Preview the impact of applying cost corrections to a closed stock take's FIFO layers.
Preview FIFO Reallocation
Dry-run the FIFO reallocation that re-dating this stock take to the proposed date would cause, without writing anything. Returns the impact summary: how many outbound usages would be reassigned to different cost layers, the net COGS delta, a per-product breakdown, and whether the change would touch a locked accounting period (in which case the actual re-date is blocked).
Apply Cost Correction
Apply cost corrections to a closed stock take's FIFO layers.
Get FIFO Layers
Get FIFO inventory layers connected to this stock take's items.
Get Inventory Movements
Get all inventory movements linked to this stock take.
Get During-Count Movements
Get inventory movements that occurred during the stock take counting period (after snapshot was taken), excluding movements belonging to this stock take itself.
Get Product Cost Options
Get cost options for a product in a warehouse. Returns the best available COGS (derived from FIFO cost history) and the product's default unit cost. Both values are per stock unit and returned with up to 4 decimal places of precision — products stocked in small units (oz, g, ml) routinely have per-unit costs below $0.01.
Get Inventory Start Date
Get the inventory start date from application settings. Used to validate initial count dates.
Import Lines from CSV
Import stock take lines from a previously uploaded CSV file. The CSV must have columns: sku or id (product identifier), and optionally qty_counted, snapshot_inventory, unit_cost.
Archive Stock Take
Archive a single stock take.
Unarchive Stock Take
Unarchive a single stock take.
Bulk Archive Stock Takes
Bulk archive multiple stock takes.
Bulk Unarchive Stock Takes
Bulk unarchive multiple stock takes.
Check Deletable Stock Takes
Check whether stock takes can be deleted. Returns deletable status and reason for each.