/inventory
Sets the total number of available units Purple Dot uses when exporting pre-orders. Each call sets an absolute count, not a change, so repeating a request produces the same result.
Authorizations
X-Purple-Dot-Access-TokenstringRequired
Your store's private access token. It can also be sent as Authorization: Bearer <token>.
Body
skustringRequiredExample:
The SKU whose inventory level is being updated.
LRS221available_unitsintegerRequiredExample:
The number of units of this SKU that are available.
25updated_atstring · date-timeOptionalExample:
When the level was measured. Defaults to now.
2024-11-14T16:22:59.432ZResponses
201
The update was received.
application/json
400
A required attribute is missing or invalid.
application/json
401
Access token not valid.
application/json
post/inventory
POST /admin/api/v1/inventory HTTP/1.1
Host: www.purpledotprice.com
X-Purple-Dot-Access-Token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 77
{
"sku": "LRS221",
"available_units": 25,
"updated_at": "2024-11-14T16:22:59.432Z"
}{
"data": {
"sku": "LRS221",
"available_units": 25
}
}Last updated