Rate limits
How many calls a key can make, and what to do when you reach the limit.
Each API key has its own limits. Keys do not share limits, even in the same company.
| Limit | Value |
|---|---|
| Requests per key | 120 per minute |
Report files per key (GET /v1/reports/{reportType}) | 10 per minute |
Report files count toward both limits.
Headers
Every response tells you where you are, with the IETF RateLimit header fields:
RateLimit-Policy: "default";q=120;w=60
RateLimit: "default";r=117;t=42qis the number of requests allowed in the window.wis the window length in seconds.ris the number of requests you have left.tis the number of seconds until the window resets.
When you reach the limit
The API returns 429 Too Many Requests with a rate-limited error and a Retry-After header:
HTTP/1.1 429 Too Many Requests
Retry-After: 18
Content-Type: application/problem+jsonWait for Retry-After seconds, then try again.
Stay under the limit
- Use
/v1/sales/summaryand/v1/sales/breakdownfor figures. Do not add up sales lines yourself. - Use
limit=1000when you copy lists. - Use
updatedSinceandsyncedSinceto copy only what changed. - Make calls one after another, not many at the same time.