Skip to content

Retrieve vendors

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

GET/preorders/products/vendors

Costs 1 rate-limit point · Rate limits

List the shop's product vendors, 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 vendors to POST /preorders/offers/:id/products/add_variants or GET /preorders/products/count_by_type_or_vendor.

Also searched asvendorslist vendorsproduct vendorsbrandsshop vendors

Returns

  • vendorsarray 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/vendors
curl "https://app.stoqapp.com/api/v2/external/preorders/products/vendors" \
  -H "X-Auth-Token: $STOQ_API_KEY"
Response
{
  "vendors": [
    "string"
  ],
  "truncated": true
}