Marketplaces
Surviving Amazon SP-API Rate Limits at Scale
Token buckets, reports instead of loops, feed batching and the retry discipline that keeps high-volume sellers inside Amazon's rate limits.
Amazon Selling Partner API (SP-API) integrations rarely fail on day one. They fail on Prime Day, when order volume jumps and the integration starts receiving error 429 (too many requests) on calls that worked all year. Orders stop flowing into your ERP, inventory stops updating on Amazon, and you risk overselling. Here is how to design for the limits instead of hitting them.
How SP-API rate limits work
SP-API uses a token bucket for each operation. Picture a bucket that holds a fixed number of tokens (the burst) and refills at a fixed rate (the rate, in requests per second). Each call takes one token. When the bucket is empty, calls fail with 429 until it refills. Different operations have very different limits, and some order operations allow only a small burst and then roughly one call a minute.
Limits can also differ by seller account and change over time. Amazon returns the current limit in the x-amzn-RateLimit-Limit response header on many operations, so read it instead of hard-coding numbers, and check the current documentation when you design.
Rule 1: use reports and notifications instead of loops
The biggest mistake is calling an operation once per order or once per item. Amazon offers bulk alternatives that use far fewer calls:
- Reports API: request an orders or inventory report covering many records, then download one file.
- Notifications API: subscribe to events such as order changes and receive them through Amazon SQS (Simple Queue Service) instead of asking repeatedly.
- Feeds and the Listings Items API: send price and inventory updates in batches instead of one call per SKU (stock keeping unit) at a time.
Rule 2: run your own token bucket
Do not wait for Amazon to tell you no. Keep your own counter per operation and per seller that mirrors Amazon limits, and only send a call when a token is available. Calls that would exceed the limit wait in a queue. This turns sudden failures into a small, predictable delay.
Rule 3: retry with backoff and jitter
- On a 429 or a temporary server error, wait and retry. Do not retry immediately.
- Increase the wait each time (exponential backoff): for example 1, 2, 4, 8 seconds, up to a sensible maximum.
- Add a small random delay (jitter) so many workers do not retry at the same moment.
- After a set number of attempts, stop and put the work in an error queue that a person can see.
Rule 4: batch and prioritise
Not every call is equally important. Order downloads and inventory updates protect revenue and prevent overselling. Catalogue enrichment and historical reports can wait. Give each kind of work its own queue and priority, so a backlog of low-priority updates never blocks an order download.
- Combine inventory changes that happen within a short window into one update.
- Send only changes. If the quantity did not change, do not send it.
- Schedule heavy reports outside peak hours.
Rule 5: design the ERP side for spikes too
When Amazon order volume jumps, your ERP has to absorb it. Stage incoming Amazon orders before creating sales orders, use the Amazon order ID as an external ID to prevent duplicates, and process them in parallel within your ERP limits. A fast Amazon side is useless if NetSuite or your ERP becomes the bottleneck.
Rule 6: test with peak volume, not normal volume
Before a big sale event, replay a realistic peak day against your integration in a test setup. Watch how long the queues get, how many 429 responses you receive and how long orders take to reach the ERP. Fix what you find while it is quiet.
Checklist
- Reports and notifications instead of per-order calls.
- Your own token bucket per operation and seller.
- Exponential backoff with jitter and a final error queue.
- Separate queues and priorities for orders, inventory and everything else.
- Amazon order ID as external ID in the ERP.
- A peak-volume test before every big event.
