For the complete documentation index, see llms.txt. This page is also available as Markdown.

/pre-orders/count-units/sku/:sku

Count pre-order units for a SKU

get

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
skustringRequired

The SKU code to count.

Example: LRS221
Query parameters
at_timestring · date-timeOptional

The counts reflect the state at this moment. Defaults to the current time. Cannot be in the future.

Example: 2023-08-18T09:57:49.576Z
Responses
200

Unit counts.

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