checkStock
Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.
All HTTP operationsPOST
Quantity availability hint only; non-visible IDs return zeroed not_found/not_published/archived status, unlimited inventory uses a boolean.
publishableKeyheader
X-Publishable-Key<token>Tenant publishable key for authentication (sent via X-Publishable-Key header)
application/json- body
items*array<>Items
1 <= items <= 100Actual shaped success body
application/json- response
results*array<>allAvailable*booleanExamples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.
curl -X POST 'https://api.01.software/api/products/stock-check' \ -H 'Content-Type: application/json' \ -d '{ "items": [ { "variantId": "string", "quantity": 1 } ]}'Example Response
{ "results": [ { "variantId": "string", "status": "available", "availableStock": 0, "isUnlimited": true, "available": true, "requestedQuantity": 0, "error": "string" } ], "allAvailable": true}