Push stores
POST/api/v1/ingest/locations
Create or update the stores your products are sold at.
Keys are snake_case. Only external_id is required. Values that cannot be read (an invalid country code, coordinates out of range) are dropped and the store is still written.
Read Stores and inventory for when you need stores.
Payload at a glance
{
// required · The stores to create or update
"locations": [
{
// required · Your store code
"external_id": "STORE-012",
// optional · Store name shown in the console and to advertisers
"name": "Downtown Market",
// optional · What kind of place it is
"kind": "store",
// optional · Whether the store is trading
"status": "active",
// optional · City
"city": "Dubai",
// optional · Country, e.g. AE
"country_code": "AE",
// optional · Latitude of the store
"latitude": 25.2048,
// optional · Longitude of the store
"longitude": 55.2708,
// optional · Time zone of the store, e.g. Asia/Dubai
"timezone": "Asia/Dubai"
},
// … 1 more
]
}
Every field, with types and formats, is listed under Body below.
Limits
- At most 10,000 records and 10 MiB per request.
- Up to 5 pushes a second per API key, with bursts of 50. Reading jobs is not limited.
- Every push is an upsert: a record replaces its row’s content, so send every field you want kept. Nothing is deleted; deactivate with a status.
Errors
| Status | Message | What it means |
|---|---|---|
| 400 | invalid_body: … | The body is not JSON, the list is missing, or a field has the wrong JSON type (e.g. "price": "4.5"). |
| 400 | items_required | The list is empty. |
| 400 | max_10000_items_per_request | More than 10,000 records. Split the push. |
| 401 | missing token · invalid token · expired token | No key, an unknown key, or an expired one. |
| 403 | missing scope: integration | The key lacks the integration scope. |
| 409 | idempotency_key_payload_mismatch | This Idempotency-Key was used before with a different body. |
| 409 | source_not_active | This entity’s push source is paused in the console. |
| 413 | payload_read_error | The body is over 10 MiB. |
| 429 | rate_limited | More than 5 pushes a second on this key. Wait for Retry-After seconds. |
| 503 | workflow_unavailable · staging_unavailable · … | A temporary failure. Retry with the same Idempotency-Key. |
| job | projection_row_failed | A store that could not be read: no external_id, or an unknown status word. |
Request
Responses
- 202
Accepted. The push is taken as a job. Poll pollUrl for its progress and counts. Records are validated while the job runs.