Source of truth: the live API reference and the OpenAPI document at
https://connect.rylixfleet.com/api/v1/openapi.json. If this wiki and they ever disagree, they win.
Every error has the same shape:
{
"error": {
"code": "invalid_request",
"message": "The request is not valid. See `fields` for details.",
"fields": { "customer.phone": "invalid" },
"requestId": "req_3kTq0yXzv1n5aB2c"
}
}
code is stable and safe to branch on.message is for people and may change.fields (when present) names the request fields that were refused, and why.requestId is also in the Request-Id header; it helps Rylix support find the request.| Code | HTTP | Meaning |
|---|---|---|
invalid_request |
400 | A field or filter is missing or not valid; see fields. Also: invalid JSON, a body that is not an object, a body over 64 KB, or an invalid Idempotency-Key. |
unauthorized |
401 | No valid API key. |
insufficient_scope |
403 | The key lacks the scope; fields.scope names it. |
feature_off |
403 | The developer API is not on the business's plan (or the account type has no orders). |
suspended |
403 | The business is suspended: writes are refused. |
read_only |
403 | The business is read-only: writes are refused, reads keep working. |
plan_limit |
403 | The plan allows no more orders now. |
plan_inactive |
403 | The business's plan is not active. |
not_found |
404 | No such resource in this business. |
method_not_allowed |
405 | The path does not take this method (the Allow header lists the ones it does). |
duplicate_reference |
409 | An order with this reference exists. |
invalid_state |
409 | The order is already finished (cancel). |
idempotency_in_progress |
409 | The first request with this Idempotency-Key is still running. |
too_many_endpoints |
409 | The business has the most webhook endpoints allowed (10). |
endpoint_disabled |
409 | The webhook endpoint is switched off (a test send needs it on). |
headers_unavailable |
409 | The stored custom header values can no longer be read: set every header again. |
invalid_condition |
422 | A webhook condition is not valid; fields.conditions names the index and the problem. |
invalid_fields |
422 | The webhook field selection is not valid; fields.fields names the event family. |
invalid_header |
422 | A custom header is not valid, forbidden, repeated or over the limit of 5; see fields.headers. |
invalid_timeout |
422 | timeoutMs must be a whole number from 1000 to 15000. |
invalid_event |
422 | Not a webhook event type, or the endpoint is not subscribed to it (fields.type). |
idempotency_key_reused |
422 | The Idempotency-Key was used with a different request. |
location_inactive |
422 | The pickup location is inactive: it takes no new orders. |
rate_limited |
429 | Too many requests, or too many webhook test sends in the last hour; retry after Retry-After seconds. |
internal_error |
500 | A problem on our side; retry later (with the same Idempotency-Key). |
Retry 429 (after Retry-After), 409 idempotency_in_progress and 5xx. Do not retry other 4xx without changing the request.