Rate limits
Planned per-key request limits and how to handle them.
Not live yet
The API does not enforce rate limits yet, and responses carry no rate limit headers. The rate_limited error code is reserved for when it does.
Hosted checkout has its own limits on attempts per buyer, which you may see as checkout_rate_limited or checkout_attempt_limit on the checkout page. They don't apply to API requests.
Planned limits
These starting limits may be tuned before launch:
| Bucket | Limit |
|---|---|
| Live key, all requests | 100 requests per 10 seconds |
| Test key, all requests | 50 requests per 10 seconds |
POST /checkout_sessions and POST /refunds | 25 requests per 10 seconds, separately |
Every response will carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset. Over the limit, the API will return 429 with rate_limit_error / rate_limited and a Retry-After header in seconds.
Handling 429
Build it in now so nothing changes at launch: on a 429, wait Retry-After seconds (or back off exponentially with jitter if it is missing), then retry with the same Idempotency-Key. A rate-limited request has not run.