Complete a stock check
Finalize a stock check after counts have been recorded. Any product groups that were not counted are implicitly recorded as a physical count of zero. The stock check transitions to passed if every group’s latest attempt matched the system count, or to failed otherwise. The associated task is marked as completed at the same time.
Request Structure
No request body is required.Behavior
- Any product group with no recorded attempt is automatically counted as zero, producing a failed attempt where stock was expected.
- The stock check’s final status is
passedwhen all groups’ latest attempts succeeded, otherwisefailed. - The associated task is completed and
last_counted_atis set on the location and any matched stocks. - The stock check must currently be in
pendingstatus and its task must not be completed or cancelled; otherwise 422 is returned. - Failed stock check records can subsequently be resolved with a reason code via
POST /api/stock_checks/resolve.
Authorizations
OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.
The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.
Path Parameters
The unique identifier of the stock check
Response
Stock check completed
Final status of the stock check after completion
passed, failed 
