Planning for API rate limits in a business integration
Allow for supplier API limits so a busy period does not silently interrupt an important workflow.
Check the supplier rules
Read the current documentation for the specific API and account. Limits can differ by endpoint, account or type of request. Record what the supplier says happens when a limit is reached and who is responsible for reviewing changes.
Estimate the busy period
Consider normal traffic and the largest expected batch, including retries and requests from other applications sharing the same account. For example, an overnight customer import may compete with daytime order updates if both use the same allowance. If a batch exceeds the supplier’s allowance, agree the acceptable completion time with the business owner before implementing a queue; a delay may affect invoicing or customer updates.
Queue and recover safely
Agree whether work can wait and how users see a delay. Follow the provider’s documented retry instructions; GitHub, for example, describes response headers and waiting periods for its own REST API. Do not assume another supplier uses the same headers or limits.
Test the business outcome
In a suitable test environment, simulate a limited response and check that queued work remains traceable and does not create duplicates when resumed. Set an alert for an owner who can investigate a growing queue, and reconcile records after recovery.