Rate limits
Limits are counted for each key on its own, so one integration can’t slow down another: give each website or tool its own key.
| Calls | Limit |
|---|---|
| Anything, with a secret key | 600 a minute for the key |
| Anything, with a publishable key | 100 a minute for the key, from each IP address |
POST /orders |
60 a minute for the key, on top of the above |
Seeing where you stand
Section titled “Seeing where you stand”Every answer carries two headers, in the format of the IETF’s RateLimit header draft (version 8).
RateLimit-Policy names the limit:
q is how many calls a window allows and w the window’s length in seconds. RateLimit says
where you are: r calls remaining, t seconds until the window starts again.
HTTP/1.1 200 OKRateLimit-Policy: "100-in-1min"; q=100; w=60; pk=:ZGQxMTI3MTE4OWI4:RateLimit: "100-in-1min"; r=94; t=59{ "success": true, "data": { "business": { "id": "01a21564-0f82-72f9-9f14-6826074cfba5", "name": "Payroll Demo Shop (walk-through)", "currency": "NGN" }, "mode": "test", "keyType": "publishable", "scopes": [ "catalog:read", "promotions:read" ] }}POST /orders answers with both of its limits, the key’s and the orders’, separated by a comma.
Over the limit
Section titled “Over the limit”The call is refused with 429 TOO_MANY_REQUESTS. Retry-After and error.retryAfter say how many
seconds to wait.
HTTP/1.1 429 Too Many RequestsRateLimit: "100-in-1min"; r=0; t=58Retry-After: 58{ "success": false, "message": "Too many requests for this API key. Wait a moment, then try again.", "error": { "name": "TooManyRequestsError", "code": "TOO_MANY_REQUESTS", "statusCode": 429, "retryAfter": 58 }, "requestId": "82d7529d-e07b-4e40-ab09-bbc5317b8c85"}Monthly allowance
Section titled “Monthly allowance”Live calls also count toward your plan’s monthly allowance: Business includes 5,000,000 a month. Test calls never count.