Sifr Wahid Developers

Concepts

Rate limits and retries

360 calls a minute per key, exact counting, a retry policy that never runs a write twice, and every other limit in one table.

The limit

  • 360 calls a minute per key (Pro). Each key has its own counter, apart from the merchant dashboard's.
  • Every answer that goes through the counter carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (unix time).
  • Refused before the count, with no rate headers: 401, 402, and 403 ip_not_allowed or store_suspended. A 403 insufficient_scope comes after the count, so it carries the headers and counts.
  • The count is exact: concurrent calls never pass the limit, and a refused call is not counted.
HTTP
HTTP/1.1 200 OK
X-RateLimit-Limit: 360
X-RateLimit-Remaining: 359
X-RateLimit-Reset: 1795421160

Retries

  • On a 429: wait the seconds in Retry-After, then send the same call again (with the same Idempotency-Key for a write).
  • On a network error or a 5xx: retry with 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.
  • Do not retry other 4xx answers: fix the call. The exception is 409 duplicate_request (retry in a moment).
AnswerRetry
429 rate_limitedAfter Retry-After seconds, the same call
429 images_queue_fullAfter Retry-After seconds
Network error, 5xx1, then 2, then 4 seconds, up to 60, with jitter
409 duplicate_requestIn a moment
Other 4xxNo: fix the call

Staying under the limit

Spread calls (about 5 a second), batch stock adjustments up to 100 lines, and read lists with per_page=100.

All limits

LimitValue
Calls per key360 a minute (Pro)
Webhook test sends (POST /webhooks/{id}/test)10 a minute
Webhook resends (.../resend)20 a minute
Webhook deliveries sent by a store120 a minute; the rest wait for the next minute
Webhooks per store (Pro)10, shared by the dashboard and every key
Custom headers per webhook10
Conditions in a webhook rule10 (500 characters)
Webhook answer kept in the logThe first 10 KB, for 30 days
Picture links waiting to be copied, per store50 (beyond that, 429 images_queue_full)
Pictures per product10
Lines in one stock adjustment100
Lines in one order (items)50
Rows per list page (per_page)100 (default 50)
Idempotency-Key120 characters, kept 24 to 48 hours
Live API keys per store20
IP addresses or ranges per key20

The design view: Limits and reliability.