/pre-orders/count-units/sku/:sku
Returns counts of open, canceled and exported pre-order units for a single SKU.
Authorizations
X-Purple-Dot-Access-TokenstringRequired
Your store's private access token. It can also be sent as Authorization: Bearer <token>.
Path parameters
skustringRequiredExample:
The SKU code to count.
LRS221Query parameters
at_timestring · date-timeOptionalExample:
The counts reflect the state at this moment. Defaults to the current time. Cannot be in the future.
2023-08-18T09:57:49.576ZResponses
200
Unit counts.
application/json
400
at_time is in the future, or the store’s platform is unsupported.
401
Access token not valid.
application/json
get/pre-orders/count-units/sku/{sku}
GET /admin/api/v1/pre-orders/count-units/sku/{sku} HTTP/1.1
Host: www.purpledotprice.com
X-Purple-Dot-Access-Token: YOUR_API_KEY
Accept: */*
{
"meta": {
"result": "success"
},
"data": {
"sku": "LRS221",
"at_time": "2023-08-18T09:57:49.576Z",
"open_units": 14,
"canceled_units": 15,
"exported_units": 12
}
}Last updated