Rate limits
On this page
How many requests you can send per minute, and what to do when you get 429.
We count requests in windows of one minute. Each limit starts its window with its first request. Once a limit is used up, every further request gets 429 until the window ends.
Limits
These are the default limits. Your payment institution can set others for its installation.
| Who sends the request | Limit per minute |
|---|---|
| A secret or restricted key | 600 requests per key |
| A publishable key | 600 requests per key, and 60 per key and client IP address |
A publishable key creating a card token (POST /v1/payment_methods) |
10 per key and client IP address, on top of the two above |
| A merchant panel user | 600 requests per user |
| A request without a valid key | 600 per client IP address |
Every server that uses the same key shares its limit. Give a busy job, such as a nightly report, its own restricted key, so it cannot slow down your checkout.
When you get 429
{
"error": {
"type": "rate_limit_error",
"code": "rate_limit",
"decline_code": null,
"param": null,
"message": "Too many requests. Please retry later.",
"request_id": "req_01J9ZQ4V8K2M3N5P7R9T1W3Y5F"
}
}
- The
Retry-Afterheader gives the seconds until the window ends. Wait that long, then send the request again. - Nothing ran, and nothing is kept under the
Idempotency-Key. Retry with the same key. - Responses have no header that shows the remaining limit. Spread your requests out instead of sending them in bursts.
Stay under the limit
- Use webhooks to learn about changes. Do not poll a payment in a loop.
- Read lists with
limit=100, so each page brings more objects. See pagination. - Run bulk jobs, such as refunding many orders, with a small number of workers at a time.
- Card tokens are limited per client IP address. A customer who retries a card many times in a minute gets
429at checkout. Show "Too many attempts, wait a minute" instead of a generic error.
Next: See what changes between releases in Versioning, and trace a request in Request logs.