4xx or 5xx status and a JSON body that names a stable, machine-readable errorCode. Branch on errorCode, not on the message text. Every code is listed with its meaning and the fix in the error catalog.
Error format
Error responses haveContent-Type: application/json and this body:
Server errors never contain internal details. Their message is always the same:
more: new codes and new detail members can be added within v1. A resource of another partner is always answered as if it did not exist (404), never with 403.
Status codes
401 responses carry a WWW-Authenticate header. Each operation’s reference page lists the codes it can return in addition to the common ones.
Validation errors
A body, query parameter, path parameter or header that does not pass validation is answered with400 data-failed-validation. All problems are collected in one pass and listed in more.validationErrors:
Typical causes:
- a required property is missing (
required) ornullwhere it must not be (null-not-allowed); - a property or query parameter the operation does not define (
unknown-field,unknown-parameter): the API is strict, so typos never pass silently; - an id that is not a positive integer (
invalid-id); - a timestamp without an offset (
invalid-timestamp); - a list parameter outside its rules:
pageorperPageout of range (invalid-page), asortfield that is not allowed (invalid-sort), or an unsupported filter field, operator or value (invalid-filter); see Pagination; - both
voucherSetIdandproviderIdin a redemption (mutually-exclusive).
property names the item (items[2]) and constraint the reason.
Retrying safely
Combine retries with idempotency keys: a key makes aPOST safe to send again.
Never retry
401 or 403 in a loop: they need a configuration change (a valid key, a permission, an allowlist entry or an active partner).
Getting help
If you cannot resolve an error:- Look up the
errorCodein the error catalog and follow “What to do”. - Check the operation’s reference page for the codes and rules it documents.
- Contact your AllRide account manager, or AllRide through the Support link at the top of this site, with the
X-Request-Idresponse header (for5xxalso inrequestId), the time of the request, the operation and theerrorCode. Do not send API keys, webhook secrets or issued voucher codes.