Stock

Replace the unsold serials with this list (sold and held ones are kept)

PUT
/v1/stores/{storeId}/variants/{variantId}/serials

Authorization

AuthorizationBearer <token>

API key from Settings → API keys

In: header

Path Parameters

storeId*string
variantId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/v1/stores/string/variants/string/serials" \  -H "Content-Type: application/json" \  -d '{    "values": [      "string"    ]  }'
{  "added": -9007199254740991,  "removed": -9007199254740991,  "kept": -9007199254740991,  "stock": {    "mode": "unlimited",    "available": -9007199254740991,    "reserved": -9007199254740991,    "onHand": -9007199254740991,    "pool": {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "name": "string",      "unitsPerItem": -9007199254740991    }  }}