Skip to main content
To ensure fair usage and system stability, the Kotani Pay API implements rate limiting on all endpoints.

Rate Limit Structure

The API uses a sliding window rate limit with the following defaults:
  • Production: 1000 requests per minute per API key
  • Sandbox: 100 requests per minute per API key

Rate Limit Headers

Every API response includes rate limit information in the headers:

Handling Rate Limits

When you exceed the rate limit, the API returns a 429 Too Many Requests response:

Best Practices

  1. Monitor rate limit headers in your responses
  2. Implement exponential backoff when rate limited
  3. Cache responses when possible to reduce API calls
  4. Batch operations where the API supports it
  5. Use webhooks instead of polling for status updates

Example: Handling Rate Limits