Rate Limiting
The Invoicetronic API is rate-limited. When the rate limit is eventually hit, clients get a 429 Too Many Requests
response until the limit window resets. The windows are global and configured as follows:
Period | Limit | Reset |
---|---|---|
Second | 100 requests | Every second |
Minute | 2000 requests | Every minute |
Day | 100000 requests | Daily |
Let's assume that 2000 requests hit the API within the one-minute window, subsequent requests occurring in that same minute will be blocked with 429
. When the minute ends, the window resets, and the API will resume fulfilling requests.
Tip
Your client should be prepared to handle 429 responses even if they are unlikely. Maybe it could retry after some time, or report back to the end user. Don't let your client crash in a well-known, documented scenario like this; it would harm the end-user experience.