/pre-orders
List all pre-orders.
Note for customers using our platform integration with combined cart: this data does not include in-stock purchases that went through Purple Dot's checkout.
Request:
limit(number) - Optional. The number of pre-orders to retrieve. Set to 10 by default but can be set up to 200created_at_min(ISO8610 timestamp) - Optional. List pre-orders created since the given timeupdated_at_min(ISO8610 timestamp) - Optional. List pre-orders updated since the given timeupdated_at_max(ISO8610 timestamp) - Optional. List pre-orders updated no sooner than the given timereferences(string) - Optional. Comma separated list of (URL-encoded) Purple Dot order referencesskus(string) - Optional. Comma separated list of product variant SKUsall_line_items(string) - Optional. List pre-orders where every line item is any of these comma separated states. Currently supported arecancelledandexportedsome_line_item(string) - Optional. List pre-orders where at least 1 line item is any of these comma separated states. Currently supported arecancelledandexported. Cannot be used in conjunction withall_line_itemsstarting_after(UUID) - Optional. Paginate pre-orders after the given pre-order ID
Headers:
Link- An IETF RFC 8288 compliant header with links to previous and next page of results for the pre-order query.
Body:
orders- An array containing pre-ordersid- ID used to identify the pre-order inside Purple Dotreference- The Purple Dot order reference, the same as shared with the shopperscurrency- The presentment currency of the ordercreated_at- ISO8610 timestamp of when the pre-order was placedcancelled_at- ISO8610 timestamp of when the whole order was canceled (null if not canceled)cancel_reason- The reason for the cancelationcustomeremail- The customer's email addressexternal_id- The Shopify ID of this customer, if we know it
line_items- Array of line itemsid- The Purple Dot ID of the line itemname- The name of the product variant in this line itemsku- The SKU code of the product variant in this line itemproduct_id- The Shopify ID of the line item's productvariant_id- The Shopify ID of the line item's product variantwaitlist_id- The Purple Dot ID of the Waitlist this line item sold from. Could be null if the line item was in-stock at the time of sale but it was held back to ship with other line items that were on pre-orderquantity- The quantity of the line itemprice- The total cost of this line item, before taxes/discounts etcunit_price-pricedivided byquantitytaxable- Whether the product variant in this line item is taxabletax_lines- The taxes applied to the line itemprice- The total amount of tax for the line itemrate- The tax rate as a decimaltitle- The name of the taxinclusive- Whether this tax is already included in the line item price
total_discount- The total amount of discounts applied to the line itemtotal- The total cost of this line item, after tax/discounts etcunit_total-totaldivided byquantityearliest_ship_date- ISO8610 timestamp of the earliest date this line item is expected to shiplatest_ship_date- ISO8610 timestamp of the latest date this line item is expected to shipcancelled- If this line item has been canceledcancelled_at- ISO8610 timestamp of when the whole order was canceled (null if not canceled)
shipping_addressfirst_namelast_nameaddress1address2citypostal_codeprovince_code- The ISO3166 code of the second level administrative subdivisioncountry- The English name of the countrycountry_code- The ISO3166 code of the countryphone
shipping_lines- An array of shipping ratesid- The Purple Dot ID of the shipping lineprice- The unit cost of this shipping line, before taxes/discounts etctotal- The total cost of this shipping line, after tax/discounts etc are consideredtitle- The user-facing name of the shipping ratecode- The shipping rate carrier codetax_lines- The taxes applied to the shipping rateprice- The total amount of tax for the shipping linerate- The tax rate as a decimaltitle- The name of the taxinclusive- Whether this tax is already included in the shipping line price
line_items- The line items this shipping rate applies toline_item_id- The Purple Dot ID of the line item
subtotal_price- The total of the line items before taxes and shippingtotal_discounts- The total discounts applied to the pre-ordertotal_tax- The total tax on the pre-ordertax_included- Whether the tax is included in listed prices or nottax_lines- All the taxes applied to the pre-orderpriceratetitle
total_price- The pre-order totaltotal_refunded- The total of all refunds issued from this pre-orderexported_orders- Any orders that were exported to Shopify from this pre-orderid- The Shopify ID of the order that was exportedorder_number- The Shopify order numbercreated_at- ISO8610 timestamp of when this external order was createdline_items- The pre-order line items that were exportedid- The Shopify ID of the line itemline_item_id- The Purple Dot ID of the line item
starting_after- The ID of the last pre-order in the list which can then be used in the next requesthas_more- Indicates whether there are more pre-orders available to page through
Examples:
Last updated