Skip to content

Retrieve types

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

GET/preorders/products/types

Costs 1 rate-limit point · Rate limits

List the shop's product types, as the offer's 'Add by product type or vendor' picker shows them.

Alphabetical, up to 1000; truncated is true when the shop has more. Pass these values as product_types to POST /preorders/offers/:id/products/add_variants or GET /preorders/products/count_by_type_or_vendor.

Also searched asproduct typeslist product typesshop product typestypes of products

Returns

  • product_typesarray of strings
  • truncatedboolean
    Example: true

Errors

422
validation_failed

The request failed validation.

502
shopify_error

A Shopify call the operation needs failed after the operation had started.

Any request can also fail with auth_invalid (401) or rate_limited (429).

Every error has the same shape: see Errors and the list of error codes.

GET/preorders/products/types
curl "https://app.stoqapp.com/api/v2/external/preorders/products/types" \
  -H "X-Auth-Token: $STOQ_API_KEY"
Response
{
  "product_types": [
    "string"
  ],
  "truncated": true
}