Коды ошибок
Код никогда не меняет ни смысла, ни статуса. Обрабатывайте ошибки по коду.
Описания написаны по-английски, как и сам API.
- idempotency_key_required400Idempotency key required
- This operation needs an `Idempotency-Key` header.
- invalid_cursor400Invalid cursor
- The cursor was changed, has expired or belongs to another sort order.
- invalid_idempotency_key400Invalid idempotency key
- The `Idempotency-Key` header must be 1 to 64 characters of A-Z, a-z, 0-9, `_ - : .`.
- invalid_json400Invalid JSON
- The body is not valid JSON.
- invalid_parameter400Invalid parameter
- A query parameter is unknown or malformed; `parameter` names it.
- credential_expired401Credential expired
- The key passed its expiry date.
- credential_revoked401Credential revoked
- The key was revoked. Create a new one in the panel.
- invalid_credential401Invalid credential
- The key does not exist or the secret does not match it.
- missing_credential401Missing credential
- Send `Authorization: Bearer {key}.{secret}`.
- account_suspended403Account suspended
- The operator account is suspended or was not approved.
- insufficient_scope403Insufficient scope
- The key lacks the scope this operation needs; `requiredScope` names it.
- ip_not_allowed403IP address not allowed
- The key has an IP allow-list and the call came from another address.
- live_key_required403Live key required
- Test keys cannot change the catalogue; use `dry_run=true` or a live key.
- module_disabled403API not enabled
- The public API is switched off for this account.
- not_found404Not found
- The resource does not exist or belongs to another account.
- method_not_allowed405Method not allowed
- The path exists but not with this method; `Allow` lists the methods.
- not_acceptable406Not acceptable
- The API answers `application/json` only.
- conflict409Conflict
- The resource is not in a state that allows this operation.
- endpoint_disabled409Endpoint disabled
- Enable the webhook endpoint before replaying to it.
- idempotency_in_progress409Request in progress
- A request with the same idempotency key is still running. Retry after `Retry-After`.
- price_changed409Price changed
- The total differs from `expectedTotal`; `total` is the current one.
- hold_expired410Hold expired
- The hold ran out and its places were released. Hold again.
- payload_too_large413Payload too large
- Bodies are limited to 1 MiB.
- unsupported_media_type415Unsupported media type
- Send bodies as `application/json`.
- endpoint_limit_reached422Endpoint limit reached
- The account has the most webhook endpoints allowed in this mode.
- idempotency_key_reused422Idempotency key reused
- The idempotency key was used with a different request.
- validation_failed422Validation failed
- One or more fields are invalid; `errors` lists them by field.
- rate_limited429Rate limited
- Too many calls this minute. Wait for `Retry-After` seconds.
- test_booking_limit429Test booking limit
- Too many open test bookings. Cancel some first.
- too_many_failed_attempts429Too many failed attempts
- Too many invalid credentials from this address.
- internal_error500Internal error
- Something failed on our side. Quote the request id to support.