/pre-orders
Retrieves all pre-orders for a shopper email address. Unlike the other public endpoints, api_key alone is not enough: either sign the request, sending api_key, email, timestamp and a token computed from them (see Authorizations), or authenticate the shopper with a Shopify Customer Account session token.
Your store's public API key, from the Integration page of the Purple Dot merchant portal.
Required by GET /pre-orders together with api_key, timestamp and email. The hex HMAC-SHA256 of <email>:<timestamp>, keyed with your shared secret (on the Integration page of the Purple Dot merchant portal). Sign requests in code you control, because the shared secret must not be exposed. A token is valid for under 60 seconds after its timestamp, so generate a new one for each request.
Required by GET /pre-orders together with api_key, token and email. The time the token was signed, in epoch seconds.
The email address of the shopper whose pre-orders you want. Required with api_key; not sent with a Customer Account session token.
ada@example.comNumber of pre-orders to return. Defaults to 10, maximum 100.
10Example: 10Returns pre-orders after the given pre-order ID.
58da51c9-9b48-48c6-beb5-46bd34834960Pre-orders placed at or after this time.
2025-01-01T00:00:00.000ZPre-orders placed at or before this time.
2025-12-31T23:59:59.000ZSort order by creation time. Defaults to created_at_asc.
created_at_ascExample: created_at_descPossible values: The shopper’s pre-orders.
Missing or unknown api_key.
GET /api/v1/pre-orders?api_key=<api_key>&email=ada%40example.com×tamp=<timestamp>&token=<token> HTTP/1.1
Host: www.purpledotprice.com
Accept: application/json{
"meta": {
"result": "success"
},
"data": {
"pre_orders": [
{
"id": "58da51c9-9b48-48c6-beb5-46bd34834960",
"reference": "#PD404821",
"created_at": "2024-11-14T16:18:25.635Z",
"placed_at": "2024-11-14T16:18:25.635Z",
"total_amount": 129.99,
"currency": "GBP",
"payment_status": "Paid",
"cancelled": false,
"timezone": "Europe/London",
"line_items": [
{
"id": "55bedf52-ccf0-431a-a75b-2e999e93a5da",
"estimated_ship_dates": "Estimated ship date 10–15 Jun",
"earliest_ship_date": "2025-06-10T00:00:00.000Z",
"latest_ship_date": "2025-06-15T00:00:00.000Z",
"product_handle": "womens-white-sneakers",
"product_name": "Women’s White Sneakers",
"image_url": "https://cdn.example.com/sneakers.jpg",
"product_id": "4697179062404",
"variant_id": "32813576749188",
"order_id": "5616927408181",
"external_order_id": "gid://shopify/Order/5616927408181",
"is_ready_to_fulfill": false,
"is_fulfilled": false,
"order_reference": "#3114029",
"order_token": "c1f2a8e0d4b64a7f9e3c5b2a1d0f8e67",
"cancelled": false
}
],
"shipping_address": {
"first_name": "Ada",
"last_name": "Lovelace",
"address1": "1 Analytical Way",
"address2": "Flat 2",
"city": "London",
"postal_code": "N1 1AA",
"province_code": "LND",
"country_code": "GB",
"phone": "+447700900123"
}
}
],
"has_more": false,
"starting_after": "58da51c9-9b48-48c6-beb5-46bd34834960"
}
}Last updated