Last update: Jun 15th, 2016
In order to avoid an unreasonable number of requests from one merchant, some PayU APIs are protected by a quota-system that allows only a certain number of requests during a period of 60 seconds.
The APIs that are protected by this system will send additional response headers, so the consumer application knows how many requests it has left.
If the merchant exceeds his quota, he will have to wait before making anymore requests to that API.
The following headers are sent:
Header | Description |
X-Rate-Limit-Limit | Number of allowed requests for a period of 60 seconds. |
X-Rate-Limit-Reset | How much time remains, in seconds, until the end of the current period of 60 seconds. |
X-Rate-Limit-Remaining | Requests available until the end of current period of 60 seconds. |
When client exceeds requests quota, server will return response code 429 (Too Many Requests).