Errors, retries, and support
Handle the Partner API failure contract safely.
Failures use this envelope and include a correlation_id:
{
"error": {
"code": "validation_error",
"message": "Invalid booking request.",
"details": { "errors": { "passenger.phone": ["…"] } }
},
"correlation_id": "cor_…"
}| Status | Examples | Client action |
|---|---|---|
400 | invalid_request, missing idempotency key | Correct the request; use a new key only if its body changes. |
401 | invalid_client, unauthorized | Refresh/reconfigure credentials; do not blindly retry. |
403 | forbidden, missing scope, IP/host policy | Correct scopes, host, or allowlist. |
404 | not_found | Verify IDs and ownership; do not create a duplicate. |
409 | nonce replay, changed idempotency payload, invalid state | Resolve state; repeat only with the same original request where appropriate. |
409 | partner_reference_conflict | The reference already belongs to a different quote. Investigate the existing booking; use a new reference for a genuinely new booking. |
409 | duplicate_reference for Sandbox links; reused/expired link completion; Sandbox payment | Reuse the original Sandbox link or select a new business reference. Never retry payment in Sandbox. |
422 | validation, invalid quote, invalid refund amount | Correct business input and obtain a new quote if needed. |
429 | rate limit | Honor Retry-After when supplied; use exponential backoff with jitter. |
5xx | transient EgyptLimo failure | Retry a write with the same idempotency key; retry reads with backoff. |
Persist correlation_id, your request ID, Idempotency-Key, partner_reference, and booking_id for support. Never log bearer tokens, client secrets, signing secrets, or webhook payload PII.