Skip to main content

Jobs and retries

Categories, stores and inventory are pushed as asynchronous jobs. You push, get a job, and read its result.

Push categories, Push stores and Push inventory work the same way. Each push is accepted at once with a job, processed in the background, and read back with its counts and errors.

Authenticate​

Send your key as Authorization: Bearer <key> (or X-Api-Key: <key>). It needs the integration scope, and it decides which domain the data belongs to, so the body names no domain.

Push, then follow the job​

  1. Push a batch with an Idempotency-Key. The answer is 202 with a jobId and a pollUrl.
  2. Poll the job until its status is completed, partial or failed.
  3. Read the counts (created, updated, skipped, failed) and the errors, each with the record's index, external_id, field and code.
curl --request POST 'https://xxx.edge-stage.gowit.app/api/v1/ingest/inventory' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"inventory": [
{
"product_external_id": "P30001",
"location_ref": "STORE-012",
"price": 124.99,
"currency": "AED",
"stock": 8,
"availability": "in_stock"
},
{
"product_external_id": "P30001",
"location_ref": "STORE-044",
"stock": 0
}
]
}'
{
"jobId": "ingest-1001-inventory-2026-11-23T10:00",
"status": "pending",
"entity": "inventory",
"total": 2,
"pollUrl": "/api/v1/ingest/jobs/ingest-1001-inventory-2026-11-23T10:00"
}

Retries are safe​

Send an Idempotency-Key with every push. Sending the same key with the same body again returns the first answer and starts nothing new, so a timeout can always be retried. The same key with a different body is refused 409.

What a push does to your data​

  • Every push is an upsert. A record creates its row or replaces its content. A field you leave out is cleared, so always send the whole record.
  • Nothing is deleted. Retire a store with status: inactive; set a product's stock to 0 at a store where it is gone.
  • Order does not matter. An inventory row may name a product or a store that has not arrived yet. It links when it does.
Limits

At most 10,000 records and 10 MiB per request. Up to 5 pushes a second per key, with bursts of 50; beyond that the answer is 429 with Retry-After. Reading jobs is never limited.