Rate limits
| Caller / limit | Limit |
|---|---|
| Secret key | The key's configured rate_limit_per_minute; default 120 requests/min. |
| Secret-key POST /payments | Additionally 10 payment starts/min per key. |
| Secret-key payer phone | At most 5 payment prompts per phone in 10 minutes. |
| Publishable key | 600 requests/min per key, plus 60 requests/min per key per client IP. |
| Widget payment starts | 60/min per publishable key. |
| Widget payer phone | At most 5 payment prompts per payer phone in 10 minutes. |
| All partner routes | 600 requests/min per IP. |
Responses carry X-RateLimit-Limit and X-RateLimit-Remaining. A 429 includes Retry-After. Widget calls also carry these limit headers. Many mobile users can share a carrier IP, so avoid unnecessary polling and repeated event-data reads.
Idempotency
Send Idempotency-Key on every create call and payment call. The same key and same request body replay the stored result. Keys are scoped to a developer and are kept for 24 hours.
| Situation | Result |
|---|---|
| Same key and same body | Stored response is replayed; replay responses include Idempotent-Replayed: true. |
| Same key with a different body | 422 idempotency_key_reused. |
| Same key while the first request is running | 409 request_in_progress. |
| Missing key on a create or payment call | 400 idempotency_key_required. |
| 5xx response or unexpected crash | The key is released so a retry can run again. |
Safe retries
- Generate a new key for each new create or payment attempt.
- If a network error leaves the outcome unknown, retry the same request with the same key.
- Do not change the body while reusing that key.
- For a 429, wait for Retry-After before retrying.
- A crashed request lock expires after 60 seconds; an identical retry can take over.