ErrorEnvelope
Body of every HTTP 4xx / 5xx response from the API.
error objectrequired
The error.
unauthorized, provider_not_enabled, booking_not_found, duplicate_booking, invalid_offer_token, invalid_booking_token, offer_expired, currency_unavailable, unsupported_currency, validation_error, not_found, method_not_allowed, payload_too_large, rate_limited, auth_unavailable, service_unavailable or internal_error. New codes may be added.
unauthorizedExplanation. May change; do not parse.
Invalid API keyprovider objectrequired
Provider concerned, when there is one.
- string
- null
healthySame as the X-Request-Id response header. Quote it to support.
6f1c2a9e-0d4b-4a57-9a51-3c2f8e1d7b20details object[]
Only for 422 validation_error: one entry per problem.
loc object[]required
Path of the offending field inside the body, for example ["point_to_point", "adults"]; empty for a body that is not valid JSON.
- string
- integer
healthyExplanation.
Input should be greater than or equal to 1Kind of problem, for example missing, greater_than_equal, value_error, extra_forbidden, json_invalid.
greater_than_equal{
"error": {
"code": "unauthorized",
"message": "Invalid API key",
"provider": null,
"request_id": "6f1c2a9e-0d4b-4a57-9a51-3c2f8e1d7b20"
}
}