Run a commerce collection
Runs one paid commerce collection: the selected commerce queries on the resolved platforms in one country, collected through the collection partner. Every (query, platform) pair is one billable unit. Returns 202 with the collection, task, and billing references. A missing shopping module is evidence, never a failure.
/commerce/collectionsAuthorizationBearer token · headerrequiredAPI key sent as Authorization: Bearer <key>. A key belongs to one workspace, has scopes, and can be limited to some brands.
AuthorizationOAuth2 access token · headerrequiredOAuth 2.1 sign-in (authorization code with PKCE) used by AI assistants that connect through the Zaraftis MCP server. Discovery URLs are at https://api.zaraftis.com/api/auth.
Idempotency-KeystringrequiredA new value, such as a UUID, for each new request. Send the same value to retry a request safely; see https://docs.zaraftis.com/conventions#safe-retries-with-idempotency-key.
application/jsonbrand_idstring<uuid>requiredqueriesstring[]requiredplatform_idsstring[]requiredcountrystringAccepted collection
successbooleanrequireddataAcceptedCommerceCollectionObjectrequiredShow propertiesHide properties
collection_idstring<uuid>requiredbrand_idstring<uuid>requiredstatusstringrequiredtask_idstring<uuid>requiredtask_urlstringrequiredcollection_urlstringrequiredplatform_idsstring[]requiredcountrystringrequiredrequested_query_countintegerrequiredbillingBillingObject | nullrequiredShow propertiesHide properties
operationstringrequiredai_platform_querysite_auditauto_visibility_setupcommerce_collectioncompetitor_generationcredit_catalog_versionstringrequiredquantity_requestedintegerrequiredunit_creditsinteger | nullrequiredShow propertiesHide properties
integernullmaximum_creditsintegerrequiredreserved_creditsintegerrequiredbilling_statusstringrequiredreserveddeductedreleasedcredits_deductedintegercredits_releasedintegerwallet_history_idstring | nullrequiredShow propertiesHide properties
stringnullnullrequest_idstringrequiredbad_request or validation_failed
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequiredwallet_not_activated, insufficient_credits, or payment_action_required
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequirednot_found: unknown id, or an id this key cannot see
successbooleanrequirederrorobjectrequiredShow propertiesHide properties
codestringrequiredmessagestringrequiredretryablebooleanrequireddetailsobjectfield_errorsobject[]Show propertiesHide properties
objectfieldstringrequiredcodestringrequiredrequiredformattoo_smalltoo_largeunrecognized_keyinvalidmessagestringrequiredrequest_idRequestIdrequired