#Errors
Every error has the same shape:
{"error": {"code": "stale_version", "message": "The pms_version is older than the latest accepted version (4); the push was ignored.", "request_id": "a79447e9f9d605a2", "current_version": 4}}codeis stable and is for programs. Branch on it.messageis for people. It may change; do not match on it.request_idis the same as theX-Request-Idheader. Quote it when you ask for help.- Some errors carry extra fields:
current_version(a stale push),alternatives(a closure that cannot be done as asked).
#Statuses
| Status | Meaning | What to do |
|---|---|---|
400 | the request is malformed or a value is wrong | fix the request; retrying it will fail the same way |
401 | the key or session is missing, wrong or revoked | check the key; do not retry |
403 | the key lacks a scope or a role | add the scope; do not retry |
404 | no such thing, or you may not see it | check the id; a key limited to other properties gets this too |
409 | the request is fine but the state does not allow it | read the code: often you must read first, then decide |
413 | the body is over 1 MB | split it |
429 | too many tries | wait for Retry-After seconds |
502, 503 | a channel, the mail server or Antero Connect could not answer now | retry later with the same Idempotency-Key |
500 | Antero Connect failed | retry once with the same key; if it persists, send the request_id |
Retry on 429, 502, 503, 500 and on a connection that broke before an answer came. Never retry 400, 401, 403, 404, 409 unchanged.
#Codes
#Sending and reading
| Code | Status | Meaning | What to do |
|---|---|---|---|
invalid_request | 400 | a field is missing, wrong or not allowed; the message names it | fix the field |
invalid_cursor | 400 | the after value is not one Antero Connect gave | start again without after |
unauthorized | 401 | no key, a wrong key, or a revoked or expired one | check the key |
forbidden_scope | 403 | the key does not carry the scope the operation needs | see GET /v1/whoami; make a key with the scope |
plan_max_by_migration | 409 | Antero Max cannot be chosen as a plan: it is a different system, reached by migration | POST /v1/billing/max-request |
plan_api_in_use | 409 | Antero Light has no API, and the hotel software still runs the room count or an API key is active | let Antero Connect run the room count again and revoke the keys |
plan_one_way | 409 | an account on Antero Max cannot go back to Light or Connect | none: it is a different system |
already_max | 409 | the account is on Antero Max already | nothing to ask |
forbidden_role | 403 | the person's role may not do this | ask an owner or admin |
forbidden_property | 403 | the person may not use this property | |
session_required | 403 | this is for a person signed in, not a key | use the panel |
invalid_file | 422 | the file of an import cannot be read (an old .xls, a damaged workbook, too many rows, too big) | the message says what to do: save as .xlsx or CSV, or split the file |
too_many_templates | 409 | the organization already keeps 50 import templates | delete one you no longer use (or save under an existing name to replace it) |
import_not_allowed | 409 | the property's own software runs its room count, so it takes no import | import into a property that Antero Connect runs |
payment_required | 402 | the account is locked: the free trial ended or the balance stayed below zero after the grace period | add credit in Billing; the account opens again by itself when the balance is above zero. While locked every channel is sent availability 0, so nothing is sold; keep what you could not send and send it again once the account is open |
payment_currency | 409 | online payment takes rupiah (IDR) only, and this account is billed in another currency | write to support to change the billing currency, or add credit by hand |
payment_provider_error | 502 | the payment provider (Duitku) did not accept the request to make an invoice | try again in a few minutes; nothing was charged |
payments_unavailable | 503 | online payment is not set up on this server | add credit by hand, or use a server that has a payment provider |
invalid_signature | 400 | a payment provider's callback is not signed with the project's key (only the payment provider calls this) | nothing changed; if you are the provider, check the signature formula |
account_closed | 403 | the account was closed (by an owner, or for inactivity): it is read-only until its data is deleted, 30 days after closing | read and export what you need; an owner can reopen the account in Settings or with POST /v1/account/reopen |
confirm_mismatch | 400 | the name typed to close the account is not the organization's name | type the name exactly as it is shown |
already_closed | 409 | the account is already closed | nothing to do |
not_closed | 409 | there is no closed account to reopen (or its data is already deleted) | nothing to do |
last_owner | 409 | the person is the only owner of an organization, so their login cannot be deleted yet | close the account, or make someone else an owner, first |
organization_required | 403 | a person has not chosen an organization yet | POST /v1/auth/organization |
not_found | 404 | no such resource, or not visible to this key | |
payload_too_large | 413 | the body is over 1 MB (a booking-page picture: over 1.5 MB) | split it, or send a smaller picture |
room_taken | 409 | the room is already given to another reservation on a night of the stay | choose another room; the message names the holder |
room_number_taken | 409 | a room with that number already exists in the property | use another number |
room_in_use | 409 | the room still has a guest today or later | give those reservations another room first |
rooms_kept_by_pms | 409 | the property's rooms are kept by its PMS | assign rooms in the PMS |
reservation_without_stay | 409 | the reservation has no dates or room type yet | complete it first |
payment_connection_exists | 409 | a connection of this gateway with that name already exists in the property | use another name |
connection_in_use | 409 | the payment connection has payments (records of money) | pause it instead of removing it |
no_payment_connection | 409 | the property has no active payment connection | connect a payment gateway first |
payment_connection_required | 409 | the property has several payment connections | say which one with connection_id |
nothing_owed | 409 | the reservation is paid in full | nothing to do |
cannot_pay_online | 409 | only a confirmed reservation with a price can be paid for online | complete or confirm it first |
currency_not_supported | 409 | the gateway does not take the reservation's currency | use a connection of a gateway that does |
gateway_auth_failed | 502 | the payment gateway refused the credentials | correct them in the connection |
gateway_refused | 502 | the payment gateway refused the request | see the payment's failure |
gateway_unavailable | 502 | the payment gateway could not be reached | try again in a moment |
bad_signature | 400 | a payment message is not signed by the gateway | nothing changed; check the connection's secret |
payment_method_missing | 409 | a deposit was required on the booking page but guests have no way to pay (no payment connection, no bank account) | connect a gateway or add a bank account, then save the terms |
bank_account_limit | 409 | the property already has 10 bank accounts | remove one, then add |
transfer_not_allowed | 409 | a bank transfer can be recorded only on the hotel's own confirmed reservation that has a price | check the reservation |
transfer_rejected | 409 | the transfer was rejected, so it cannot be confirmed | record a new one |
photo_limit | 409 | the property already has 24 booking-page pictures | remove one, then add |
internal_error | 500 | Antero Connect failed | retry; quote the request_id |
#Idempotency and versions
| Code | Status | Meaning | What to do |
|---|---|---|---|
idempotency_key_reused | 409 | the same key came with a different request | use a new key for new work |
stale_version | 409 | the pms_version is lower than the latest accepted; the push was ignored | read current_version; if your data is newer, push with a higher version |
version_conflict | 409 | this pms_version was already used with a different body | use a new, higher version |
feed_applied_through_required | 400 | a property run by your system needs feed_applied_through on availability pushes | send it |
feed_applied_through_ahead | 400 | you confirmed a number the feed has not reached | send a number up to head |
stale_feed_applied_through | 409 | you confirmed less than you confirmed before | never lower it |
#Bookings
| Code | Status | Meaning | What to do |
|---|---|---|---|
no_availability | 409 | no room is free on a night | show other dates; the message names the night and how many are free |
no_price | 409 | a night has no price | set the rate, or give total_amount |
price_guard | 409 | a rate is outside the property's price limits (/price-guard); nothing was saved | correct the price, or change the limits first |
price_change_large | 409 | a rate is more than five times above, or less than a fifth of, what the rate plan has now; nothing was saved | if it is meant, send the same request with confirm_large_change: true |
reservation_cancelled | 409 | a cancelled booking cannot be changed | |
reservation_not_confirmed | 409 | this needs a confirmed booking | |
stay_out_of_order | 409 | the step does not follow from where the stay is: check in before checking out; a guest who checked in is not a no-show | Record the missing step first, or undo-stay |
channel_reservation | 409 | the booking came from a channel and is changed there | change or cancel it at the channel; use placement to say where the guest sleeps |
not_a_channel_reservation | 409 | the operation is for bookings that came from a channel | |
not_a_reported_reservation | 409 | the reference belongs to a booking Antero Connect made or a channel sent, not one your system reported | use another reference |
not_a_hotel_booking | 409 | only a booking made in Antero Connect can be confirmed by email from here | |
no_guest_email | 409 | the booking has no guest email address | |
channel_manager_owns_rooms | 409 | Antero Connect counts this property's rooms, so this is done in Antero Connect | |
too_soon | 400 | the booking page: the arrival is sooner than the hotel takes bookings for (its minimum notice) | choose a later arrival |
same_day_closed | 400 | the booking page: a stay that starts today can no longer be booked today (the hotel's cut-off time has passed) | choose a later arrival day |
change_window_closed | 409 | the guest's own page: it is too late to change or cancel online (inside the hotel's window, or the stay has begun) | the message says to contact the hotel |
change_not_allowed | 409 | the guest's own page: this hotel does not let guests change a booking online | contact the hotel |
already_cancelled | 409 | the booking is cancelled already | nothing to do |
answers_invalid | 400 | the booking page: a required question is not answered, a choice is not one of its options, an answer is too long, or the questions changed since the page was loaded | the message says which; load the page again |
promo_invalid | 409 | the booking page: the promo code cannot be used (unknown or switched off, outside its dates, too short a stay, or used up). Nothing is booked | the message says why; book without it or with another code |
promo_code_exists | 409 | a promo code with that name exists in this property | choose another code, or change the existing one |
too_many_promo_codes | 409 | a property holds at most 50 promo codes | switch one off or reuse it |
not_sellable | 409 | the booking page: the stay breaks a rule of the hotel (a minimum or maximum stay, a day closed to arrival or departure, stop sell) | change the dates; the message says how |
date_in_past, too_far_ahead, too_long, too_many_rooms, too_many_guests | 400 | the booking page's limits (guests) | choose other dates or fewer rooms |
#Setting up
| Code | Status | Meaning | What to do |
|---|---|---|---|
duplicate_code | 409 | a room type or rate plan with this code exists | use another code |
no_recipients | 409 | a test email was asked for but no address is saved yet | save at least one address |
property_archived | 409 | the property is archived | |
slug_taken | 409 | another organization has this booking page address | choose another |
already_member | 409 | the person is already in the team | |
cannot_change_yourself | 409 | nobody changes or removes their own role (the organization keeps an owner) | ask another owner |
too_many_invitations, too_many_invitations_sent | 409, 429 | too many open invitations, or too many sent just now | wait, or cancel some |
too_many_tickets | 429 | more than 10 new support tickets from this account in the last hour | add to an open ticket, or try again later |
attachment_limit | 409 | a support message already has 3 pictures | put the rest on another message |
ticket_closed | 409 | a reply to a support ticket that is closed (or solved more than 14 days ago) | write a new ticket and mention its number |
weak_password | 400 | the password is too weak | |
invalid_credentials, invalid_link | 401 | wrong password, or a sign-in link that is wrong, used or expired | request a new link |
email_not_configured | 503 | this server cannot send email | tell the operator |
email_not_sent | 503 | the mail server did not take the message | retry later |
#Channels, closures and decisions
| Code | Status | Meaning | What to do |
|---|---|---|---|
connection_not_active | 409 | the connection is not switched on | switch it on first |
closure_not_supported | 409 | this channel cannot close rooms through its API | the error carries alternatives (for example set_availability_zero) |
closure_not_supported_for_ota | 409 | this channel can only close all its OTAs, or not that one | see alternatives (close_all, …) |
catalog_not_supported, audit_not_supported, pull_not_supported | 409 | this channel does not offer that read | |
action_not_allowed | 400 | the action does not settle this decision | use one of the actions the decision lists |
credentials_rejected | 502 | the channel refused the credentials | send correct ones with PATCH /v1/channel-connections/{id} |
channel_unreachable | 502 | the channel did not answer | try again later; check GET …/health |
channel_error | 502 | the channel answered with an error Antero Connect cannot name; the message carries what it said | try again; if it persists, send the request_id |
decision_not_open | 409 | the decision was already settled, or closed itself | read it again |
diff_not_open | 409 | the difference was already settled | |
delivery_not_replayable | 409 | only a delivery that gave up (dead) can be replayed | |
property_not_found | 502 | the channel does not know the remote property id you gave | check the id at the channel |
rate_limited | 502 | the channel asked Antero Connect to slow down | wait a minute and retry |
too_many_attempts | 429 | too many tries from this address or for this email | wait for Retry-After |
Read the code, not the status.
409alone means "not now, not like this".no_availabilitymeans choose other dates;stale_versionmeans you are behind;idempotency_key_reusedmeans you reused a key. The code says which.