Events
Every event has the same envelope; data holds the ids the next call needs.
type |
When | Then |
|---|---|---|
import.created |
A batch was accepted. | Match data.external_id to your run. |
import.completed |
Every product is written and every image fetched or failed. | GET /imports/{import_id}; check failed_count and errors. |
outfit.finalized |
An outfit is marked final. | GET /outfits/{outfit_id} |
export.completed |
An export archive is ready. | GET /exports/{export_id} |
webhook.test |
Send test event was chosen. | Answer 2xx. |
Ignore a type you do not know.
import.created
Section titled “import.created”Sent once a batch is accepted, for the same import the POST returned.
{ "id": "1b8f6c2e-7d4a-4e9b-a3c5-0f2d8e6b1a47", "type": "import.created", "created_at": "2026-07-27T09:20:12.384Z", "data": { "import_id": "7d90...", "collection_id": "c47b...", "external_id": "import-2026-07-27-01" }}import.completed
Section titled “import.completed”completed does not mean every product went in: read failed_count and errors on the import.
{ "id": "a4e2d913-5c6b-4f80-9e1d-3b7c2a8f6d05", "type": "import.completed", "created_at": "2026-07-27T09:24:48.117Z", "data": { "import_id": "7d90...", "collection_id": "c47b...", "external_id": "import-2026-07-27-01" }}A batch that fails as a whole sends no event, so keep polling an import that stays silent.
outfit.finalized
Section titled “outfit.finalized”An outfit marked final again sends a new event with a later finalized_at.
{ "id": "5d7e2b90-3a1c-4f6e-8b2d-9c0a1e4f7b33", "type": "outfit.finalized", "created_at": "2026-07-27T10:41:05.654Z", "data": { "outfit_id": "e93b...", "brand_id": "9a2e...", "product_ids": [ "4c2d...", "8f10..." ], "finalized_at": "2026-07-27T10:41:04.218Z" }}export.completed
Section titled “export.completed”The archive is ready to download from the export.
{ "id": "c9f1a7e4-2b3d-4c8e-b6a0-7e5d1f9c2b68", "type": "export.completed", "created_at": "2026-07-27T11:02:37.905Z", "data": { "export_id": "b512...", "brand_id": "9a2e..." }}webhook.test
Section titled “webhook.test”The test event carries no ids.
{ "id": "e0b3c58d-9f2a-4d71-8c6e-2a4f7b1d9e30", "type": "webhook.test", "created_at": "2026-07-27T08:55:19.042Z", "data": {}}