/products/preorder-state

Get the pre-order state of a whole product. Useful for determining whether a particular product as a whole is on pre-order, for example when displaying a product in a collection grid.

Request:

  • api_key - Your Purple Dot store's public API key

  • handle- The Shopify handle of the product

Response:

  • data

    • state - One of NO_OPEN_WAITLISTS, AVAILABLE_IN_STOCK, ON_PREORDER, SOLD_OUT

    • waitlist - The product's waitlist or null if there isn't an open waitlist.

      • display_dispatch_date - The string that should be shown as the estimated dispatch date for the product.

    • product

      • handle - The product's handle.

Last updated