Limits and reliability
How to stay under the limit, how to retry without doing anything twice, and which answers you must never retry.
- 360 a minuteCalls per key on Pro, each key with its own counter, apart from the merchant dashboard's.
- Exact countConcurrent calls never pass the limit, and a refused call is not counted.
- 100 a pageRead lists with
per_page=100; batch stock adjustments up to 100 lines. - 24 to 48 hoursHow long an
Idempotency-Keyreplays the first answer.
The rate headers
Every answer that goes through the counter carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (unix time). 401, 402, and 403 ip_not_allowed or store_suspended do not: they are refused before the count. A 403 insufficient_scope comes after it and counts. Read X-RateLimit-Remaining to slow down before you reach the limit.
Staying under the limit
- Spread calls (about 5 a second).
- Batch stock adjustments up to 100 lines in one
POST /inventory/adjustments. - Read lists with
per_page=100, and only what changed withupdated_since. - Use webhooks for new orders instead of polling often; one hourly poll closes any gap.
What to retry, and how
| Answer | Retry? | How |
|---|---|---|
429 rate_limited | Yes | Wait the seconds in Retry-After, then send the same call again (with the same Idempotency-Key for a write). |
429 images_queue_full | Yes | 50 picture links wait to be copied in the store; wait Retry-After. It is not kept against the Idempotency-Key, so a retry with the same key runs. |
| Network error or 5xx | Yes | Growing waits and jitter (1, then 2, then 4 seconds, up to 60), with the same Idempotency-Key for a write, so the operation never runs twice. |
409 duplicate_request | Yes | The same call with the same key is still running; retry in a moment. |
| Any other 4xx | No | Fix the call. 4xx answers are replayed as they were for the same key, so send a new key after fixing the input. |
401 invalid_token | No | Wrong, revoked or expired key. Ask the owner for a new key. |
What is safe to retry
- Reads (
GET): send them again after the wait the answer asks for. - Writes with an Idempotency-Key: a second call with the same key while it is kept (24 to 48 hours) gets the first answer back with
Idempotent-Replayed: true, and the write runs once. The key is required onPOST /orders,POST /inventory/adjustmentsandPOST /orders/{id}/shipments, and optional on the other writes. - Webhook create and update ignore the Idempotency-Key, because the stored answer would keep the secret. A retry after a lost answer to
POST /webhooksmakes a second webhook: listGET /webhooksand delete the extra one. - A call that died unfinished (a timeout, a stopped worker) keeps its key for 300 seconds, then the next call with that key takes it over.
What to monitor
- 401, 402 or 403: a revoked key, a plan change, a new address.
- Rising 429s: spread your calls.
- Webhook deliveries that fail: the webhook switches itself off after 50 failures in a row, or 10 timeouts in a row.
More: Rate limits and retries and Idempotency.