Article Details
Id: | 15940 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 3.01.11 |
Opened: | 18/03/2019 |
Closed: | 18/03/2019 |
Released: | 03/04/2019 |
Job: | J022023 |
Xero Web API; implemented API Rate limit retry
Xero has a limit of 60 calls per minute and 5,000 per day (using a rolling time period) when using its API. A HTTP status of 503 is returned.
Therefore, finPOWER Connect now includes the following strategy:
- If the request fails with a Status 503, finPOWER Connect will wait for a short period and then try sending the request again. This happens 5 times with an increasing wait period of 2, 4, 8, 16 and 32 seconds (a total potential wait of 62 seconds).
NOTE: This should all but eliminate the per minute limit - but not the per day limit.