Payclave developers
Rate limits
Quotas, RateLimit-Policy, RateLimit, Retry-After, and HTTP 429 recovery.
Read the quota response headers
API responses that pass an enforced quota include RateLimit-Policy and RateLimit Structured Field lists. These use draft-ietf-httpapi-ratelimit-headers-11, an IETF Internet-Draft rather than a published RFC. The API and public web proxies preserve these headers. Quota responses cannot be cached. Requests that do not pass an enforced quota do not advertise an invented allowance.
Throttle before reaching the limit
In RateLimit-Policy, q is the request allowance and w is the window in seconds. In RateLimit, r is the remaining allowance after reserving the current request and t is the seconds until reset. More than one policy can apply to a response. Policy names are local to that response, and concurrent requests can consume the remaining allowance. Authentication quotas that count failures can refund a successful request after responding.
Publishable checkout creation is limited to 20 requests per minute per key and client IP. Public invoice and payment-link views allow 120 requests per minute per client IP; checkout submissions allow 10. Other endpoints have their own policies. Secret-key operations do not advertise a quota unless a limiter actually applies. Read the response headers instead of assuming one global rate.
Handle HTTP 429
A quota rejection returns HTTP 429 with Retry-After in seconds. Wait at least that interval before sending another request, and reduce concurrent traffic. The error body retains success: false, error.code, error.message, and meta.requestId. Only retry a mutation when its idempotency contract allows it; reuse an idempotency key only for the same operation and payload.
Interpret a quota response
This example advertises a policy allowing 20 requests in a 60-second window. The RateLimit response reports the remaining requests and time until reset for that response. Policy names are response-local. Do not treat this example as a quota for every route.
Keep polling and retries bounded
Cache the latest status for display and avoid one polling loop per component. Stop polling a completed order, pause unnecessary background checks, and check again when a mobile app returns to the foreground. The mobile SDK defaults to a three-second interval; respect Retry-After rather than overriding it with your usual timer.
On a timeout, retain the intended operation and its original idempotency key. Back off after transient failures and limit concurrent retries. HTTP 400, 401, and 403 require a request or configuration fix; sending them faster will not help. Keep error.code and meta.requestId for diagnosis without logging credentials.