Xaqiiji
Getting StartedError Handling

Error Handling

Step-by-step guidance for secure Xaqiiji API integration.

Standard error format

application/json
{  "status": "failed",  "code": "BAD_REQUEST",  "message": "Validation failed",  "errors": [    {      "field": "nationalId",      "message": "National ID must be exactly 11 digits"    }  ]}

Error table

HTTP statusError codeDescription
400BAD_REQUESTMalformed request or validation failure.
401UNAUTHORIZEDMissing, invalid, revoked, or expired API key.
403FORBIDDENBusiness inactive or not on an enterprise plan.
404NOT_FOUNDResource not found.
409CONFLICTIdempotency-Key reused with a different payload.
429RATE_LIMITEDToo many requests — retry with backoff.
500INTERNAL_ERRORUnexpected server error.

Retry strategy

Retry 429 and 5xx with exponential backoff. Do not retry 400, 401, 403, or 409 without fixing the request. Always use Idempotency-Key when retrying POST /verify/citizen.
Edit this page
Was this page helpful?