Stock

Add or remove pool units, or set the units on hand

POST
/v1/stores/{storeId}/stock-pools/{poolId}/stock

Authorization

AuthorizationBearer <token>

API key from Settings → API keys

In: header

Path Parameters

storeId*string
poolId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X POST "https://example.com/v1/stores/string/stock-pools/string/stock" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "name": "string",  "onHand": -9007199254740991,  "reserved": -9007199254740991,  "available": -9007199254740991,  "createdAt": "string",  "members": [    {      "variantId": "d53feca7-c65b-4741-aca7-827a42d686bf",      "productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",      "productName": "string",      "variantName": "string",      "unitsPerItem": -9007199254740991,      "available": -9007199254740991    }  ]}