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
- Push a batch with an
Idempotency-Key. The answer is202with ajobIdand apollUrl. - Poll the job until its
statusiscompleted,partialorfailed. - Read the counts (
created,updated,skipped,failed) and theerrors, each with the record'sindex,external_id,fieldandcode.
- cURL
- Node.js
- Python
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
}
]
}'
const res = await fetch('https://xxx.edge-stage.gowit.app/api/v1/ingest/inventory', {
method: 'POST',
headers: {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json"
},
body: JSON.stringify({
"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
}
]
}),
})
if (res.status === 204) {
console.log('No content')
} else {
console.log(res.status, await res.text())
}
import requests
url = "https://xxx.edge-stage.gowit.app/api/v1/ingest/inventory"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Content-Type": "application/json",
}
payload = {
"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,
},
],
}
response = requests.request("POST", url, headers=headers, json=payload, timeout=10)
print(response.status_code, response.text)
{
"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 to0at 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.
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.
- Push categories: Your category tree with your own ids.
- Push stores: The places a shopper buys from.
- Push inventory: Price and stock per product and store.
- Get a job: Progress, counts and errors.