Stock Takes
List Stock Takes (Paginated)
Get paginated stock takes with filtering, sorting and search. Uses Spatie QueryBuilder + GroupedFilterSupport.
DataTable Index
DataTable-powered index for stock takes (legacy endpoint). Returns stock takes for the main DataTable component.
Create Stock Take
Create a new stock take.
Bulk Delete
Delete multiple Shopify products from the local database (does not delete in Shopify).
Show 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 by SKU, name, or barcode. Results are prioritised: exact SKU match first, then SKU prefix, then exact barcode, then barcode prefix, then other matches. Only active (non-archived) products are returned.
Resolve SKUs
Bulk resolve a list of SKUs or barcodes to products in a single query. Used for importing large stock count sheets.
Bulk Insert (Create 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
Re-take inventory snapshot for an open stock take. Updates all items' snapshot_inventory to current levels.
Zero Out
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.
Adjustment Preview
Get a feasibility preview for each item before finalizing an adjustment mode stock take.
Reverse Analysis
Analyze whether a closed stock take can be reversed. Shows which items have consumed FIFO layers.
Compensating Adjustment
Create a compensating adjustment stock take for a closed stock take whose FIFO layers have been consumed.
Cost Correction Preview
Preview the impact of applying cost corrections to a closed stock take's FIFO layers.
Apply Cost Correction
Apply cost corrections to a closed stock take's FIFO layers.
Get FIFO Layers
Returns FIFO inventory layers originating from this warehouse transfer.
Get Inventory Movements
Returns paginated inventory movements generated by this warehouse transfer (both ship-out and receive-in movements).
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 Best Available COGS (from FIFO layers) and the product's unit cost, for use in the cost correction UI.
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
Archive multiple Shopify products by their IDs.
Bulk Unarchive
Bulk unarchive multiple stock takes.
Check Deletable
Check which nominal codes can be deleted. A code cannot be deleted if it is linked to sales order lines or used in nominal code mapping settings.