> For the complete documentation index, see [llms.txt](https://docs.getpurpledot.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getpurpledot.com/docs/purple-dot-apis/private-api/pre-orders-count-units-sku-sku.md).

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

## Count pre-order units for a SKU

> Returns counts of open, canceled and exported pre-order units for a single SKU.

```json
{"openapi":"3.1.0","info":{"title":"Purple Dot Private API","version":"v1"},"tags":[{"name":"/pre-orders/count-units/sku/:sku"}],"servers":[{"url":"https://www.purpledotprice.com/admin/api/v1","description":"Production"}],"security":[{"accessToken":[]}],"components":{"securitySchemes":{"accessToken":{"type":"apiKey","in":"header","name":"X-Purple-Dot-Access-Token","description":"Your store's private access token. It can also be sent as `Authorization: Bearer <token>`."}},"schemas":{"AuthErrorResponse":{"type":"object","properties":{"error":{"type":"string"}},"required":["error"]},"ErrorResponse":{"type":"object","properties":{"meta":{"type":"object","properties":{"error":{"type":"string","description":"Human-readable message."},"errorData":{"type":"object","additionalProperties":{},"description":"Structured detail about the error."}},"required":["error","errorData"]},"data":{"type":"object","properties":{}}},"required":["meta","data"]}}},"paths":{"/pre-orders/count-units/sku/{sku}":{"get":{"tags":["/pre-orders/count-units/sku/:sku"],"summary":"Count pre-order units for a SKU","description":"Returns counts of open, canceled and exported pre-order units for a single SKU.","parameters":[{"schema":{"type":"string","description":"The SKU code to count."},"required":true,"description":"The SKU code to count.","name":"sku","in":"path"},{"schema":{"type":"string","description":"The counts reflect the state at this moment. Defaults to the current time. Cannot be in the future."},"required":false,"description":"The counts reflect the state at this moment. Defaults to the current time. Cannot be in the future.","name":"at_time","in":"query"}],"responses":{"200":{"description":"Unit counts.","content":{"application/json":{"schema":{"type":"object","properties":{"meta":{"type":"object","properties":{"result":{"type":"string","enum":["success"]}},"required":["result"]},"data":{"type":"object","properties":{"sku":{"type":"string"},"at_time":{"type":"string","format":"date-time","description":"The time the counts were calculated for."},"open_units":{"type":"integer","description":"Units purchased through Purple Dot and still held there because they are not ready for fulfilment. An open unit ends up either canceled or exported, never both."},"canceled_units":{"type":"integer","description":"Units later canceled by the shopper or the merchant."},"exported_units":{"type":"integer","description":"Units later exported to the external e-commerce platform."}},"required":["sku","at_time","open_units","canceled_units","exported_units"]}},"required":["meta","data"]}}}},"400":{"description":"Missing access token. `at_time` is in the future, or the store’s platform is unsupported.","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/AuthErrorResponse"},{"$ref":"#/components/schemas/ErrorResponse"}]}}}},"401":{"description":"Access token not valid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthErrorResponse"}}}}}}}}}
```
