/pre-orders/count
Count all pre-orders.
Request:
created_at_min
(ISO8610 timestamp) - Count pre-orders created since the given timeupdated_at_min
(ISO8610 timestamp) - Count pre-orders updated since the given timeskus
(string) - Comma separated list of product variant SKUsall_line_items
(string) - Count pre-orders where every line item is any of these comma separated states. Currently supported arecancelled
andexported
some_line_item
(string) - Count pre-orders where at least 1 line item is any of these comma separated states. Currently supported arecancelled
andexported
. Cannot be used in conjunction withall_line_items
Body:
count
- The number of pre-orders that meet the requested criteria
Examples:
curl --request GET \
--url 'https://www.purpledotprice.com/admin/api/v1/pre-orders/count?created_at_min=2023-08-17T00:00:00.000Z&all_line_items=cancelled&skus=TEST1&limit=1' \
--header 'X-Purple-Dot-Access-Token: <access_token>'
{
"meta": {
"result": "success"
},
"data": {
"count": 1
}
}
Last updated