Rate limit headers
A request counts against every policy that applies to it. On a success, the headers describe the most constrained of those policies; on a
429, the policy that was exceeded. When a deployment does not enforce rate limits, responses carry no RateLimit-* headers.
Default policies
These are the defaults for requests made with your app’s credentials. Stableyard can configure them per deployment.
A
POST /v2/payments, for example, counts against writes per app environment, per app, and payments per app.
Handle a 429
- Wait for
Retry-Afterbefore sending the request again. - Reuse the same
Idempotency-Keywhen you retry a write. See Retrying safely. - Spread the load. React to webhooks instead of polling every resource, and page through lists with their cursors.
Not every
429 is a rate limit. payment_option_limit_reached means too many options were created for one payment. See Errors.
Related
Errors
Every error code and which ones to retry.
Idempotency
Retry a write without doing it twice.
Webhooks
Learn about changes without polling.
Environments
Base URLs and what is isolated between environments.