Openapi
Set the on-hand quantity of a variant at a location to a counted quantity and write the difference as a count movement.
sb-auth-token<token>Supabase browser session cookie. Supabase may split larger session values into chunked cookies like sb-auth-token.0.
organizationId*stringuuidThe inventory stock count payload.
application/jsonbinId?|uuidcounted*number0 <= valuelocationId*inventoryLocationIdSchemauuidlotId?|uuidnote?|length <= 4000variantId*stringuuidReturns the count movement and the new stock quantities.
application/jsonavailable*numbermovementId*|uuidonHand*numbercurl -X POST 'https://app.localhost/api/v1/organizations/123/inventory/stock-counts' \ -H 'Content-Type: application/json' \ -d '{ "counted": 0, "locationId": "1a5515a3-ba81-4a42-aee7-ad9ffc090a54", "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf"}'{ "available": 0, "movementId": "6d70aa0f-b438-487d-b073-0eb66eb6ab63", "onHand": 0}