Skip to content

List products

API v2 is in public beta: endpoints and fields can change before general availability. See the changelog

GET/preorders/products

Costs 1 rate-limit point · Rate limits

List the variants on the store-wide Preorders > Products tab, with the offers each is linked to, paginated.

search matches product title, variant title and SKU, as the tab's search does. sort is one of created_asc, created_desc, title_asc, title_desc (default title_asc); created means the product's Shopify creation order. product_status keeps active, draft, archived, unlisted (comma-separated). With no offer filter the list holds only variants linked to an offer, as the tab does; offer_ids keeps variants in those offers and no_offer_linked=true adds the variants in no offer (the tab's 'No offer linked'). Variants deleted in Shopify are left out. per_page is 1-100 (default 20). Each row's offers carry that variant's own shipping_text and max_count (the values PATCH /preorders/products writes), quantity_limit (read-only: the limit that applies, which on a batch offer is the batches' total and not max_count; null is no limit), preorder_count and quantity_limit_reached. The top-level offers are every offer the tab can pick from, each with its current_status (live, scheduled or off, as GET /preorders/offers reports it: a dated offer is scheduled before its start and off after its end). include_inventory=true adds each row's live Shopify inventory_quantity and inventory_policy, and reads sku live, as the tab shows them.

Also searched aspreorder productsproducts tablist preorder productsvariants on preorderwhich offer is this product inproducts not in an offersearch preorder products

Query parameters

  • sortstring
    One of created_asccreated_desctitle_asctitle_desc
  • pagestring
  • per_pagestring
  • searchstring
  • product_statusstring
  • offer_idsarray
  • no_offer_linkedstring
  • include_inventorystring

Errors

401

Missing or invalid X-Auth-Token.

422

The request failed validation.

429

Rate limited: cost-weighted per token (read 1, write 2; 360 points / 60s). Check Retry-After.

Every error has the same shape: see Errors.

GET/preorders/products
curl "https://app.stoqapp.com/api/v2/external/preorders/products" \
  -H "X-Auth-Token: $STOQ_API_KEY"
Response
No body