Rate limiting
Yonne always enforces rate limiting to protect platform stability and ensure fair usage across merchants. Treat the API as a shared production service and send requests with predictable, controlled traffic patterns.Recommended client behavior
- Avoid tight retry loops.
- Use exponential backoff for transient failures.
- Reuse the same
Idempotency-Keywhen retryingPOST /api/v1/external/create-order. - Cache stable merchant context from
GET /api/v1/external/validatewhen possible. - Do not poll tracking endpoints aggressively when webhook delivery can give you the same state changes.
Order creation retries
Order creation is the most important endpoint to protect against duplicate submission. If a create-order request times out on your side, retry with the sameIdempotency-Key instead of generating a new one.
Capacity and balance failures
Do not treat business failures as retryable rate-limit events. Examples include:402 Insufficient Funds422 ERR_NO_CAPACITY_AVAILABLE- validation failures such as missing coordinates
Operational guidance
Throttle bursts in your own backend, especially during checkout spikes, imports, or replay jobs. Honor any429 responses or rate-limit headers returned by the API and adapt your retry policy accordingly.