Rate limits and SLA
RPS limits
The API has limits on the number of requests per second (RPS). Limits depend on the operation class and are set for the merchant's API key used to access the API. The API key is passed in the Authorization HTTP header.
If the set limit is exceeded, the API returns the 429 Too Many Requests HTTP response. Requests rejected with the 429 code aren't taken into account when calculating service availability and response time metrics under the service level agreement (SLA).
Payment and read operations are subject to two limits at the same time:
- Limit per method: the maximum request rate for each method in the class.
- Total class limit: the maximum request rate for all methods in the class combined.
A request is rejected with the 429 code if either of these limits is exceeded.
RPS limits table
|
Operation class |
Production |
Sandbox |
|
Payment operations |
10 RPS per method 20 RPS total |
5 RPS per method 10 RPS total |
|
Read operations |
100 RPS per method 100 RPS total |
50 RPS per method 50 RPS total |
|
Bulk operations: files, registries |
5 RPS |
3 RPS |
|
Callback requests from Yandex Split to the merchant |
50 RPS |
25 RPS |
The test environment (sandbox) has limits set at 50% of the production environment limits. The values specified in the table take priority.
Note
The Yandex Split service reserves the right to change the set limits. Merchants are notified of changes at least 5 business days before they take effect. A notification about limit changes doesn't require separate approval from the merchant.
To change limits individually, contact your manager and provide your load profile.
Callback notifications (webhooks)
The Merchant API sends callback notifications to the Callback URL specified by the merchant. The sending rate is no more than 50 RPS in the production environment and no more than 25 RPS in the test environment (sandbox). The /v1/webhook endpoint is used for sending.
The Callback URL is on the merchant's side. The merchant ensures the Callback URL is available and can accept the specified volume of requests, as well as returns a response within the set timeout.
Warning
If the merchant's server at the specified Callback URL is unavailable, can't handle the incoming load, or doesn't respond within the set timeout, notification delivery may be delayed. A delay caused by these issues on the merchant's side isn't considered a violation of the Yandex Split SLA.
Order status polling
Webhooks are the primary way to get information about status changes. Use polling as a backup mechanism: polling too often increases the load and may cause the set RPS limits to be exceeded.
Polling frequency recommendations:
- For a single order, send no more than one request per second during the first minute, then increase the interval gradually.
- Stop polling once you've received the final status.