Antero Connect Docs

#Errors

Every error has the same shape:

json
{"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}}
  • code is stable and is for programs. Branch on it.
  • message is for people. It may change; do not match on it.
  • request_id is the same as the X-Request-Id header. 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

StatusMeaningWhat to do
400the request is malformed or a value is wrongfix the request; retrying it will fail the same way
401the key or session is missing, wrong or revokedcheck the key; do not retry
403the key lacks a scope or a roleadd the scope; do not retry
404no such thing, or you may not see itcheck the id; a key limited to other properties gets this too
409the request is fine but the state does not allow itread the code: often you must read first, then decide
413the body is over 1 MBsplit it
429too many trieswait for Retry-After seconds
502, 503a channel, the mail server or Antero Connect could not answer nowretry later with the same Idempotency-Key
500Antero Connect failedretry 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

CodeStatusMeaningWhat to do
invalid_request400a field is missing, wrong or not allowed; the message names itfix the field
invalid_cursor400the after value is not one Antero Connect gavestart again without after
unauthorized401no key, a wrong key, or a revoked or expired onecheck the key
forbidden_scope403the key does not carry the scope the operation needssee GET /v1/whoami; make a key with the scope
plan_max_by_migration409Antero Max cannot be chosen as a plan: it is a different system, reached by migrationPOST /v1/billing/max-request
plan_api_in_use409Antero Light has no API, and the hotel software still runs the room count or an API key is activelet Antero Connect run the room count again and revoke the keys
plan_one_way409an account on Antero Max cannot go back to Light or Connectnone: it is a different system
already_max409the account is on Antero Max alreadynothing to ask
forbidden_role403the person's role may not do thisask an owner or admin
forbidden_property403the person may not use this property
session_required403this is for a person signed in, not a keyuse the panel
invalid_file422the 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_templates409the organization already keeps 50 import templatesdelete one you no longer use (or save under an existing name to replace it)
import_not_allowed409the property's own software runs its room count, so it takes no importimport into a property that Antero Connect runs
payment_required402the account is locked: the free trial ended or the balance stayed below zero after the grace periodadd 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_currency409online payment takes rupiah (IDR) only, and this account is billed in another currencywrite to support to change the billing currency, or add credit by hand
payment_provider_error502the payment provider (Duitku) did not accept the request to make an invoicetry again in a few minutes; nothing was charged
payments_unavailable503online payment is not set up on this serveradd credit by hand, or use a server that has a payment provider
invalid_signature400a 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_closed403the account was closed (by an owner, or for inactivity): it is read-only until its data is deleted, 30 days after closingread and export what you need; an owner can reopen the account in Settings or with POST /v1/account/reopen
confirm_mismatch400the name typed to close the account is not the organization's nametype the name exactly as it is shown
already_closed409the account is already closednothing to do
not_closed409there is no closed account to reopen (or its data is already deleted)nothing to do
last_owner409the person is the only owner of an organization, so their login cannot be deleted yetclose the account, or make someone else an owner, first
organization_required403a person has not chosen an organization yetPOST /v1/auth/organization
not_found404no such resource, or not visible to this key
payload_too_large413the body is over 1 MB (a booking-page picture: over 1.5 MB)split it, or send a smaller picture
room_taken409the room is already given to another reservation on a night of the staychoose another room; the message names the holder
room_number_taken409a room with that number already exists in the propertyuse another number
room_in_use409the room still has a guest today or latergive those reservations another room first
rooms_kept_by_pms409the property's rooms are kept by its PMSassign rooms in the PMS
reservation_without_stay409the reservation has no dates or room type yetcomplete it first
payment_connection_exists409a connection of this gateway with that name already exists in the propertyuse another name
connection_in_use409the payment connection has payments (records of money)pause it instead of removing it
no_payment_connection409the property has no active payment connectionconnect a payment gateway first
payment_connection_required409the property has several payment connectionssay which one with connection_id
nothing_owed409the reservation is paid in fullnothing to do
cannot_pay_online409only a confirmed reservation with a price can be paid for onlinecomplete or confirm it first
currency_not_supported409the gateway does not take the reservation's currencyuse a connection of a gateway that does
gateway_auth_failed502the payment gateway refused the credentialscorrect them in the connection
gateway_refused502the payment gateway refused the requestsee the payment's failure
gateway_unavailable502the payment gateway could not be reachedtry again in a moment
bad_signature400a payment message is not signed by the gatewaynothing changed; check the connection's secret
payment_method_missing409a 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_limit409the property already has 10 bank accountsremove one, then add
transfer_not_allowed409a bank transfer can be recorded only on the hotel's own confirmed reservation that has a pricecheck the reservation
transfer_rejected409the transfer was rejected, so it cannot be confirmedrecord a new one
photo_limit409the property already has 24 booking-page picturesremove one, then add
internal_error500Antero Connect failedretry; quote the request_id

#Idempotency and versions

CodeStatusMeaningWhat to do
idempotency_key_reused409the same key came with a different requestuse a new key for new work
stale_version409the pms_version is lower than the latest accepted; the push was ignoredread current_version; if your data is newer, push with a higher version
version_conflict409this pms_version was already used with a different bodyuse a new, higher version
feed_applied_through_required400a property run by your system needs feed_applied_through on availability pushessend it
feed_applied_through_ahead400you confirmed a number the feed has not reachedsend a number up to head
stale_feed_applied_through409you confirmed less than you confirmed beforenever lower it

#Bookings

CodeStatusMeaningWhat to do
no_availability409no room is free on a nightshow other dates; the message names the night and how many are free
no_price409a night has no priceset the rate, or give total_amount
price_guard409a rate is outside the property's price limits (/price-guard); nothing was savedcorrect the price, or change the limits first
price_change_large409a rate is more than five times above, or less than a fifth of, what the rate plan has now; nothing was savedif it is meant, send the same request with confirm_large_change: true
reservation_cancelled409a cancelled booking cannot be changed
reservation_not_confirmed409this needs a confirmed booking
stay_out_of_order409the step does not follow from where the stay is: check in before checking out; a guest who checked in is not a no-showRecord the missing step first, or undo-stay
channel_reservation409the booking came from a channel and is changed therechange or cancel it at the channel; use placement to say where the guest sleeps
not_a_channel_reservation409the operation is for bookings that came from a channel
not_a_reported_reservation409the reference belongs to a booking Antero Connect made or a channel sent, not one your system reporteduse another reference
not_a_hotel_booking409only a booking made in Antero Connect can be confirmed by email from here
no_guest_email409the booking has no guest email address
channel_manager_owns_rooms409Antero Connect counts this property's rooms, so this is done in Antero Connect
too_soon400the booking page: the arrival is sooner than the hotel takes bookings for (its minimum notice)choose a later arrival
same_day_closed400the 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_closed409the 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_allowed409the guest's own page: this hotel does not let guests change a booking onlinecontact the hotel
already_cancelled409the booking is cancelled alreadynothing to do
answers_invalid400the 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 loadedthe message says which; load the page again
promo_invalid409the booking page: the promo code cannot be used (unknown or switched off, outside its dates, too short a stay, or used up). Nothing is bookedthe message says why; book without it or with another code
promo_code_exists409a promo code with that name exists in this propertychoose another code, or change the existing one
too_many_promo_codes409a property holds at most 50 promo codesswitch one off or reuse it
not_sellable409the 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_guests400the booking page's limits (guests)choose other dates or fewer rooms

#Setting up

CodeStatusMeaningWhat to do
duplicate_code409a room type or rate plan with this code existsuse another code
no_recipients409a test email was asked for but no address is saved yetsave at least one address
property_archived409the property is archived
slug_taken409another organization has this booking page addresschoose another
already_member409the person is already in the team
cannot_change_yourself409nobody changes or removes their own role (the organization keeps an owner)ask another owner
too_many_invitations, too_many_invitations_sent409, 429too many open invitations, or too many sent just nowwait, or cancel some
too_many_tickets429more than 10 new support tickets from this account in the last houradd to an open ticket, or try again later
attachment_limit409a support message already has 3 picturesput the rest on another message
ticket_closed409a reply to a support ticket that is closed (or solved more than 14 days ago)write a new ticket and mention its number
weak_password400the password is too weak
invalid_credentials, invalid_link401wrong password, or a sign-in link that is wrong, used or expiredrequest a new link
email_not_configured503this server cannot send emailtell the operator
email_not_sent503the mail server did not take the messageretry later

#Channels, closures and decisions

CodeStatusMeaningWhat to do
connection_not_active409the connection is not switched onswitch it on first
closure_not_supported409this channel cannot close rooms through its APIthe error carries alternatives (for example set_availability_zero)
closure_not_supported_for_ota409this channel can only close all its OTAs, or not that onesee alternatives (close_all, …)
catalog_not_supported, audit_not_supported, pull_not_supported409this channel does not offer that read
action_not_allowed400the action does not settle this decisionuse one of the actions the decision lists
credentials_rejected502the channel refused the credentialssend correct ones with PATCH /v1/channel-connections/{id}
channel_unreachable502the channel did not answertry again later; check GET …/health
channel_error502the channel answered with an error Antero Connect cannot name; the message carries what it saidtry again; if it persists, send the request_id
decision_not_open409the decision was already settled, or closed itselfread it again
diff_not_open409the difference was already settled
delivery_not_replayable409only a delivery that gave up (dead) can be replayed
property_not_found502the channel does not know the remote property id you gavecheck the id at the channel
rate_limited502the channel asked Antero Connect to slow downwait a minute and retry
too_many_attempts429too many tries from this address or for this emailwait for Retry-After

Read the code, not the status. 409 alone means "not now, not like this". no_availability means choose other dates; stale_version means you are behind; idempotency_key_reused means you reused a key. The code says which.