Limits
The PayData infrastructure enforces limits on how many requests you send and on how large a single request can be. The values below are either exact (rate limits, page sizes) or deliberately conservative recommendations (request size). Design your integration to stay within the recommendations: the exact technical limits are higher, but they are not guaranteed and can change without notice.
Rate limits
The following global rate limiting policies apply to all requests sent to the API by a partner or by a user.
| Period (seconds) | Maximum number of requests |
|---|---|
| 60 | 100 |
Additional rate limiting policies may apply to some methods and are described for each particular method.
Lower limits apply in the Sandbox.
Request URL length
Keep the full request URL, including the query string, under 4 KB.
URLs that are too long are rejected with 414 URI Too Long before PayData processes the request.
You normally only get close to this limit with filters that accept a list of values as a repeated query
parameter, such as reportId or dataImportId on GetTransactions:
GET /partner/v2/accounts/rzmzhmjt14/transactions?reportId=x7d2kq9pw1&reportId=m4bn8vt0ce&reportId=...
Each additional ID adds about 22 bytes to the URL. As a rule of thumb, send no more than about 150 IDs per request. If you need more, split the IDs across several requests. To sync all transactions of an account, don't collect every report ID: fetch new transactions incrementally instead, as described in Staying up to date.
The nextPageReference and previousPageReference returned by
GetTransactions contain the filters of the original request, so they
grow with the number of filter values. A request close to the limit can succeed on the first page and fail
with 414 when you follow nextPageReference. Staying within the recommendation above leaves enough room
for this.
Request headers
Keep the total size of all request headers under 16 KB. In practice only very large tokens or cookies
come close to this. Requests with headers that are too large are rejected with
431 Request Header Fields Too Large.
Page size
List operations accept a pageSize of at most 500. The maximum for each operation is listed in its
API reference.
Status codes without a JSON body
The following status codes are returned before PayData processes the request. Their response has no JSON body and no error object, so check the status code first.
| Status | Meaning | What to do |
|---|---|---|
414 | URI Too Long | Shorten the URL, see Request URL length. |
431 | Request Header Fields Too Large | Reduce the size of the request headers, see Request headers. |