01.software Docs

getStockSnapshot

Use the SDK for application integration. This read-only reference covers Commerce, Customer Auth, Membership and Events.

All HTTP operations
GET
/api/products/stock

Live availability hint, not a reservation or checkout admission.

Authorization

publishableKey
headerX-Publishable-Key<token>

Tenant publishable key for authentication (sent via X-Publishable-Key header)

Query Parameters

variantIds*string

CSV, trimmed/filter-empty, 1–100 resulting IDs.

Length1 <= length

Response Body

Live stock hints

application/json
  1. response
snapshots*array<>

Examples may be generated from schemas; they are illustrative, not recorded successful API calls. Example snippets may omit required authentication headers.

Example Request
curl -X GET 'https://api.01.software/api/products/stock?variantIds=string'
Example Response
{  "snapshots": [    {      "variantId": "string",      "status": "available",      "availableStock": 0,      "isUnlimited": true,      "availableForSale": true,      "inventoryPolicy": "deny"    }  ]}