Rate Limits
Learn in detail on rate limits and its usage.
You can now view your API usage and rate limits on your dashboard. Go to Developers > Rate Limits
You can view various metrics such as:
- Rate Limit
- Latest Usage
- Average Usage
- Burst limit
- Request Count
- Violation Count
Rate Limit
The rate limit value shows the number of API calls that were made in a minute. Say for example, if the rate limit is 400 - this means you can call a maximum of 400 API calls in a minute.
Latest Usage
The latest usage percentage shows the average of API calls done in the last 4 hours.
Average Usage
The average of API calls done in a minute. Let's say, for example, the rate limit is 400 - this means you can call a maximum of 400 API calls in a minute, but you make only 100 API calls in a minute. This means the average usage is 25% (100/400 *100).
Burst Limit
The burst limit is the API limit that is allocated for a specific period of time.
Apart from these metrics, there are two other metrics available. You can download these metrics.
- Request Count - The number of API requests in the selected time period.
- Violation Count - The number of violation counts in the selected time period.
Rate limiting
We use rate limiting for all endpoints. Rate limiting is based on your IP and your account Id. By default, the following rate limits are applied per minute. You can also view your rate limits in the response headers.
Rate Limits in Sandbox
API | Rate limit value per minute | Rate limit type |
---|---|---|
Create Order | 30 | Account |
Get Order | 60 | Account |
Get Payments | 30 | Account |
Pay Order | 30 | IP |
Get Settlements | 20 | Account |
Initiate Refund | 30 | Account |
Get refund | 60 | Account |
Rate Limit in Production
API | Rate limit value per minute | Rate limit type |
---|---|---|
Create Order | 200 | Account |
Get Order | 400 | Account |
Get Payments | 100 | Account |
Get Payments by ID | 130 | Account |
Pay Order | 100 | IP |
Get Settlements | 30 | Account |
Initiate Refund | 100 | Account |
Get Refund | 30 | Account |
Custom Rate Limits
The above tabulated information are the default rate limits. However, we have the option to provide custom rate limits and burst limits at an account level depending on the usage and use case. Please contact [email protected] to know more.
Rate limiting headers
All responses will have the following headers to help you understand rate limiting.
Header name | Example | Description |
---|---|---|
x-ratelimit-limit | 100 | Max number of calls that can be made in a minute |
x-ratelimit-remaining | 30 | Remaining number of calls that can be made in a minute |
x-ratelimit-retry | 0 | Number of seconds you will have to wait to make the next call |
x-ratelimit-type | app_id or ip | Type of rate limiting applied |
Subscribe to Developer Updates
Updated 4 months ago