Skip to content

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

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.

200 OK · headers
HTTP/1.1 200 OK
RateLimit-Policy: "100-in-1min"; q=100; w=60; pk=:ZGQxMTI3MTE4OWI4:
RateLimit: "100-in-1min"; r=94; t=59
200 OK
{
"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.

The call is refused with 429 TOO_MANY_REQUESTS. Retry-After and error.retryAfter say how many seconds to wait.

429 Too Many Requests · headers
HTTP/1.1 429 Too Many Requests
RateLimit: "100-in-1min"; r=0; t=58
Retry-After: 58
429 Too Many Requests
{
"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"
}

Live calls also count toward your plan’s monthly allowance: Business includes 5,000,000 a month. Test calls never count.