Welcome to Travelandz API
Errors
Common validation and authentication errors returned by the API.
Common validation and authentication errors returned by the API.
Common validation response
json
{
"message": ["field must be a string"],
"error": "Bad Request",
"statusCode": 400
}Structured auth errors
| Status | Code | Case |
|---|---|---|
401 | missing_api_token | Missing or empty bearer token. |
401 | missing_client_id | Missing X-Travelandz-Id or missing profile code. |
401 | invalid_credentials | Malformed bearer header or invalid profile code. |
403 | invalid_credentials | Missing/inactive profile, company or credential, wrong secret, or production not allowed. |
403 | invalid_request_origin | domainsAllowed did not match IP, Origin or Referer. |
500 | - | Unexpected internal error. |