/waitlists
List all waitlists
Request:
limit
(number) - The number of waitlists to retrieve. By default, it's set to 10 but can be set upto 100created_at_min
(ISO8610 timestamp) - List waitlists created since the given timeupdated_at_min
(ISO8610 timestamp) - List waitlists updated since the given timestarting_after
(UUID) - Paginate pre-orders after the given waitlist ID
Headers:
Link
- An IETF RFC 8288 compliant header with links to previous and next page of results for the preorder query.
Body:
waitlists
- An array containing waitlistsid
- ID used to identify the waitlist inside Purple Dotcreated_at
- ISO8610 timestamp of when the waitlist was createdearliest_ship_date
- ISO8610 timestamp of the earliest date the waitlisted product can shiplatest_ship_date
- ISO8610 timestamp of the latest date the waitlisted product can shipstate
- The state of the waitlist. This can be one of the following:LIVE
- Shoppers can start placing preorders for this product if there is no stock in ShopifyPAUSED
- Shoppers cannot place preorders for this product until the waitlist is unpausedCLOSED
- Waitlist is now closedSCHEDULED
- Waitlist will be live on the launch date
launch_date
- ISO8610 timestamp of when the waitlist will be livelabels
- Labels associated with the waitlistavailability
- A map of the product & variant-wise sales dataproduct
- Sales data for the productproduct_id
- Shopify ID for the productbuy_size
- Total number of units allocated for preordercommitted
- Total number of preorder units soldavailable
- Total number of preorder units available for sale
variants
- An array of the sales data for all the product variantsvariant_id
- Shopify ID of the product variantsku
- SKU code of the product variantbuy_size
- Total number of units of the product variant allocated for preorder (this will be null in the case of a per-product waitlist)committed
- Total number of preorder units of the product variant soldavailable
- Total number of preorder units available of the product variant for sale (this will be null in the case of a per-product waitlist)
starting_after
- The ID of the last waitlist in the list which can then be used in the next requesthas_more
- Indicates whether there are more orders available to page through
Examples:
curl --request GET \
--url 'https://www.purpledotprice.com/admin/api/v1/waitlists?limit=1&created_at_min=2023-08-17T00:00:00.000Z' \
--header 'X-Purple-Dot-Access-Token: <access_token>'
This is how a per-variant waitlist response would look like:
{
"meta":{
"result":"success"
},
"data":{
"waitlists":[
{
"id":"a2aecc56-ce64-49da-8ce6-099e664d85fd",
"created_at":"2023-10-27T14:44:09.726Z",
"earliest_ship_date":"2023-11-25T05:00:00.000Z",
"latest_ship_date":"2023-12-10T04:59:59.999Z",
"state":"CLOSED",
"launch_date":"2023-12-10T00:00:00.000Z",
"labels":[
],
"availability":{
"product":{
"product_id":"7257265143861",
"buy_size":10,
"committed":3,
"available":10
},
"variants":[
{
"variant_id":"42662551519285",
"sku":"ZTEST",
"buy_size":10,
"committed":3,
"available":10
}
]
}
}
],
"has_more":true,
"starting_after":"a2aecc56-ce64-49da-8ce6-099e664d85fd",
"previous_cursor":"0c34fc59-8a99-427f-a340-857e1eb9b6d2"
}
}
This is how a per-product waitlist response would look like:
{
"meta":{
"result":"success"
},
"data":{
"waitlists":[
{
"id":"c657585b-bfe0-4aca-867d-e2c3399969a3",
"created_at":"2023-09-20T16:57:55.928Z",
"earliest_ship_date":"2024-04-08T04:00:00.000Z",
"latest_ship_date":"2024-04-19T04:00:00.000Z",
"state":"CLOSED",
"launch_date":null,
"labels":[
],
"availability":{
"product":{
"product_id":"7233472626741",
"buy_size":10,
"committed":4,
"available":10
},
"variants":[
{
"variant_id":"42591503876149",
"sku":"TEST-S",
"buy_size":null,
"committed":2,
"available":null
},
{
"variant_id":"42591503843381",
"sku":"TEST-M",
"buy_size":null,
"committed":1,
"available":null
},
{
"variant_id":"42591503777845",
"sku":"TEST-L",
"buy_size":null,
"committed":1,
"available":null
}
]
}
}
],
"has_more":true,
"starting_after":"c657585b-bfe0-4aca-867d-e2c3399969a3",
"previous_cursor":null
}
}
Last updated