Antero Connect Docs

#Reservations

Bookings from every origin in one place, and the numbered feed that lets a hotel system learn about every new or changed booking without missing one.

#Where a booking comes from

sourceMade byRooms counted byChanged by
channela guest at an OTA, through a connected channelAntero Connect holds them (or takes them off sale), see Availabilitythe channel only (409 channel_reservation)
manualsomeone in Antero Connect, or the booking pagethe sameyou: PATCH, cancel
pmsthe hotel's own software, reported to Antero Connect for displayyour system (it is already in your numbers)your system, by reporting again

For manual bookings booked_via says who: engine (a guest on the booking page) or staff (a person in the hotel or a program using a key).

#What a booking looks like

json
{
  "id": "d09d3b6f-32fe-580a-ba44-329782bff72a",
  "source": "manual", "booked_via": "staff", "external_id": "KN-G6MSB7", "status": "confirmed",
  "room_type_id": "…", "rate_plan_id": "…",
  "arrival": "2027-03-11", "departure": "2027-03-13", "stay_nights": 2, "rooms": 1, "adults": 2, "children": 0,
  "currency": "USD", "total_amount": 24000, "nights_derived": false,
  "collected_by": "hotel", "payment_status": "deposit",
  "booked_at": "2027-03-01T09:04:00Z", "cancelled_at": null, "placement": null,
  "guest": {"name": "Ana Lee", "email": "ana.lee@example.com", "phone": "+1 555 0100", "country": "US"}
}
Field
external_idthe booking number: the channel's for a channel booking, KN-… for one made in Antero Connect, your reference for one you reported
statusconfirmed, cancelled, or pending (see below)
arrival, departurethe first night, and the day of leaving; the nights are arrival up to but not including departure
total_amountfor the whole stay and all rooms, smallest unit. nights_derived is true when the channel gave only a total and Antero Connect spread it evenly over the nights
collected_bywho collects payment: channel (prepaid at the OTA) or hotel. collected_by_assumed is true when the channel did not say and hotel is the cautious default
guestonly with read:reservations.personal. Absent without it. Kept for a limited time, then cleared
placementwhere your system put the guest, kept beside what the channel booked

#Pending

A booking Antero Connect received but cannot place yet is pending, with a pending_reason: unmapped_room, unmapped_rate, no_price, bad_dates, bad_nights or bad_currency. It is not an error: map the room (or fix the cause) and it completes by itself. A pending booking is not in the feed yet, and a decision on the board asks a person to look.

#The feed

The feed is a log, numbered, one per property, of everything that happened to a booking that your system must take into account.

bash
export CHANNEL_MANAGER=https://api.anteromas.com   # the address of your Channel Manager service
export KEY=cm_prod_ab12cd34_0123456789abcdef0123456789abcdef   # your API key

curl -s -X GET "$CHANNEL_MANAGER/v1/properties/$PROPERTY_ID/reservation-feed?after=41&limit=100" \
  -H "Authorization: Bearer $KEY"
python
import os
import requests

CHANNEL_MANAGER = os.environ["CHANNEL_MANAGER"]   # the address of your Channel Manager service
KEY = os.environ["KEY"]       # your API key

r = requests.get(
    f"{CHANNEL_MANAGER}/v1/properties/{PROPERTY_ID}/reservation-feed?after=41&limit=100",
    headers={"Authorization": f"Bearer {KEY}"},
)
r.raise_for_status()
print(r.status_code, r.text)
javascript
// Node.js 18 or newer (fetch is built in); save as a .mjs file
const CHANNEL_MANAGER = process.env.CHANNEL_MANAGER; // the address of your Channel Manager service
const KEY = process.env.KEY;     // your API key
let r;                           // the last answer

r = await fetch(`${CHANNEL_MANAGER}/v1/properties/${PROPERTY_ID}/reservation-feed?after=41&limit=100`, {
  method: "GET",
  headers: { Authorization: `Bearer ${KEY}` },
});
if (!r.ok) throw new Error(await r.text());
console.log(r.status, await r.text());
php
<?php
$CHANNEL_MANAGER = getenv("CHANNEL_MANAGER"); // the address of your Channel Manager service
$KEY = getenv("KEY");     // your API key

$ch = curl_init("{$CHANNEL_MANAGER}/v1/properties/{$PROPERTY_ID}/reservation-feed?after=41&limit=100");
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => "GET",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ["Authorization: Bearer {$KEY}"],
]);
$out = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status >= 400) { throw new RuntimeException($out); }
echo $status, " ", $out, "\n";
json
{"data": [{"seq": 42, "kind": "created", "reservation_id": "…", "external_id": "KN-G6MSB7", "created_at": "…", "reservation": {…}, "guest": {…}}],
 "head": 42, "applied_through": 41}
kindWhen
createdthe first time a booking is confirmed
modifieddates, room type, rooms or guests changed
cancelleda booking your system already had was cancelled
placementyour own system moved the guest (an echo; nothing to apply)
  • seq always grows and may skip a number. Never treat a gap as an error.
  • head is the newest number; applied_through is how far you confirmed.
  • Reading again from the same after returns the same entries. Entries are in order, oldest first.
  • Apply an entry by external_id, never as "add one". The same entry applied twice must change nothing.
  • A webhook only nudges you (Webhooks). The feed is the truth. Nothing is lost because a webhook failed.

#Taking an entry over

  1. Read the feed after your saved number.
  2. For each entry in order: record the booking in your system. If it is for a room type you do not know, stop: do not move on, do not confirm it.
  3. Save the bookings and the new number together, atomically.
  4. Push availability with feed_applied_through set to that number. Antero Connect releases the holds up to it.

Why this order, and what to do when it goes wrong at each step, is the subject of Integrating a PMS.

#A cancellation can come before its booking

Channels sometimes send a cancellation before Antero Connect has processed the booking. Antero Connect makes the cancellation win whatever the order of processing, so the booking ends cancelled and never confirmed. You see a cancelled entry only if you had seen the booking.

#Taking a booking yourself

bash
curl -s -X POST "$CHANNEL_MANAGER/v1/properties/$PROPERTY_ID/reservations" \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: res-ana-lee-2027-03-11" \
  -d @- <<EOF
{
  "room_type_id": "$ROOM_TYPE_ID",
  "arrival": "2027-03-11",
  "departure": "2027-03-13",
  "rooms": 1,
  "adults": 2,
  "guest": {
    "name": "Ana Lee",
    "email": "ana.lee@example.com"
  },
  "payment_status": "deposit"
}
EOF
python
r = requests.post(
    f"{CHANNEL_MANAGER}/v1/properties/{PROPERTY_ID}/reservations",
    headers={"Authorization": f"Bearer {KEY}", "Idempotency-Key": "res-ana-lee-2027-03-11"},
    json={
        "room_type_id": f"{ROOM_TYPE_ID}",
        "arrival": "2027-03-11",
        "departure": "2027-03-13",
        "rooms": 1,
        "adults": 2,
        "guest": {
            "name": "Ana Lee",
            "email": "ana.lee@example.com",
        },
        "payment_status": "deposit",
    },
)
r.raise_for_status()
print(r.status_code, r.text)
javascript
r = await fetch(`${CHANNEL_MANAGER}/v1/properties/${PROPERTY_ID}/reservations`, {
  method: "POST",
  headers: { Authorization: `Bearer ${KEY}`, "Content-Type": "application/json", "Idempotency-Key": "res-ana-lee-2027-03-11" },
  body: JSON.stringify({
    room_type_id: `${ROOM_TYPE_ID}`,
    arrival: "2027-03-11",
    departure: "2027-03-13",
    rooms: 1,
    adults: 2,
    guest: {
      name: "Ana Lee",
      email: "ana.lee@example.com",
    },
    payment_status: "deposit",
  }),
});
if (!r.ok) throw new Error(await r.text());
console.log(r.status, await r.text());
php
$ch = curl_init("{$CHANNEL_MANAGER}/v1/properties/{$PROPERTY_ID}/reservations");
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => "POST",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ["Authorization: Bearer {$KEY}", "Content-Type: application/json", "Idempotency-Key: res-ana-lee-2027-03-11"],
    CURLOPT_POSTFIELDS => json_encode([
        "room_type_id" => "{$ROOM_TYPE_ID}",
        "arrival" => "2027-03-11",
        "departure" => "2027-03-13",
        "rooms" => 1,
        "adults" => 2,
        "guest" => [
            "name" => "Ana Lee",
            "email" => "ana.lee@example.com",
        ],
        "payment_status" => "deposit",
    ]),
]);
$out = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status >= 400) { throw new RuntimeException($out); }
echo $status, " ", $out, "\n";
  • The rooms leave sale at once, for every night. Two requests can never take the last room: the second is 409 no_availability, and nothing is written.
  • Without total_amount the stay is priced from the rates (409 no_price if a night has none). With total_amount (the whole stay) the nights share it evenly.
  • payment_status is unpaid, deposit or paid: a note for the hotel, not a payment. Antero Connect does not take payments.
  • Price it first with POST …/quote, which writes nothing and says for each night the price and how many rooms are free, plus whether the stay is bookable.
  • Change it with PATCH /v1/reservations/{id} (dates, rooms, guest, notes): the rooms move with the change and the stay is priced again; a change that does not fit is 409 no_availability and changes nothing. Cancel it with POST …/cancel; cancelling twice is the same as once.
  • Keep the front desk's record of the stay on any reservation, whoever made it: POST …/check-in, …/check-out, …/no-show, and …/undo-stay (takes back the last step). They set checked_in_at, checked_out_at and no_show_at. This is only a record: it never moves rooms, holds or what a channel sees, and it is not announced in the feed. Order is checked (409 stay_out_of_order: check in before checking out; a guest who checked in is not a no-show), and only a confirmed reservation can take a step (409 reservation_not_confirmed). Doing a step twice keeps the first time.
  • In a property run by your system, the booking, the change and the cancellation are announced in the feed and the rooms come back when you confirm.
  • To email the guest what was booked: POST /v1/reservations/{id}/send-confirmation. Nothing is emailed by itself.

#Moving a guest: placement

Your system decides where a guest sleeps. PATCH /v1/reservations/{id}/placement records the room type and dates you put the guest in, beside what the channel booked (which is never overwritten). The new room and dates are held at once. Only a confirmed booking can be placed.

#Showing your own bookings in Antero Connect

Your system's own bookings (made at the front desk) can be reported so Antero Connect panel shows who stays, arrives and leaves:

bash
curl -s -X PUT "$CHANNEL_MANAGER/v1/properties/$PROPERTY_ID/pms-reservations" \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: pms-report-17" \
  -d @- <<EOF
{
  "items": [
    {
      "reference": "FD-1042",
      "status": "confirmed",
      "room_type_id": "$ROOM_TYPE_ID",
      "arrival": "2027-03-14",
      "departure": "2027-03-16",
      "rooms": 1,
      "adults": 2,
      "total_amount": 24000,
      "currency": "USD",
      "guest": {
        "name": "Budi Santoso",
        "email": "budi@example.com"
      }
    }
  ]
}
EOF
python
r = requests.put(
    f"{CHANNEL_MANAGER}/v1/properties/{PROPERTY_ID}/pms-reservations",
    headers={"Authorization": f"Bearer {KEY}", "Idempotency-Key": "pms-report-17"},
    json={
        "items": [
            {
                "reference": "FD-1042",
                "status": "confirmed",
                "room_type_id": f"{ROOM_TYPE_ID}",
                "arrival": "2027-03-14",
                "departure": "2027-03-16",
                "rooms": 1,
                "adults": 2,
                "total_amount": 24000,
                "currency": "USD",
                "guest": {
                    "name": "Budi Santoso",
                    "email": "budi@example.com",
                },
            },
        ],
    },
)
r.raise_for_status()
print(r.status_code, r.text)
javascript
r = await fetch(`${CHANNEL_MANAGER}/v1/properties/${PROPERTY_ID}/pms-reservations`, {
  method: "PUT",
  headers: { Authorization: `Bearer ${KEY}`, "Content-Type": "application/json", "Idempotency-Key": "pms-report-17" },
  body: JSON.stringify({
    items: [
      {
        reference: "FD-1042",
        status: "confirmed",
        room_type_id: `${ROOM_TYPE_ID}`,
        arrival: "2027-03-14",
        departure: "2027-03-16",
        rooms: 1,
        adults: 2,
        total_amount: 24000,
        currency: "USD",
        guest: {
          name: "Budi Santoso",
          email: "budi@example.com",
        },
      },
    ],
  }),
});
if (!r.ok) throw new Error(await r.text());
console.log(r.status, await r.text());
php
$ch = curl_init("{$CHANNEL_MANAGER}/v1/properties/{$PROPERTY_ID}/pms-reservations");
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => "PUT",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ["Authorization: Bearer {$KEY}", "Content-Type: application/json", "Idempotency-Key: pms-report-17"],
    CURLOPT_POSTFIELDS => json_encode([
        "items" => [
            [
                "reference" => "FD-1042",
                "status" => "confirmed",
                "room_type_id" => "{$ROOM_TYPE_ID}",
                "arrival" => "2027-03-14",
                "departure" => "2027-03-16",
                "rooms" => 1,
                "adults" => 2,
                "total_amount" => 24000,
                "currency" => "USD",
                "guest" => [
                    "name" => "Budi Santoso",
                    "email" => "budi@example.com",
                ],
            ],
        ],
    ]),
]);
$out = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status >= 400) { throw new RuntimeException($out); }
echo $status, " ", $out, "\n";

These are for display only (source: pms): your own numbers already count their rooms, so Antero Connect takes nothing off sale. Reporting the same reference again updates it; reporting it twice changes nothing; up to 200 per call, and one bad item refuses the call and names it. Do not report bookings that came from a channel: Antero Connect already has them.

#Telling the hotel

A hotel usually wants to know the moment a booking arrives. Antero Connect can email the hotel's own people when a booking is made or cancelled, whatever its source (a channel, the booking page, someone in Antero Connect):

bash
export CHANNEL_MANAGER=https://api.anteromas.com   # the address of your Channel Manager service
export KEY=cm_prod_ab12cd34_0123456789abcdef0123456789abcdef   # your API key

curl -s -X PUT "$CHANNEL_MANAGER/v1/properties/$PROPERTY_ID/notifications" \
  -H "Authorization: Bearer $KEY" \
  -H "Content-Type: application/json" \
  -d @- <<EOF
{
  "enabled": true,
  "recipients": [
    "front@villa-sunrise.example",
    "owner@villa-sunrise.example"
  ],
  "on_new": true,
  "on_cancel": true,
  "locale": "en"
}
EOF
python
import os
import requests

CHANNEL_MANAGER = os.environ["CHANNEL_MANAGER"]   # the address of your Channel Manager service
KEY = os.environ["KEY"]       # your API key

r = requests.put(
    f"{CHANNEL_MANAGER}/v1/properties/{PROPERTY_ID}/notifications",
    headers={"Authorization": f"Bearer {KEY}"},
    json={
        "enabled": True,
        "recipients": ["front@villa-sunrise.example", "owner@villa-sunrise.example"],
        "on_new": True,
        "on_cancel": True,
        "locale": "en",
    },
)
r.raise_for_status()
print(r.status_code, r.text)
javascript
// Node.js 18 or newer (fetch is built in); save as a .mjs file
const CHANNEL_MANAGER = process.env.CHANNEL_MANAGER; // the address of your Channel Manager service
const KEY = process.env.KEY;     // your API key
let r;                           // the last answer

r = await fetch(`${CHANNEL_MANAGER}/v1/properties/${PROPERTY_ID}/notifications`, {
  method: "PUT",
  headers: { Authorization: `Bearer ${KEY}`, "Content-Type": "application/json" },
  body: JSON.stringify({
    enabled: true,
    recipients: ["front@villa-sunrise.example", "owner@villa-sunrise.example"],
    on_new: true,
    on_cancel: true,
    locale: "en",
  }),
});
if (!r.ok) throw new Error(await r.text());
console.log(r.status, await r.text());
php
<?php
$CHANNEL_MANAGER = getenv("CHANNEL_MANAGER"); // the address of your Channel Manager service
$KEY = getenv("KEY");     // your API key

$ch = curl_init("{$CHANNEL_MANAGER}/v1/properties/{$PROPERTY_ID}/notifications");
curl_setopt_array($ch, [
    CURLOPT_CUSTOMREQUEST => "PUT",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_HTTPHEADER => ["Authorization: Bearer {$KEY}", "Content-Type: application/json"],
    CURLOPT_POSTFIELDS => json_encode([
        "enabled" => true,
        "recipients" => ["front@villa-sunrise.example", "owner@villa-sunrise.example"],
        "on_new" => true,
        "on_cancel" => true,
        "locale" => "en",
    ]),
]);
$out = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($status >= 400) { throw new RuntimeException($out); }
echo $status, " ", $out, "\n";

Up to five addresses. Bookings that came before it was switched on are history, not news, so it never floods an inbox. A booking your own system reported is not announced (you made it). POST …/notifications/test sends a test email to the saved addresses at once. If the mail server is down the email is tried again later; a booking is told once.

#Writing to the guest

A hotel can have Antero Connect write to its guests by itself with two routines (PUT /v1/properties/{id}/routines), both off until chosen:

  • an email before the stay, pre_days days before arrival (1 to 14, default 2): "we look forward to welcoming you", with the check-in time, the address and the phone from the property's profile;
  • an email after the stay, post_days days after departure (1 to 14, default 1): "thank you for staying".

Each can carry the hotel's own words (directions, a gate code, a link to review the stay), up to 1000 characters. They go only to stays the hotel made itself (by hand or on its booking page) that are confirmed and have an address that can be written to; the address of a guest from a channel is usually the channel's relay. Switching a routine on starts it from that moment: stays whose moment had already passed are history, so nobody is written to about the past. Each guest is written to once; a send that failed is tried again. POST …/routines/preview shows an email without sending it.

#Listing

GET /v1/properties/{id}/reservations takes status, connection_id, arrival_from and arrival_to, plus pagination. GET /v1/reservations/{id} adds nights, room_lines and revisions (what changed and when).

#Guests

GET /v1/properties/{id}/guests (read:reservations.personal) lists the guests of a property: one row per email address (capitals do not matter) across every reservation, whatever its source, with the latest name, stays, cancelled, first_arrival, last_arrival and next_arrival. Most recent stay first, at most 500. Reservations that hold a guest without an email address cannot be told apart and are only counted in no_address. To see one guest's reservations, use the export call below.

#When a guest asks about their data

A guest may ask what the hotel keeps about them, and ask for it to be erased. Two calls answer. Both take the guest's email address in the body, never in the URL, because addresses end up in logs.

  • POST /v1/properties/{id}/guest-data/export (read:reservations.personal) lists every reservation of the property that holds the address, with the data kept. Capitals in the address do not matter.
  • POST /v1/properties/{id}/guest-data/erase (write:reservations) removes the guest's name, email, phone and country from every such reservation whose stay is over, or that was cancelled, and scrubs the stored channel messages of them. The booking stays with its dates and amounts, so the hotel's figures do not change; the hash that would let the same guest be recognised goes too. A stay still to come keeps its guest, because the hotel needs to know who is coming; it is listed in kept so it can be erased after the stay. The audit trail records that an erasure happened and how much, never whose.

Apart from this, guest data that came from a channel is cleared by itself after the retention period (30 days by default) once the hotel's system has confirmed the booking.