Import a catalog from CSV
Imports the customer’s product catalog from inline CSV text. The shape is validated at ingress and one invalid row refuses the whole import with the exact row errors. A small import completes inline and returns the snapshot; a large one returns 202 with a task whose completion carries catalog_snapshot_id. The customer’s catalog only; observed products never enter this path.
/commerce/catalog-importsAuthorizationBearer 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>requiredcsvstringrequiredThe import completed inline (small file, or an identical re-import)
successbooleanrequireddataCatalogImportResultrequiredShow propertiesHide properties
modestringrequiredtask_idstring<uuid>requiredtask_urlstringrequireddetailstringrequiredmodestringrequiredcatalog_snapshot_idstring<uuid>requiredcatalog_snapshot_urlstringrequireddetailstringrequiredrequest_idstringrequiredThe import was accepted as a durable task (large file)
successbooleanrequireddataCatalogImportResultrequiredShow propertiesHide properties
modestringrequiredtask_idstring<uuid>requiredtask_urlstringrequireddetailstringrequiredmodestringrequiredcatalog_snapshot_idstring<uuid>requiredcatalog_snapshot_urlstringrequireddetailstringrequiredrequest_idstringrequiredbad_request or validation_failed
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