{
  "info": {
    "name": "Channel Manager API",
    "description": "Every operation of the Channel Manager API with the examples of the documentation. Set base_url and api_key in the collection variables.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "variable": [
    {
      "key": "base_url",
      "value": "https://api.anteromas.com"
    },
    {
      "key": "api_key",
      "value": "cm_prod_xxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    },
    {
      "key": "property_id",
      "value": ""
    },
    {
      "key": "room_type_id",
      "value": ""
    },
    {
      "key": "rate_plan_id",
      "value": ""
    },
    {
      "key": "reservation_id",
      "value": ""
    },
    {
      "key": "connection_id",
      "value": ""
    },
    {
      "key": "endpoint_id",
      "value": ""
    },
    {
      "key": "decision_id",
      "value": ""
    },
    {
      "key": "closure_id",
      "value": ""
    },
    {
      "key": "invitation_id",
      "value": ""
    },
    {
      "key": "member_id",
      "value": ""
    },
    {
      "key": "key_id",
      "value": ""
    }
  ],
  "item": [
    {
      "name": "Meta",
      "item": [
        {
          "name": "Liveness check",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/healthz",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "healthz"
              ]
            },
            "description": "No authentication. Answers `200 {\"status\":\"ok\"}` while the service can take requests. Use it for a load balancer or an uptime check. It does not prove the database is reachable: use `/readyz` for that.\n"
          }
        },
        {
          "name": "Readiness check",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/readyz",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "readyz"
              ]
            },
            "description": "No authentication. Answers `200 {\"status\":\"ready\"}` when the service can do its work, that is when its database answers within two seconds, and `503 {\"status\":\"unavailable\",\"failed\":[\"database\"]}` when it\ncannot. `/healthz` stays `ok` while the database is down; this one does not. Point an uptime monitor at it, once a minute, and raise the alarm on two failures in a row.\n"
          }
        },
        {
          "name": "Show which organization and scopes the API key carries",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/whoami",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "whoami"
              ]
            },
            "description": "Needs any valid key. Shows the organization the key belongs to, the scopes it carries and the properties it is limited to (empty means every property). Call it first with a new key: a `403 insufficient_scope` later is almost always a scope missing here.\n"
          }
        }
      ]
    },
    {
      "name": "API keys",
      "item": [
        {
          "name": "List the organization's API keys",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/api-keys",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "api-keys"
              ]
            },
            "description": "For a **person signed in as owner or admin** (a key cannot manage keys). Active keys first. A key is never shown again after it was\nmade; only its prefix (the part that identifies it). `valid_scopes` lists what a key can carry.\n"
          }
        },
        {
          "name": "Make an API key",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/api-keys",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "api-keys"
              ]
            },
            "description": "For a person signed in as owner or admin. The answer carries the whole `key` **once**; keep it, it cannot be read again.\nA key can only carry permissions the person who makes it has. Say which properties it is for: `property_ids` (a list), or `all_properties: true` for every property of the organization. Neither, an empty list, or both is `400`.\n"
          }
        },
        {
          "name": "Revoke an API key",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/api-keys/{{key_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "api-keys",
                "{{key_id}}"
              ]
            },
            "description": "For a person signed in as owner or admin. A revoked key stops working at once and stays in the list as revoked."
          }
        }
      ]
    },
    {
      "name": "Team",
      "item": [
        {
          "name": "List the team and the open invitations",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/members",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "members"
              ]
            },
            "description": "For a **person signed in as owner or admin**. `assignable_roles` is what the caller may give: an owner any role, an admin only\nstaff and readonly.\n"
          }
        },
        {
          "name": "Change a member's role",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/members/{{member_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "members",
                "{{member_id}}"
              ]
            },
            "description": "Only an owner may touch an owner or an admin; an admin may move staff and readonly. Nobody changes themselves (409\n`cannot_change_yourself`), so the organization always keeps an owner. The person's open sessions take the new role at once.\n"
          }
        },
        {
          "name": "Remove a member from the team",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/members/{{member_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "members",
                "{{member_id}}"
              ]
            },
            "description": "Same rules as changing a role. The person's sessions in this organization end at once; their other organizations are untouched."
          }
        },
        {
          "name": "Invite a person by email",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/invitations",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "invitations"
              ]
            },
            "description": "The email carries a sign-in link; signing in by it (or by any link sent to that address while the invitation is open, 7 days)\nmakes the person a member with the role. Inviting an address again replaces its open invitation. When the email cannot be sent\nnothing is saved (503 `email_not_sent`; 503 `email_not_configured` when the server has no mail setup). 409 `already_member`.\n"
          }
        },
        {
          "name": "Cancel an open invitation",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/invitations/{{invitation_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "invitations",
                "{{invitation_id}}"
              ]
            },
            "description": "Requires a person signed in as owner or admin (a session, not an API key). Cancels an invitation that has not been accepted; the link in the email stops working. Cancelling one that is already accepted or gone is a `404`.\n"
          }
        }
      ]
    },
    {
      "name": "Billing",
      "item": [
        {
          "name": "See whether the account is closed",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/account",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "account"
              ]
            },
            "description": "For a **person signed in**, in any role. Works while the account is closed or locked. `closed` is true after an owner closed the account (or it was closed for inactivity); `closed_at` and\n`purge_after` say when, and when the data is deleted for good (30 days after closing). `days_left` counts the days to that. `terms_version` is the version of the terms in force.\n"
          }
        },
        {
          "name": "Close the account (owner)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/account/close",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "account",
                "close"
              ]
            },
            "description": "Only an **owner** signed in. The body must carry the name of the organization exactly (`confirm_name`, capitals and surrounding spaces do not matter), or the answer is `400 confirm_mismatch`.\nFrom then on the account is read-only (every change answers `403 account_closed`; reading and exporting work), nothing is charged, every channel is told 0 rooms, and the public booking page\ntakes no bookings. The data is deleted for good after 30 days; until then `POST /v1/account/reopen` undoes this. `409 already_closed` when it was closed already.\n"
          }
        },
        {
          "name": "Reopen a closed account (owner)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/account/reopen",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "account",
                "reopen"
              ]
            },
            "description": "Only an **owner** signed in. Opens the account again, with its data, while the data is still there; every channel is sent its rooms again. `409 not_closed` when there is nothing to reopen or the data was already deleted."
          }
        },
        {
          "name": "See the plan, the balance and where the account stands",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/billing",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "billing"
              ]
            },
            "description": "For a **person signed in** (a session; a key gets `403 session_required`), in any role. Works while the account is locked.\n\n`status` is where the organization stands: `trial` (free; nothing is charged), `active`, `grace` (the balance went below zero after a charge; it is locked on `grace_ends_at`\nunless credit arrives) or `locked` (only billing and sign-in work; everything else answers `402 payment_required`). `trial_state` is `trial` while the free trial runs and `ended` after;\n`trial_days_left` counts a day that has begun.\n\nThe account is prepaid. Amounts are whole minor units of `currency`. A fee is worked out each day from the rooms the organization has (`rooms`: the units of its active room types) and the price\nof its tier (`monthly_price`; `tier_max_rooms` is the tier, 0 when there is none); on the 1st of a month the fees of the month before are taken from `balance` in one charge (`next_charge_on`).\n`accrued_not_charged` is what has built up this month. `quote_required` means more rooms than the largest tier: the price is agreed with the organization. `price_missing` means no price is set\nfor the plan and currency, so nothing is charged yet.\n"
          }
        },
        {
          "name": "See the account statement",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/billing/statement",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "billing",
                "statement"
              ]
            },
            "description": "For a **person signed in**. The ledger, newest first, with the balance after each line. A line is a `topup` (credit), a `charge` (the month's fees, a debit with its `period`), an `adjustment` or a `credit`\n(a gift). The ledger is only ever added to. Works while the account is locked.\n"
          }
        },
        {
          "name": "Add credit with a payment provider (rupiah)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/billing/topups",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "billing",
                "topups"
              ]
            },
            "description": "For an **owner or admin signed in**. Asks the provider (`duitku` or `doku`; left out, the first one this server has: see `payment_providers` of `GET /v1/billing`) for a payment of `amount` (Rp 10.000 to Rp 100.000.000; in hundredths, see below) and returns the provider's page to send the person to (`payment_url`). The balance\ndoes **not** move now: it moves when the provider's signed notification says the money came (see `GET /v1/billing/topups/{order}` to ask whether it has). Online payment takes rupiah only,\nso an account billed in another currency gets `409 payment_currency`; a server with no provider set up answers `503 payments_unavailable`, and a provider it does not have is a 400. Works while the account is locked.\n"
          }
        },
        {
          "name": "Has a top-up been paid?",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/billing/topups/{{order}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "billing",
                "topups",
                "{{order}}"
              ]
            },
            "description": "For a person signed in. `paid` once the ledger has the line that the provider's signed notification caused, `pending` until then. A DOKU order that is still pending a minute after it was made is also asked about at DOKU (at most once every 20 seconds), so a notification that is late or never came does not leave a paid order unpaid: it is credited then, once, and only for the amount that was asked. Another organization's order is a 404.\n"
          }
        },
        {
          "name": "See the fee of each day of a month",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/billing/daily-fees",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "billing",
                "daily-fees"
              ]
            },
            "description": "For a **person signed in**. The daily fees of a month (default: this month), oldest first. A day's fee is the month's price spread over its days; the charge on the 1st is the sum of them. Days\nare UTC days. Works while the account is locked. The days of the free trial are listed too, with `waived: \"trial\"`: they show what the day would cost and are not charged.\n"
          }
        },
        {
          "name": "Choose the plan",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/billing/plan",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "billing",
                "plan"
              ]
            },
            "description": "For a **person signed in as owner** (a session); anyone else gets `403 forbidden_role`. An owner switches between `light` (the front desk) and `connect` (Light and the channel manager, with the panel and the booking page) at any time;\nwhat is charged follows the plan from the next day's fee, and the days already used keep their price. `max` (the full hotel system) is a different system and is reached only by migration: asking for it here is\n`409 plan_max_by_migration` (use `POST /v1/billing/max-request`), and an account that is on it cannot go back (`409 plan_one_way`). `light` has no API, so it is refused with `409 plan_api_in_use` while a property's room count is run by the hotel software or an API key is active.\n"
          }
        },
        {
          "name": "Ask to migrate to Antero Max",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/billing/max-request",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "billing",
                "max-request"
              ]
            },
            "description": "For a person signed in as owner. Antero Max is a different system from Light and Connect: the hotel's data is moved to it once, and there is no way back. This records the request (with an optional note); we start the\nmigration and agree a date with the owner. Asking twice is the same as once. `409 already_max` when the account is on Max already. The answer is the billing state, whose `max_request` says that a request is open.\n"
          }
        }
      ]
    },
    {
      "name": "Support",
      "item": [
        {
          "name": "The tickets of this organization",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/support/tickets",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "support",
                "tickets"
              ]
            },
            "description": "For a person signed in. Newest activity first, at most 100. `status=open` leaves out the solved and closed ones."
          }
        },
        {
          "name": "Write to support",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/support/tickets",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "support",
                "tickets"
              ]
            },
            "description": "For a person signed in, in any role. The ticket gets a number (`T-1042`) and carries a snapshot of the technical state (`context`). `blocking: true` says the problem stops the hotel's bookings and raises the priority.\nAt most 10 new tickets an hour per organization (`429 too_many_tickets`): add to an open ticket instead.\n"
          }
        },
        {
          "name": "One ticket with its messages",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/support/tickets/{{id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "support",
                "tickets",
                "{{id}}"
              ]
            },
            "description": "For a person signed in. Our internal notes are never in `messages`."
          }
        },
        {
          "name": "Add to a ticket",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/support/tickets/{{id}}/messages",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "support",
                "tickets",
                "{{id}}",
                "messages"
              ]
            },
            "description": "For a person signed in. A reply opens a solved ticket again for 14 days after it was solved; after that, and for a closed ticket, the answer is `409 ticket_closed` (write a new ticket).\n"
          }
        },
        {
          "name": "Say that it is solved",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/support/tickets/{{id}}/solved",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "support",
                "tickets",
                "{{id}}",
                "solved"
              ]
            },
            "description": "For a person signed in. A solved ticket opens again by a reply for 14 days. Saying it twice is the same as once."
          }
        },
        {
          "name": "Put a picture on a message",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/support/messages/{{id}}/attachments",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "support",
                "messages",
                "{{id}}",
                "attachments"
              ]
            },
            "description": "For the person who wrote the message. The request body is the picture itself (JPEG, PNG or WebP, at most 1.5 MB; the panel shrinks a screenshot first). A message takes at most 3 pictures (`409 attachment_limit`).\nA message of somebody else's, or one that does not exist, is `404`.\n"
          }
        },
        {
          "name": "A picture of a ticket",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/support/attachments/{{id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "support",
                "attachments",
                "{{id}}"
              ]
            },
            "description": "For a person of the organization the ticket belongs to. The answer is the picture itself."
          }
        }
      ]
    },
    {
      "name": "Reservations",
      "item": [
        {
          "name": "Read a file of reservations from another system",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/imports/inspect",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "imports",
                "inspect"
              ]
            },
            "description": "Needs `write:reservations`. Send the file (a **CSV** or an Excel **.xlsx**; the old `.xls` must be saved as one of these) as `multipart/form-data` in the field `file`. Optional fields: `sheet` (a\nsheet name) and `header_row` (1-based; default: the first row with at least two filled cells). Nothing is saved.\n\nThe answer is what a screen needs to let a person say which column is what: the sheets, every column with a few values (and every different value when there are few, so a status or a room type can be\nmatched), and guesses: `mapping` (field to column index, from the headers, in English and Indonesian), `date_format` (`dmy`, `mdy` or `ymd`; `date_ambiguous` is true when both day-first and\nmonth-first would fit, so the person should say), `decimal` (`.` or `,`), and `statuses` (a guess of what each status value means; an empty string = the person must say). A file may have at most\n3000 reservations and 10 MB.\n"
          }
        },
        {
          "name": "List the imports of a property",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/imports",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "imports"
              ]
            },
            "description": "Needs `read:reservations`. The imports that were run, newest first (the last 50)."
          }
        },
        {
          "name": "Import the reservations of a file",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/imports",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "imports"
              ]
            },
            "description": "Needs `write:reservations`. For a property that Antero Connect runs (`channel_manager_authoritative`); a property whose own software runs its room count answers `409 import_not_allowed`.\nOne file, one property. Send `multipart/form-data` with the file in `file` and these fields: `mapping` (JSON, see below), `dry_run` (`true`: do everything and keep nothing, so the person sees\nexactly what would happen) and `skip_errors` (`true`: import the good rows and leave out the rows with errors; without it, one error stops the import and nothing is saved, `blocked: true`).\n\n`mapping`: `fields` (field to 0-based column index: `external_id`, `arrival`, `departure`, `guest_name` (or `first_name` and `last_name`), `room_type`, `rooms`, `adults`, `children`, `total`,\n`status`, `payment_status`, `email`, `phone`, `country`, `notes`, `booked_at`, `source_channel`), `date_format`, `decimal`, `room_types` (the room column's value in lower case with single spaces,\nto a room type id of this property), `default_room_type_id` (for a file with no room column), `statuses` (a status value, the same way, to `confirmed`, `cancelled` or `skip`), `sheet`, `header_row`.\n\nWhat is imported are reservations of source `import`. A reservation still ahead of today (in the property's time zone) takes its rooms off sale from the rooms the hotel has on sale, like a booking\nof the hotel's own; one that is over only records the stay. Nothing is refused for lack of rooms or a missing price: the nights where the file needs more rooms than are on sale are counted in\n`overbooked_nights`, and a missing price is counted in `no_price`. The booking number of the file is the reservation's reference: a number the property already has is left as it is\n(`duplicates`), so the same file can be sent again. Card numbers are never read: there is no field for them. The whole file goes in one transaction, and the same `Idempotency-Key` imports it once.\n"
          }
        },
        {
          "name": "List the saved ways of reading an import file",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/import-templates",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "import-templates"
              ]
            },
            "description": "Needs `read:reservations`. The templates of the organization (they are not tied to a property), by name."
          }
        },
        {
          "name": "Save a way of reading an import file",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/import-templates",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "import-templates"
              ]
            },
            "description": "Needs `write:reservations`. Keeps what a person decided while mapping a file, so the next file from the same system needs no mapping: the column of each field **by the text of its header**, how dates\nand amounts are written, what the statuses mean, and which room type a name in the file is **by the room type's name** (so the template fits another property of the organization too). A name\nthat already exists (in any capitals) is replaced (`200`); a new one is `201`. An organization keeps at most 50 (`409 too_many_templates`).\n"
          }
        },
        {
          "name": "Delete a saved way of reading an import file",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/import-templates/{{id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "import-templates",
                "{{id}}"
              ]
            },
            "description": "Needs `write:reservations`. Removes the template for good; imports already made are not touched, and a later file is guessed again (or read with another template)."
          }
        },
        {
          "name": "Undo an import",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/imports/{{id}}/undo",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "imports",
                "{{id}}",
                "undo"
              ]
            },
            "description": "Needs `write:reservations`. Cancels every reservation the import made that is not cancelled yet and gives their rooms back; the reservations stay in the list as cancelled, so the history is not\nrewritten. Undoing twice is the same as once.\n"
          }
        },
        {
          "name": "Rooms held for the hotel's software",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/holds",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "holds"
              ]
            },
            "description": "Requires `read:reservations`. The active holds of a property, by reservation, the longest waiting first. A hold is released by the software's confirmation\n(`feed_applied_through`) or by a person (`POST …/holds/release`); time never releases one.\n"
          }
        },
        {
          "name": "Release held rooms by hand",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/holds/release",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "holds",
                "release"
              ]
            },
            "description": "Requires `write:holds` (owners and admins have it; a key must ask for it). For when the hotel's software is gone or lost its count and will never confirm.\n**Releasing rooms the software did count can sell them a second time**, so the request must say `confirm: true`, and must say what to release:\n`reservation_ids`, or `older_than_hours` (holds that have waited at least that long), or both. Each release is written in the history, and the\nchannels are told of the rooms that are free again.\n"
          }
        },
        {
          "name": "Reservations of a property",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/reservations",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "reservations"
              ]
            },
            "description": "Requires `read:reservations`. Reservations come from channels (`source: channel`) or are made by the hotel itself (`source: manual`, see the POST below).\n`pending` means Antero Connect could not complete it without guessing, and says why in `pending_reason`\n(`unmapped_room`, `unmapped_rate`, `no_price`, `bad_dates`, `bad_nights`, `bad_currency`); it completes by\nitself once the cause is gone (for instance after the mapping is added). Guest contact data is included only\nfor keys that also carry `read:reservations.personal`.\n"
          }
        },
        {
          "name": "Book a stay the hotel takes itself",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/reservations",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "reservations"
              ]
            },
            "description": "Requires `write:reservations`. The rooms are taken off sale at once, for every night. Two bookings can never take the last room: the second\nanswers `409 no_availability`. What happens next depends on who runs the room count (`authority_mode`):\nin `channel_manager_authoritative` Antero Connect gives the rooms back itself when the reservation is cancelled or changed; in `pms_authoritative` the booking goes to the\nhotel's own software like a channel reservation does: it is in the numbered `reservation-feed` (as `created`), its holds are only raised, and only the\nsoftware's confirmation (`feed_applied_through`) releases them. Without `total_amount` the stay is priced from the rates of the rate plan (the room\ntype's first active one if none is named); a night without a price answers `409 no_price`. With `total_amount` (smallest unit, whole stay, all rooms)\nthe nights are spread evenly and `nights_derived` is true. The reference (`external_id`, like `KN-4F7Q2B`) is made by Antero Connect. The guest is stored as\nsent; it is returned only to keys that also carry `read:reservations.personal`. Repeat the call safely with the same `Idempotency-Key`.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"room_type_id\": \"ab94a25e-5cef-5d1b-92c3-f0f9ddd9c53f\",\n  \"arrival\": \"2027-03-11\",\n  \"departure\": \"2027-03-13\",\n  \"rooms\": 1,\n  \"adults\": 2,\n  \"children\": 0,\n  \"guest\": {\n    \"name\": \"Ana Lee\",\n    \"email\": \"ana.lee@example.com\",\n    \"phone\": \"+1 555 0100\",\n    \"country\": \"US\"\n  },\n  \"notes\": \"Late arrival, after 10 pm\",\n  \"payment_status\": \"deposit\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "One reservation with its nights, rooms and revisions",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/reservations/{{reservation_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "reservations",
                "{{reservation_id}}"
              ]
            },
            "description": "Requires `read:reservations` (and `read:reservations.personal` for the guest). `revisions` is the history:\none entry per message from the channel; `applied: false` marks one that was older than the state that\nalready applied and so changed nothing. Amounts are integers in the smallest unit of `currency`.\n"
          }
        },
        {
          "name": "Change a reservation the hotel made itself",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/reservations/{{reservation_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "reservations",
                "{{reservation_id}}"
              ]
            },
            "description": "Requires `write:reservations`. Only for `source: manual`: a reservation from a channel is changed by its channel (`409 channel_reservation`),\na cancelled one cannot be changed (`409 reservation_cancelled`). Leave out what stays. A change of dates, room type or number of rooms\nmoves the held rooms with it and prices the stay again (from the rates, or from `total_amount`); it never competes with its own old\nrooms, and a change that does not fit answers `409 no_availability` and changes nothing. In a property run by its own software the change is announced in the\nfeed (`modified`) and the old rooms come back when the software confirms.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"departure\": \"2027-03-14\",\n  \"notes\": \"Late arrival, after 10 pm. Extra bed requested.\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Write tables as an Excel workbook (one sheet per table)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/exports/xlsx",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "exports",
                "xlsx"
              ]
            },
            "description": "Requires `read:reservations`. The panel's reports send the tables they worked out and get a `.xlsx` back, with a bold frozen header, filters, column widths, and numbers,\nmoney, percentages and dates as real Excel values. Up to 12 sheets, 60 columns, 100,000 rows in all, 24 MB. A column has a `type`: `text`, `integer`, `number`,\n`money` (with `decimals`, 2 or 0 for a currency without decimals), `percent` (a fraction: 0.25 is 25%), `date` (`YYYY-MM-DD`) or `datetime` (RFC 3339). A cell can also be\n`{\"v\": 12.5, \"type\": \"money\", \"decimals\": 2}` to type that one cell. A sheet can also carry `charts`: `{\"type\": \"col\"|\"line\"|\"bar\", \"title\": \"...\", \"category\": 1, \"values\": [5], \"anchor\": \"K3\"}`, drawn from that sheet's own columns (counted from 1) over all its rows, up to 4 series each; a chart that points at a missing column is left out. A sheet name is shortened to 31 characters, stripped of `[ ] : * ? / \\\\`, and made unique.\n"
          }
        },
        {
          "name": "The real rooms of a property, by number",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/room-numbers",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "room-numbers"
              ]
            },
            "description": "Requires `read:catalog`. For a hotel with no PMS (`channel_manager_authoritative`). With `arrival` and `departure` together each room also says `free`: whether no\nother reservation has it on any night of those dates. `exclude_reservation` leaves one reservation out of that, so a reservation sees its own room as free.\n"
          }
        },
        {
          "name": "Add rooms to a room type",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/room-numbers",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "room-numbers"
              ]
            },
            "description": "Requires `write:catalog`. 1 to 200 numbers (text, at most 20 characters, trimmed; one repeated in the list counts once). A number that already exists in the property\nrefuses the whole request with `409 room_number_taken`. A property whose rooms are kept by its PMS answers `409 rooms_kept_by_pms`.\n"
          }
        },
        {
          "name": "Remove a room",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/room-numbers/{{number_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "room-numbers",
                "{{number_id}}"
              ]
            },
            "description": "Requires `write:catalog`. A room with a guest today or later is `409 room_in_use`; give those reservations another room first. Past stays only lose their room label."
          }
        },
        {
          "name": "Give a reservation its real rooms",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/reservations/{{reservation_id}}/rooms",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "reservations",
                "{{reservation_id}}",
                "rooms"
              ]
            },
            "description": "Requires `write:reservations`. The whole list is sent each time (an empty list lets all rooms go). Each room must be of the reservation's room type and at most as many\nas the reservation has rooms. **A room is never given to two guests on the same night**: one that another reservation has on any night of the stay is `409 room_taken`\n(the message names the room and the holder), and nothing changes. The night of departure is free for the next guest. The rooms follow the reservation: they are\nlet go when it is cancelled or its room type changes, and when new dates clash with another guest in the same room. Only for `channel_manager_authoritative` (`409 rooms_kept_by_pms`).\n"
          }
        },
        {
          "name": "Cancel a reservation the hotel made itself",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/reservations/{{reservation_id}}/cancel",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "reservations",
                "{{reservation_id}}",
                "cancel"
              ]
            },
            "description": "Requires `write:reservations`. Gives the rooms back at once where Antero Connect runs the room count; where the hotel's own software does, the cancellation is announced in the feed (`cancelled`) and the rooms come back when the software confirms. Cancelling twice is the same as once. A reservation from a channel is\ncancelled by its channel (`409 channel_reservation`).\n"
          }
        },
        {
          "name": "Record that the guest arrived",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/reservations/{{reservation_id}}/check-in",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "reservations",
                "{{reservation_id}}",
                "check-in"
              ]
            },
            "description": "Requires `write:reservations`. Works for any reservation, whoever made it. It only keeps the front desk's record (`checked_in_at`): it never moves rooms, holds or anything a channel sees. Doing it twice keeps the first time. A guest already marked as not coming is no longer a no-show. `409 stay_out_of_order` once the guest has left; `409 reservation_not_confirmed` for a cancelled or incomplete reservation.\n"
          }
        },
        {
          "name": "Record that the guest left",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/reservations/{{reservation_id}}/check-out",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "reservations",
                "{{reservation_id}}",
                "check-out"
              ]
            },
            "description": "Requires `write:reservations`. Needs a check-in first (`409 stay_out_of_order`). Only the record changes (`checked_out_at`). Doing it twice keeps the first time.\n"
          }
        },
        {
          "name": "Record that the guest did not come",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/reservations/{{reservation_id}}/no-show",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "reservations",
                "{{reservation_id}}",
                "no-show"
              ]
            },
            "description": "Requires `write:reservations`. Only for a guest who has not checked in (`409 stay_out_of_order`). Only the record changes (`no_show_at`): the rooms are not given back.\n"
          }
        },
        {
          "name": "Take back the last step of the stay",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/reservations/{{reservation_id}}/undo-stay",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "reservations",
                "{{reservation_id}}",
                "undo-stay"
              ]
            },
            "description": "Requires `write:reservations`. Takes back the last step: leaving first, then arriving, then no-show. Use it when a button was pressed by mistake.\n"
          }
        },
        {
          "name": "Email the guest of a reservation the hotel made itself",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/reservations/{{reservation_id}}/send-confirmation",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "reservations",
                "{{reservation_id}}",
                "send-confirmation"
              ]
            },
            "description": "Requires `write:reservations`. Sends what was booked (or that it was cancelled) to the guest address stored on the reservation, and\nonly there; the address is never returned. Nothing is sent by itself: this is the one way an email goes to a guest.\n`locale` (`en` or `id`) picks the language; without it the `Accept-Language` header does. Refused when the server cannot send\nemail (`503 email_not_configured`), when the reservation has no guest address (`409 no_guest_email`), or when a channel made it\n(`409 not_a_hotel_booking`).\n"
          }
        },
        {
          "name": "Price a stay and say whether it can be booked",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/quote",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "quote"
              ]
            },
            "description": "Requires `read:ari`. Writes nothing. For each night the price for all the rooms and the rooms still free. `priced` is false and\n`total` null when a night has no price; `bookable` is false when a night has fewer free rooms than asked. `restrictions` lists the hotel's own rules the stay breaks; the hotel may still book it, the public booking page may not.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"room_type_id\": \"ab94a25e-5cef-5d1b-92c3-f0f9ddd9c53f\",\n  \"arrival\": \"2027-03-11\",\n  \"departure\": \"2027-03-13\",\n  \"rooms\": 1\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "List the guests of a property",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/guests",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "guests"
              ]
            },
            "description": "Requires `read:reservations.personal`: it is a list of people. A guest is told apart by **email address** (capitals do not matter) across every reservation of the property, whatever its source;\nthe name and country are those of the latest stay. `stays` counts the stays that were not cancelled and `cancelled` those that were. `next_arrival` is the first stay that has not begun.\nMost recent stay first, at most 500 (`truncated` says there are more). `no_address` counts reservations that hold a guest but no email address: they cannot be told apart, so they are not listed.\nA guest who was erased (`POST …/guest-data/erase`) is no longer listed. To see one guest's reservations, use `POST …/guest-data/export`.\n"
          }
        },
        {
          "name": "Show what is kept about a guest",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/guest-data/export",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "guest-data",
                "export"
              ]
            },
            "description": "Requires `read:reservations.personal`. For a guest who asks what the hotel keeps about them: every reservation of this property that holds the email address (capitals do not matter),\nwith the data kept. The address goes in the body, never in the URL, because addresses end up in logs.\n"
          }
        },
        {
          "name": "Erase a guest",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/guest-data/erase",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "guest-data",
                "erase"
              ]
            },
            "description": "Requires `write:reservations`. Removes the guest's name, email, phone and country from every reservation of this property that holds the email address and whose stay is over (or that was\ncancelled), and scrubs the stored channel messages of them. The booking itself stays, with its dates and amounts, so the hotel's figures do not change; only the person goes, even the hash\nthat would let the same guest be recognised. A stay that has not ended keeps its guest, because the hotel still needs to know who is coming; it is listed in `kept` (without the guest) so it can be\nerased after the stay. The audit trail records that an erasure happened and how much, never whose. Erasing again is the same as erasing once.\n"
          }
        },
        {
          "name": "The housekeeping board of a property",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/housekeeping",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "housekeeping"
              ]
            },
            "description": "Requires `read:reservations`. Every numbered room of the property with its housekeeping state (`dirty`, `clean`, `inspected` or `out_of_order`), the note, when the state was set, and what today\nholds for it (`occupied`: a guest has checked in and not out; `arriving`: somebody is to arrive today; `departing`: the guest leaves today). No guest is named. A room nobody has said anything\nabout is `clean`. `today` is the property's own date. `counts` is how many rooms are in each state.\n"
          }
        },
        {
          "name": "Set the housekeeping state of a numbered room",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/room-numbers/{{id}}/housekeeping",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "room-numbers",
                "{{id}}",
                "housekeeping"
              ]
            },
            "description": "Requires `write:reservations`. `at` is when the person made the change on their own device (default: now; a time more than five minutes ahead is taken as now). A housekeeper with a weak signal\nsends the change later: if a newer change is already there, this older one is not applied and the answer says `applied: false` with the state as it is. `note` is kept when left out, replaced when sent\nand cleared when empty (at most 200 characters). A room becomes `dirty` by itself when its guest checks out, unless it is `out_of_order`.\n"
          }
        },
        {
          "name": "Look up the identity kept for a guest",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/guest-identity/lookup",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "guest-identity",
                "lookup"
              ]
            },
            "description": "Requires `read:reservations.personal`. The identity of a guest (the kind and number of the identity document, the nationality, the date of birth and whether a photograph of the document\nis kept) is used for the registration card. A guest is told apart by email address, capitals do not matter. The address is sent in the body, never in an address. `identity` is `null`\nwhen nothing is kept.\n"
          }
        },
        {
          "name": "Keep the identity of a guest",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/guest-identity",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "guest-identity"
              ]
            },
            "description": "Requires `write:reservations`. Sets what is kept about the guest with this email address; every field is replaced, and an empty one clears it. The photograph is not touched (see\n`putGuestIdentityPhoto`). The audit trail records that it was changed, never whose or what number. The identity is removed when the guest is erased (unless a stay is still to come) and, by\ndefault, 90 days after the guest's last stay (`CHANNEL_MANAGER_GUEST_ID_RETENTION_DAYS`).\n"
          }
        },
        {
          "name": "Delete the identity of a guest, with its photograph",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/guest-identities/{{id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "guest-identities",
                "{{id}}"
              ]
            },
            "description": "Requires `write:reservations`. Removes everything kept for the guest's identity: the document kind and number, the nationality, the date of birth and the photograph."
          }
        },
        {
          "name": "Keep a photograph of the guest's identity document",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/guest-identities/{{id}}/photo",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "guest-identities",
                "{{id}}",
                "photo"
              ]
            },
            "description": "Requires `write:reservations`. The body is the picture itself (JPEG, PNG or WebP, at most 1.5 MB), told by its first bytes. It is encrypted with the hotel's own data key before it is stored.\n"
          }
        },
        {
          "name": "The photograph of the identity document",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/guest-identities/{{id}}/photo",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "guest-identities",
                "{{id}}",
                "photo"
              ]
            },
            "description": "Requires `read:reservations.personal`. Looking at it is written in the audit trail (who and when, never whose). `404` when there is none. Sent with `Cache-Control private, no-store`."
          }
        },
        {
          "name": "Remove the photograph and keep the rest",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/guest-identities/{{id}}/photo",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "guest-identities",
                "{{id}}",
                "photo"
              ]
            },
            "description": "Requires `write:reservations`. Removes the photograph of the identity document and keeps the kind, the number, the nationality and the date of birth."
          }
        },
        {
          "name": "Report the reservations of the hotel's own software, to be shown",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/pms-reservations",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "pms-reservations"
              ]
            },
            "description": "Requires `write:reservations`. For a property run by its own software (`pms_authoritative`): the software reports who stays, comes and goes, so\nthe panel can show them. They are for DISPLAY ONLY (`source: pms`): the software already counts their rooms in the availability it pushes, so Antero Connect\ntakes no rooms off sale for them. The same `reference` (the software's own number for the reservation) again updates the same reservation;\nreporting the same thing twice changes nothing. A reservation made in Antero Connect, or by a channel, is never overwritten (`409 not_a_reported_reservation`),\nand a property Antero Connect runs answers `409 channel_manager_owns_rooms`. Reservations that came from a channel are not to be reported: Antero Connect already has them.\nUp to 200 per call; one that is invalid refuses the whole call and says which (`items[3]`).\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"items\": [\n    {\n      \"reference\": \"FD-1042\",\n      \"status\": \"confirmed\",\n      \"room_type_id\": \"ab94a25e-5cef-5d1b-92c3-f0f9ddd9c53f\",\n      \"arrival\": \"2027-03-14\",\n      \"departure\": \"2027-03-16\",\n      \"rooms\": 1,\n      \"adults\": 2,\n      \"total_amount\": 24000,\n      \"currency\": \"USD\",\n      \"guest\": {\n        \"name\": \"Budi Santoso\",\n        \"email\": \"budi@example.com\"\n      }\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "The numbered feed of reservations the PMS pulls",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/reservation-feed",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "reservation-feed"
              ]
            },
            "description": "Requires `read:reservations`. Every entry says that something happened to a reservation which the PMS must take\ninto account: `created` (first time it is `confirmed`), `modified`, `cancelled` (only for a reservation the PMS\nalready had), `placement` (the PMS moved the guest itself). A reservation that is still `pending` is not in the feed\nyet. Entries come oldest first, only those with a number above `after`; the numbers belong to the property and\nalways grow, but may skip (a skipped number belongs to a hold of a reservation that was not in the feed yet).\nA PMS that was down resumes from the last number it handled; nothing is lost because a webhook failed. When it\nhas recorded the entries, it pushes availability with `feed_applied_through` (see `PUT …/availability`). The\nguest's contact data is only in `guest` for a key with `read:reservations.personal`, and only until it is\ncleared after the retention period.\n"
          }
        },
        {
          "name": "Record where the PMS put a guest",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/reservations/{{reservation_id}}/placement",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "reservations",
                "{{reservation_id}}",
                "placement"
              ]
            },
            "description": "Requires `write:reservations`. The PMS decides where a guest really sleeps; what the channel booked is never\noverwritten, the PMS's choice is kept beside it (`placement`). Send what changes (`room_type_id`, `arrival`,\n`departure`, `rooms`); what is left out stays. Only a `confirmed` reservation can be placed (409\n`reservation_not_confirmed`). The new room type and dates are **held** at once (nothing is released: only\nthe PMS releases holds), and, when the reservation's channel keeps its own bookings (inventory model\n`ledger`, like Beds24), the channel is told, so that it stops counting the room the guest left. `mirror`\nshows how far that got (`pending`, `sent`, `blocked` for a room type that is not mapped on that connection,\nor `failed`). Sending the placement already in force changes nothing.\n"
          }
        }
      ]
    },
    {
      "name": "Properties",
      "item": [
        {
          "name": "List properties",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties"
              ]
            },
            "description": "Requires `read:catalog`. A key limited to some properties sees only those."
          }
        },
        {
          "name": "Create a property",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties"
              ]
            },
            "description": "Requires `write:catalog`. A key limited to specific properties cannot create new ones\n(403 `forbidden_property`).\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Villa Sunrise\",\n  \"timezone\": \"Asia/Makassar\",\n  \"currency\": \"USD\",\n  \"authority_mode\": \"pms_authoritative\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get a property",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}"
              ]
            },
            "description": "Requires `read:catalog`. One property: name, time zone, currency (ISO 4217, USD unless set), and `authority_mode`, which says who counts the rooms (`channel_manager_authoritative` or `pms_authoritative`). A property the key may not see is a `404`, the same as one that does not exist.\n"
          }
        },
        {
          "name": "Update a property",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}"
              ]
            },
            "description": "Requires `write:catalog`. Only the fields you send change. `currency` cannot be changed.\nTo remove a property, set `status` to `archived`; nothing is ever deleted.\n"
          }
        },
        {
          "name": "Who in the hotel is told by email about bookings",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/notifications",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "notifications"
              ]
            },
            "description": "Requires `read:catalog`. `404` until it has been set up with `PUT`."
          }
        },
        {
          "name": "Tell the hotel by email when a booking arrives or is cancelled",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/notifications",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "notifications"
              ]
            },
            "description": "Requires `write:catalog`. The whole document is sent each time. While `enabled`, the addresses in `recipients` (1 to 5, tidied and made unique) get one\nemail for each **new booking** (`on_new`) and each **cancellation** (`on_cancel`), whatever its source: a channel, the booking page, or someone in Antero Connect.\nA booking the hotel's own software reported (`source: pms`) is never news here. Bookings that came **before** it was switched on are history, not news,\nso turning it on (or on again) never floods an inbox. `locale` is the language of the email (`en` or `id`).\n\nNothing is lost if the mail server is down: what could not be sent is tried again. A booking is told once; in the rare case of a retry after a send that\nreally went out, it can be told twice, which is chosen over never telling.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"enabled\": true,\n  \"recipients\": [\n    \"front@villa-sunrise.example\",\n    \"owner@villa-sunrise.example\"\n  ],\n  \"on_new\": true,\n  \"on_cancel\": true,\n  \"locale\": \"en\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Send the test email to the saved addresses now",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/notifications/test",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "notifications",
                "test"
              ]
            },
            "description": "Requires `write:catalog`. Sends the test email at once to each saved address, so that a hotel can see that it arrives (`409 no_recipients` before an\naddress is saved; `503 email_not_configured` when this server cannot send email). Nothing is booked or marked. Not idempotent: each call sends again.\n"
          }
        },
        {
          "name": "See the emails a hotel writes to its guests by itself",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/routines",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "routines"
              ]
            },
            "description": "Requires `read:catalog`. Two routines, both off until chosen: an email **before** the stay (`pre_days` days before arrival, 1 to 14, default 2) and one **after** it (`post_days` days after\ndeparture, 1 to 14, default 1). Each can carry the hotel's own words (`pre_message`, `post_message`, up to 1000 characters). They are sent only for stays the hotel made itself (by hand or on its booking\npage) that are confirmed and have an address that can be written to. A property that never chose answers with the defaults, both off.\n"
          }
        },
        {
          "name": "Choose the emails a hotel writes to its guests by itself",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/routines",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "routines"
              ]
            },
            "description": "Requires `write:catalog`. Replaces the choices. A routine switched on (from off) **starts counting from that moment**: a stay whose moment to be written to had already passed is history, so\nswitching on never writes to guests about the past. Changing a routine that is already on does not restart it. Each guest is written to once per routine; a send that failed is tried again.\nThe email comes from the property's `sender_name` and carries its times, address and phone (see the property profile).\n"
          }
        },
        {
          "name": "See an email before a guest does",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/routines/preview",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "routines",
                "preview"
              ]
            },
            "description": "Requires `read:catalog`. The email a guest would get, written with the given words and the property's profile, for an example guest. Nothing is sent and nothing is saved.\n"
          }
        }
      ]
    },
    {
      "name": "Room types",
      "item": [
        {
          "name": "List the room types of a property",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/room-types",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "room-types"
              ]
            },
            "description": "Requires `read:catalog`. The room types of a property, newest last, in pages (see pagination). Archived room types are left out unless `include_archived=true`.\n"
          }
        },
        {
          "name": "Create a room type",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/room-types",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "room-types"
              ]
            },
            "description": "Requires `write:catalog`. `code` is unique within the property and cannot be changed later.",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"name\": \"Deluxe\",\n  \"code\": \"DLX\",\n  \"total_units\": 6,\n  \"max_occupancy\": 3\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get a room type",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/room-types/{{room_type_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "room-types",
                "{{room_type_id}}"
              ]
            },
            "description": "Requires `read:catalog`. One room type with `total_units` (how many rooms exist) and `max_occupancy`. Availability can never be set above `total_units`.\n"
          }
        },
        {
          "name": "Update a room type",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/room-types/{{room_type_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "room-types",
                "{{room_type_id}}"
              ]
            },
            "description": "Requires `write:catalog`. `code` cannot be changed. Archive with `status`."
          }
        }
      ]
    },
    {
      "name": "Rate plans",
      "item": [
        {
          "name": "List the rate plans of a property",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/rate-plans",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "rate-plans"
              ]
            },
            "description": "Requires `read:catalog`. The rate plans of a property. A plan with `parent_rate_plan_id` is derived: its price is the parent's price changed by a rule, worked out when the parent's price is written.\n"
          }
        },
        {
          "name": "Create a rate plan",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/rate-plans",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "rate-plans"
              ]
            },
            "description": "Requires `write:catalog`. The room type must belong to the same property. `currency` defaults to the\nproperty's currency and must equal it.\n\n**Derived plans.** A rate plan may follow a parent rate plan of the same property: set\n`parent_rate_plan_id` **together with** `derivation` (and only then). Its price is the parent's\nprice adjusted by the rule and rounded, and Antero Connect keeps it up to date whenever the parent's price\nchanges; you never set a derived plan's price yourself. Chains may be at most 3 plans deep.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"room_type_id\": \"ab94a25e-5cef-5d1b-92c3-f0f9ddd9c53f\",\n  \"name\": \"Standard rate\",\n  \"code\": \"STD\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get a rate plan",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/rate-plans/{{rate_plan_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "rate-plans",
                "{{rate_plan_id}}"
              ]
            },
            "description": "Requires `read:catalog`. One rate plan: its room type, currency, whether it is derived from another plan, and its status.\n"
          }
        },
        {
          "name": "Update a rate plan",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/rate-plans/{{rate_plan_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "rate-plans",
                "{{rate_plan_id}}"
              ]
            },
            "description": "Requires `write:catalog`. `code`, `room_type_id`, `currency` and `parent_rate_plan_id` cannot be\nchanged. Archive with `status`. For a derived plan you may change `derivation`; its prices are then\nrecomputed for every day the parent has a price. An archived derived plan is not kept up to date;\nre-activating it recomputes it.\n"
          }
        }
      ]
    },
    {
      "name": "Availability and rates",
      "item": [
        {
          "name": "Read availability per room type and day",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/availability",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "availability"
              ]
            },
            "description": "Requires `read:ari`. Returns the stored days in the range; a day with no row has never been set.\nThe range may cover at most 540 days.\n"
          }
        },
        {
          "name": "Set availability (absolute state)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/availability",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "availability"
              ]
            },
            "description": "Requires `write:ari`. Each item sets the number of rooms still available for a room type on every\nday of an inclusive range. This is **absolute state, not a delta**: sending the same push twice\nchanges nothing. Days whose value does not change are not touched.\n\n**`pms_version`** is required for `pms_authoritative` properties. Send a number that grows with\nevery new push. A push with a version older than the newest accepted one is refused with\n`409 stale_version` and changes nothing, so a delayed old snapshot cannot overwrite a newer one.\nThe same version with the same body is a retry and answers 200 without changes; the same version\nwith a different body is `409 version_conflict`.\n\nLimits: at most 500 items, each range at most 540 days, at most 50,000 days in total. `available`\ncannot exceed the room type's `total_units`. Items are applied in order; later items win.\n\n**`feed_applied_through`** is how the PMS confirms reservations. When a reservation arrives from a channel, Antero Connect\nholds its rooms (the other channels stop selling them) until the PMS says its numbers already count the\nreservation: pull `GET …/reservation-feed`, record the entries, then push availability with\n`feed_applied_through` set to the last number recorded. A property in `pms_authoritative` mode that has a feed\nmust send it with every availability push (400 `feed_applied_through_required`); before the first reservation\nthere is nothing to confirm. A refused push changes nothing. Holds are never released by time.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"items\": [\n    {\n      \"room_type_id\": \"ab94a25e-5cef-5d1b-92c3-f0f9ddd9c53f\",\n      \"date_from\": \"2027-03-10\",\n      \"date_to\": \"2027-03-16\",\n      \"available\": 5\n    },\n    {\n      \"room_type_id\": \"dd2a27cc-c0cf-56b6-8aed-70a4dab3b427\",\n      \"date_from\": \"2027-03-10\",\n      \"date_to\": \"2027-03-16\",\n      \"available\": 2\n    }\n  ],\n  \"pms_version\": 1\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Read rates per rate plan and day",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/rates",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "rates"
              ]
            },
            "description": "Requires `read:ari`. At most 540 days. `amount` is `null` for a day that has restrictions but no price yet."
          }
        },
        {
          "name": "Set rates (absolute state)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/rates",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "rates"
              ]
            },
            "description": "Requires `write:ari`. `amount` is a whole number of the **minor unit** of the rate plan's currency\nas defined by ISO 4217: US$120.00 is `12000` (cents); a currency without decimals such as JPY uses\nwhole units (JPY 120 is `120`). Currencies default to USD. `pms_version`, limits and behavior are as for availability. Rates and\nrestrictions share one version sequence per property.\n\nYou cannot set the price of a **derived** rate plan (400): set it on the parent. Derived plans\nare recomputed in the same transaction; `derived_changed_days` reports how many of their days changed.\n\n**Mistyped prices are refused before anything is saved.** A price outside the property's price limits\n(`GET`/`PUT /v1/properties/{id}/price-guard`) is `409 price_guard`. A price more than five times above, or less than a fifth of, what the\nrate plan has in the same days is `409 price_change_large`; send the same request with `\"confirm_large_change\": true` if it is meant.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"items\": [\n    {\n      \"rate_plan_id\": \"5b04a6c7-8418-5453-b9f5-dddde5a4d190\",\n      \"date_from\": \"2027-03-10\",\n      \"date_to\": \"2027-03-16\",\n      \"amount\": 12000\n    }\n  ],\n  \"pms_version\": 2\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Read the price limits of a property",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/price-guard",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "price-guard"
              ]
            },
            "description": "Requires `read:ari`. `floor` and `ceiling` are whole numbers of the minor unit of the property's currency; `null` = no limit on that side."
          }
        },
        {
          "name": "Set the price limits of a property",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/price-guard",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "price-guard"
              ]
            },
            "description": "Requires `write:ari`. Replaces both limits; send `null` for no limit. A rate outside the limits is refused with `409 price_guard` before it is saved or\nsent to a channel, and no flag lifts that: change the limits first.\n"
          }
        },
        {
          "name": "Read restrictions per rate plan and day",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/restrictions",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "restrictions"
              ]
            },
            "description": "Requires `read:ari`. At most 540 days. `effective_stop_sell` includes a stop-sell inherited from a parent plan."
          }
        },
        {
          "name": "Set restrictions (absolute state)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/restrictions",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "restrictions"
              ]
            },
            "description": "Requires `write:ari`. Every field of an item is required, because this sets the complete\nrestriction state of the days: `min_stay` and `max_stay` may be `null` (no limit); the three\nbooleans must be present. `pms_version` and limits are as for availability.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"items\": [\n    {\n      \"rate_plan_id\": \"5b04a6c7-8418-5453-b9f5-dddde5a4d190\",\n      \"date_from\": \"2027-03-12\",\n      \"date_to\": \"2027-03-13\",\n      \"min_stay\": 2,\n      \"max_stay\": null,\n      \"closed_to_arrival\": false,\n      \"closed_to_departure\": false,\n      \"stop_sell\": false\n    }\n  ],\n  \"pms_version\": 3\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Why a room type has the availability it has on a day",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/availability/explain",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "availability",
                "explain"
              ]
            },
            "description": "Requires `read:ari`. Shows the number the PMS set, the holds that take rooms off it (reservations received from\na channel that the PMS has not taken into account yet), and the **effective** number Antero Connect sends to the\nchannels: the PMS's number minus the holds, never below 0. A hold never expires by itself; it is released\nonly when the PMS says it has accounted for the reservation.\n"
          }
        }
      ]
    },
    {
      "name": "Channels",
      "item": [
        {
          "name": "List the channels Antero Connect can connect to",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channels",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channels"
              ]
            },
            "description": "Requires `read:channels`. The catalog is global; every organization sees the same list."
          }
        },
        {
          "name": "List the channel connections of a property",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/channel-connections",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "channel-connections"
              ]
            },
            "description": "Requires `read:channels`. Credentials are never returned."
          }
        },
        {
          "name": "Connect a property to a channel",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/channel-connections",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "channel-connections"
              ]
            },
            "description": "Requires `write:channels`. **`sandbox` defaults to `true`**: a connection to a live channel must ask\nfor `sandbox: false` explicitly, and the simulator channel can only ever be a sandbox. `credentials`\nis an optional JSON object (at most 8 KB) whose shape depends on the channel. It is stored\nencrypted and is **write-only**: no endpoint ever returns it. Names are unique per property and channel.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"channel_code\": \"sim\",\n  \"name\": \"Practice channel\",\n  \"sandbox\": true,\n  \"remote_property_id\": \"DEMO-HOTEL\",\n  \"credentials\": {\n    \"api_key\": \"demo\"\n  }\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Get a channel connection",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}"
              ]
            },
            "description": "Requires `read:channels`. Credentials are never returned; only whether they exist and a fingerprint."
          }
        },
        {
          "name": "Update a channel connection",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}"
              ]
            },
            "description": "Requires `write:channels`. `credentials`, when sent, **replaces** the stored credentials entirely.\nThe channel and the `sandbox` flag cannot be changed: moving a connection between sandbox and\nproduction would let a test touch a live channel.\n"
          }
        },
        {
          "name": "Read the room and rate mappings of a connection",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/mappings",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "mappings"
              ]
            },
            "description": "Requires `read:channels`. Which of your room types and rate plans are matched to which room and rate of the channel. Only mapped rooms and rates are sent; a room sold at the channel that is not mapped here is reported as a decision when its booking arrives.\n"
          }
        },
        {
          "name": "Replace the mappings of a connection",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/mappings",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "mappings"
              ]
            },
            "description": "Requires `write:channels`. Replaces **all** mappings atomically. Mappings are one-to-one in both\ndirections: a room type maps to exactly one channel room and a channel room to exactly one room\ntype (the same for rates). Everything must belong to the connection's property, and a rate plan can\nonly be mapped if its room type is mapped in the same request. Unchanged pairs keep their identity;\nswapping two channel ids is allowed. An empty request removes all mappings.\n"
          }
        },
        {
          "name": "How far a connection is from the state Antero Connect wants it to be in",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/sync-status",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "sync-status"
              ]
            },
            "description": "Requires `read:channels`. A cell goes through three states: **wanted**, **sent** (the channel said OK,\n`in_sync`) and **proven** (the channel was read back and holds it, `confirmed`). `unverified` cells are\nwaiting to be read back; on a channel that cannot be read back they are `unverifiable` and can never\nbe proven. A cell that reads back different is made pending again and re-sent; after three times in a\nrow it is `disputed` and left alone until its value changes or a full sync is requested.\n"
          }
        },
        {
          "name": "The synchronisation state of every channel connection",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/sync-status",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "sync-status"
              ]
            },
            "description": "Requires `read:channels`. One entry per connection (limited to the properties of the key), each with\nthe same `sync` object as the per-connection endpoint.\n"
          }
        },
        {
          "name": "Send every cell again and read it back",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/full-sync",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "full-sync"
              ]
            },
            "description": "Requires `write:channels`. Forgets what the channel has accepted and proven, and releases held\ncells, so the next pass sends everything again (sending less before more, and still honouring any\nhold on increases) and reads it back. Asking twice before it starts is the same as asking once. Antero Connect\nalso does this on its own about once a day. Only an `active` connection can be synchronised.\n"
          }
        },
        {
          "name": "Differences found between what Antero Connect wants and what the channel holds",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/reconciliation/diffs",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "reconciliation",
                "diffs"
              ]
            },
            "description": "Requires `read:channels`. Each entry is one field of one cell found different by a read-back.\nAntero Connect re-sends the cell by itself; a difference becomes `healed` once the channel reads back right.\n`missing` means the channel showed nothing usable for that day.\n"
          }
        },
        {
          "name": "Accept that the channel differs",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/reconciliation/diffs/{{diff_id}}/ignore",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "reconciliation",
                "diffs",
                "{{diff_id}}",
                "ignore"
              ]
            },
            "description": "Requires `write:channels`. Marks every open difference of the same cell as `ignored` and stops\nre-sending that cell until its desired value changes or a full sync is requested. Recorded in the\naudit log. A difference that is already healed or ignored answers 409.\n"
          }
        },
        {
          "name": "History of read-back checks and full syncs",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/reconciliation/runs",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "reconciliation",
                "runs"
              ]
            },
            "description": "Requires `read:channels`. The history of read-back checks: Antero Connect reads the channel back, compares it with what it meant to send, and repairs the difference. Each run says how many days matched, were repaired, or are unexplained.\n"
          }
        },
        {
          "name": "What the channel claims, what was measured, and what Antero Connect relies on",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/capabilities",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "capabilities"
              ]
            },
            "description": "Requires `read:channels`. A channel's manifest only **claims** capabilities. Antero Connect measures the channel\nwith a probe (when the connection is first used, about every six hours, and on request) and a\nmeasurement can take a claimed capability away, never grant one that is not claimed. `effective` is what\nAntero Connect relies on. `closure_method` says how a closed day is sent: `stop_sell`, or `zero_availability`\nwhen the channel was measured to ignore stop-sell. It is `null` until the first probe. The budget is 80%\nof the measured rate, or the channel's starting value when no rate was measured.\n"
          }
        },
        {
          "name": "The rooms and rates the channel itself has",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/remote-catalog",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "remote-catalog"
              ]
            },
            "description": "Requires `read:channels`. Asks the channel (one call from its budget). `409 catalog_not_supported` when the channel cannot list\nits rooms; `502` with `credentials_rejected`, `property_not_found`, `rate_limited`, `channel_unreachable` or `channel_error` when it cannot answer.\nCredentials never appear in the answer.\n"
          }
        },
        {
          "name": "Suggested matches between our rooms and rates and the channel's",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/mapping-suggestions",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "mapping-suggestions"
              ]
            },
            "description": "Requires `read:channels`. Compares names (same, same without filler words, contained, similar) and gives each suggestion a\n`confidence` of high or medium; rates are matched inside their matched room. Items already mapped are kept and not suggested\nagain; `unmatched_remote` and `unmapped_local` list what is left. Nothing is saved: apply a suggestion with the mappings endpoint.\n"
          }
        },
        {
          "name": "Try the connection and say in plain words what happened",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/test",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "test"
              ]
            },
            "description": "Requires `write:channels`. Always answers 200 with a `status`: connected, credentials_rejected, property_not_found, channel_unreachable,\nrate_limited, unsupported or channel_error, plus the rooms and rates found and the latency when connected. Saves nothing.\n"
          }
        },
        {
          "name": "Measure the channel again",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/probe",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "probe"
              ]
            },
            "description": "Requires `write:channels`. The next pass measures the channel (three calls from its request budget, all\nor none) before it sends anything, so that a change in what the channel really does is used at once.\nOnly an `active` connection can be probed.\n"
          }
        },
        {
          "name": "How well a connection works",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/health",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "health"
              ]
            },
            "description": "Requires `read:channels`. `healthy`; `degraded` (working, with something to look at: a failed call, a rate\nlimit, cells the channel keeps refusing or does not keep); `down` (three failed calls in a row, or failing\nwith nothing succeeding for ten minutes); `auth_failed` (the channel rejects the credentials); `unknown`\n(nothing has run yet). It recovers by itself after a successful pass. `events` are the last 20 changes of\nstatus, newest first.\n"
          }
        },
        {
          "name": "Pull reservations from the channel now",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/pull",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "pull"
              ]
            },
            "description": "Requires `write:channels`. Channels that offer a feed of reservations are pulled automatically every few minutes\n(`CHANNEL_MANAGER_PULL_MINUTES`) as a safety net beside webhooks; this asks for a pass now. What is received is stored and\nprocessed exactly like a webhook, and acknowledged to the channel afterwards. 409 `pull_not_supported` when the\nchannel has no feed.\n"
          }
        },
        {
          "name": "Check that Antero Connect has every booking the channel holds for some arrival days",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/audits",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "audits"
              ]
            },
            "description": "Requires `write:channels`. Asks the channel what it holds NOW for bookings arriving in the range (both days\ninclusive, at most 367 days) and compares it with Antero Connect. Each booking ends **matched**, **repaired** (the channel\nhas it and Antero Connect did not, or Antero Connect differs: it is stored and processed like a webhook) or **orphan** (Antero Connect has an\nactive reservation arriving in the range that the channel did not list: reported only, never cancelled by\nAntero Connect, and only when the whole list was read). 409 `audit_not_supported` when the channel cannot list its bookings.\n"
          }
        },
        {
          "name": "Audits of a connection, newest first",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/audits",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "audits"
              ]
            },
            "description": "Requires `read:channels`. The audit trail of a connection, newest first, at most 50: who connected it, changed a mapping, switched it on or off, and what the system decided by itself.\n"
          }
        },
        {
          "name": "One audit with its findings",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/audits/{{audit_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "audits",
                "{{audit_id}}"
              ]
            },
            "description": "Requires `read:channels`. `findings` lists what was repaired and what is an orphan (at most 1000)."
          }
        }
      ]
    },
    {
      "name": "Setup",
      "item": [
        {
          "name": "How far the hotel is with getting started",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/setup",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "setup"
              ]
            },
            "description": "Requires `read:catalog`. Computed from the data on every call (never stored): `steps` (id, done, required, detail), the\n`current` required step that is not done yet (null when all are), `percent` of the required steps done and `complete`.\nSteps: hotel, room_types, rates, channel, mapping, availability, test, live (optional), pms (optional).\n"
          }
        },
        {
          "name": "How the hotel software (PMS) is doing",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/pms-link",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "pms-link"
              ]
            },
            "description": "Requires `read:ari`. When the PMS was last heard from (a key that pushed availability, rates or restrictions, or read the reservation feed;\na person at the panel does not count), how far it got with the feed, how many bookings wait for its confirmation and for how long, and how\nmany bookings Antero Connect keeps rooms back for meanwhile. `state`: `never_connected`, `connected`, `waiting` (a booking has waited 5 minutes or more),\n`silent` (not heard for more than 15 minutes). The monitor raises `pms_silent` (warning after 15 minutes, critical after 2 hours) for a property\nwhose PMS decides availability and that has a live channel.\n"
          }
        },
        {
          "name": "Availability, prices and channel progress for a stretch of days, in one reading",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/calendar",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "calendar"
              ]
            },
            "description": "Requires `read:ari`. At most 62 days. Per room type and day: `available` (null = never set), `held`, `effective`\n(available less held, never below 0) and `closed`. Per rate plan and day: price and restrictions. `sync` has, per channel\nconnection and room type, one letter per day: `c` confirmed by the channel, `s` sent, `w` waiting, `-` nothing to send.\n"
          }
        }
      ]
    },
    {
      "name": "Channel messages",
      "item": [
        {
          "name": "Create (or replace) the webhook address of a connection",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/webhook",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "webhook"
              ]
            },
            "description": "Requires `write:channels`. Returns the token **once**: only a hash is stored. Give the path\n`/hooks/{token}` (on this server's address) to the channel as the address it should post reservations to.\nIssuing again replaces the token and so stops the old one. This endpoint does not accept an\n`Idempotency-Key`, because a replayed response would have to be stored with the secret in it.\n"
          }
        },
        {
          "name": "Whether a connection has a webhook address",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/webhook",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "webhook"
              ]
            },
            "description": "Requires `read:channels`. Never returns the token."
          }
        },
        {
          "name": "Stop the webhook address from working",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/webhook",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "webhook"
              ]
            },
            "description": "Requires `write:channels`. The address answers 404 from then on. 404 if there is no live token."
          }
        },
        {
          "name": "Messages received from the channel",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/inbound-messages",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "inbound-messages"
              ]
            },
            "description": "Requires `read:channels`. The archive of what the channel sent, **after card data was removed** (card\nnumbers are masked to their last four digits, security codes are dropped). Guest contact data is never\nreturned here. `unknown` messages are kinds of event Antero Connect does not know: they are kept and answered 200.\n`unparseable` ones could not be read.\n"
          }
        },
        {
          "name": "Where a channel posts reservations (not for API clients)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/hooks/{{token}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "hooks",
                "{{token}}"
              ]
            },
            "description": "The token in the path is the credential; there is no other authentication. The body is whatever the channel\nsends. It is read, stripped of card data, stored, and answered **200** for everything that could be stored,\nincluding events Antero Connect does not know and bodies it cannot read (a vendor that sees errors may switch its\nwebhook off). A token that is unknown, wrong, revoked or malformed answers the same 404.\n"
          }
        }
      ]
    },
    {
      "name": "Booking engine",
      "item": [
        {
          "name": "The pictures of the booking page",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/photos",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "photos"
              ]
            },
            "description": "Requires `read:catalog`. In the order they are shown. A picture with no `room_type_id` belongs to the hotel (the first one is the cover); otherwise to that room type."
          }
        },
        {
          "name": "Add a picture to the booking page",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/photos",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "photos"
              ]
            },
            "description": "Requires `write:catalog`. The body is the picture itself (JPEG, PNG or WebP, at most 1.5 MB; what it is is told by its first bytes, not by\nthe `Content-Type` sent). `room_type_id` in the query makes it one room's picture. A property keeps at most 24 (`409 photo_limit`).\n"
          }
        },
        {
          "name": "One picture, as the picture itself",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/photos/{{photo_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "photos",
                "{{photo_id}}"
              ]
            },
            "description": "Requires `read:catalog`. The bytes of the picture, for a person signed in to see it in the panel; guests use the page's own address."
          }
        },
        {
          "name": "Remove a picture",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/photos/{{photo_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "photos",
                "{{photo_id}}"
              ]
            },
            "description": "Requires `write:catalog`. The picture goes from the booking page at once; this cannot be undone."
          }
        },
        {
          "name": "The property's booking engine settings",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/booking-engine",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "booking-engine"
              ]
            },
            "description": "Requires `read:catalog`. `404` until it has been set up with `PUT`."
          }
        },
        {
          "name": "Set up, change, switch on or off the booking engine",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/booking-engine",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "booking-engine"
              ]
            },
            "description": "Requires `write:catalog`. The whole document is sent each time. `slug` is the public address (`/book/<slug>`), 3 to 40 characters of\na-z, 0-9 and \"-\", unique on the whole server (capitals are made small); another organization's address is `409 slug_taken`. While\n`enabled` is false the address answers 404 to guests, like an address that never existed.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"enabled\": true,\n  \"slug\": \"villa-sunrise-8def\",\n  \"title\": \"Villa Sunrise\",\n  \"accent\": \"#0a7d5a\",\n  \"welcome\": \"Book direct and get a free breakfast.\",\n  \"cancellation_policy\": \"Free cancellation until 3 days before arrival.\",\n  \"terms\": \"Check-in from 2 pm, check-out until 11 am.\",\n  \"max_nights\": 14,\n  \"max_rooms\": 3,\n  \"advance_days\": 365,\n  \"min_advance_days\": 1,\n  \"same_day_until\": \"18:00\",\n  \"fees\": [\n    {\n      \"name\": \"VAT\",\n      \"kind\": \"percent\",\n      \"basis_points\": 1000\n    },\n    {\n      \"name\": \"Cleaning fee\",\n      \"kind\": \"per_stay\",\n      \"amount\": 2500\n    }\n  ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "A picture of the booking page (guests; no key)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/book-api/{{slug}}/photos/{{photo_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "book-api",
                "{{slug}}",
                "photos",
                "{{photo_id}}"
              ]
            },
            "description": "The picture itself. It never changes under its id, so it may be kept a long time. Not counted against the page-lookup limit. An unknown address or id answers `404`."
          }
        },
        {
          "name": "A guest sees their own booking (guests; no key)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/book-api/{{slug}}/my-booking",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "book-api",
                "{{slug}}",
                "my-booking"
              ]
            },
            "description": "The link in the confirmation email carries a secret (`https://…/book/<slug>#manage=kmb_…`; it is after the `#`, so it never reaches a log). Sent here as `token`, it shows the booking, the hotel's\nquestions, and whether the guest may change or cancel it **now** (`can_change`), until what day (`change_until`) and, if not, why (`why_not`: `off` the hotel does not allow it online, `too_late` inside the\nhotel's window or the stay has begun, `cancelled`). Every wrong secret is the same `404 not_found`. Only bookings the hotel made itself (by hand or on its page) have one; a channel's booking does not.\n"
          }
        },
        {
          "name": "A guest changes how they are reached and what they said (guests; no key)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/book-api/{{slug}}/my-booking-change",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "book-api",
                "{{slug}}",
                "my-booking-change"
              ]
            },
            "description": "With the secret of the link, only while the hotel's window is open (see `my-booking`; otherwise `409 change_window_closed`, `change_not_allowed` or `already_cancelled`). A guest changes **their own details**:\n`name`, `phone`, `notes` and `answers` (the whole set, validated like when booking, `400 answers_invalid`). Fields left out stay as they are. **Dates, rooms, number of guests, the email address and the\nprice cannot be changed here**: they move rooms and prices and are the hotel's to move. The audit trail records that the guest changed their details, never to what.\n"
          }
        },
        {
          "name": "A guest cancels their own booking (guests; no key)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/book-api/{{slug}}/my-booking-cancel",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "book-api",
                "{{slug}}",
                "my-booking-cancel"
              ]
            },
            "description": "With the secret of the link, only while the hotel's window is open (see `my-booking`). The rooms go back on sale at once everywhere, the hotel is told like for any cancellation, and the guest is emailed\nthat it was cancelled. Cancelling twice is `409 already_cancelled`.\n"
          }
        },
        {
          "name": "A guest starts paying what they owe, on the hotel's own payment gateway (guests; no key)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/book-api/{{slug}}/my-booking-pay",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "book-api",
                "{{slug}}",
                "my-booking-pay"
              ]
            },
            "description": "With the secret of the link. The amount is never the guest's to choose: it is what is still owed. The answer is the gateway's page to send the guest to; the guest comes back to their own page afterwards.\n`409 no_payment_connection` when the hotel takes no online payment, `409 nothing_owed` when it is paid, `502` when the gateway cannot be reached. The page's own answer (`my-booking`) says in `pay` whether paying online\nis offered (`online`), what is owed (`owed`) and the hotel's bank accounts for a guest who prefers a transfer (`banks`).\n"
          }
        },
        {
          "name": "List the promo codes of a property",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/promo-codes",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "promo-codes"
              ]
            },
            "description": "Requires `read:catalog`. The newest first, with how often each was used. Guests never see this list."
          }
        },
        {
          "name": "Make a promo code",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/promo-codes",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "promo-codes"
              ]
            },
            "description": "Requires `write:catalog`. A guest types the code on the booking page and the stay costs less. `kind` is `percent` (`basis_points`, 1000 = 10.00%) or `amount` (`amount`, in the smallest unit of the\nproperty's currency, off the whole stay). The discount comes off the rooms; taxes and fees are worked out on what is left. Limits, all optional: `arrive_from` and `arrive_to` (the stay must\narrive in this period, inclusive), `min_nights` (default 1) and `max_uses` (how many bookings may use it). The code is kept in capitals, 3 to 20 letters, digits, `-` or `_`, and is unique in a\nproperty (`409 promo_code_exists`). At most 50 per property (`409 too_many_promo_codes`).\n"
          }
        },
        {
          "name": "Change what a promo code gives and limits",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/promo-codes/{{id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "promo-codes",
                "{{id}}"
              ]
            },
            "description": "Requires `write:catalog`. **Replaces** what the code gives and limits (the same fields as when it was made; what is left out goes back to its default). The code itself and how often it was used stay.\nSwitch a code off with `active: false` instead of deleting it: bookings already made keep what they were priced with.\n"
          }
        },
        {
          "name": "What the public booking page needs to draw itself (guests; no key)",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/book-api/{{slug}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "book-api",
                "{{slug}}"
              ]
            },
            "description": "No authentication: the address is the way in. Open to any website (CORS `*`), so the widget can sit on the hotel's own site. Every\ncall counts against a limit per caller address (`429 too_many_attempts` with `Retry-After`). An address that is unknown, switched\noff or of a suspended organization answers the same `404`.\n"
          }
        },
        {
          "name": "What each room would cost for the dates (guests; no key)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/book-api/{{slug}}/quote",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "book-api",
                "{{slug}}",
                "quote"
              ]
            },
            "description": "Writes nothing. With `promo`, a valid code takes its discount off the rooms: it is the first of `lines`, negative, and the taxes and fees are worked out on what is left. For every room an offer: `bookable` is true only when it is free every night, priced every night, the guests fit **and the hotel's own rules allow the stay** (minimum or maximum stay, closed to arrival or departure, stop sell). Each offer carries `subtotal` (the rooms), `lines` (the hotel's taxes and fees, each added or only shown as included) and `total` (what the guest pays). A room that would sell but for such a rule carries `restriction` (`code`, `date`, `value`) so a guest can change the dates.\nHow many rooms are left is never told. The request is held to what the hotel allows (nights, rooms, how far ahead).\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"arrival\": \"2027-03-11\",\n  \"departure\": \"2027-03-13\",\n  \"rooms\": 1,\n  \"adults\": 2\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Book a room, to be paid at the property (guests; no key)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/book-api/{{slug}}/reservations",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "book-api",
                "{{slug}}",
                "reservations"
              ]
            },
            "description": "The booking is confirmed at once and takes its rooms off sale everywhere, like a booking the hotel makes itself, and the guest is\nemailed. `token` (8 to 100 characters) is made up by the page once for each attempt: pressing the button twice, or a retry, returns\nthe first booking (`200` instead of `201`) and sends no second email. Held to a limit per caller address and per guest email.\nThe answer carries `subtotal` (the rooms), `lines` (taxes and fees) and `total` (what the guest pays), and `manage_token`, the secret of the guest's own page, only in the answer that made the booking (when the hotel lets guests change a booking themselves, or takes online payment, which `pay_online` says; a retry cannot give it again). `pay_online` says whether the guest may pay on the hotel's gateway; `pay_due` (`amount`, `until`) is the deposit the hotel's terms require and its last moment, and `pay_banks` the bank accounts, one line each. A promo code that cannot be used (unknown, switched off, outside its dates, too short a stay, used up) refuses the booking with `409 promo_invalid` and books nothing. A room that is gone is `409 no_availability`; a stay that breaks the hotel's rules (a minimum stay, a closed day) is `409 not_sellable`, with a message the guest can act on. The field `website` is for robots: a person never sees it, and a booking that fills it is\ntold it worked and nothing is booked.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"room_type_id\": \"ab94a25e-5cef-5d1b-92c3-f0f9ddd9c53f\",\n  \"arrival\": \"2027-03-11\",\n  \"departure\": \"2027-03-13\",\n  \"rooms\": 1,\n  \"adults\": 2,\n  \"token\": \"189b165b-331c-55bc-8eb0-109a192eecc8\",\n  \"locale\": \"en\",\n  \"guest\": {\n    \"name\": \"Maria Silva\",\n    \"email\": \"maria.silva@example.com\",\n    \"phone\": \"+55 11 5550 0123\"\n  },\n  \"notes\": \"Quiet room please\",\n  \"website\": \"\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        }
      ]
    },
    {
      "name": "Payments",
      "item": [
        {
          "name": "The payment gateways a hotel can bring its own account of",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/payment-gateways",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "payment-gateways"
              ]
            },
            "description": "Requires `read:catalog`. Each gateway says which countries and currencies it serves, what it is called, and the `fields` a hotel must give to connect its account\n(the panel draws its form from them). A pretend gateway for trying things out is listed everywhere except on a production server.\n"
          }
        },
        {
          "name": "The payment gateways a property takes payments through",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/payment-connections",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "payment-connections"
              ]
            },
            "description": "Requires `read:catalog`. Never the credentials: only whether they exist and a fingerprint. A caller who may also change connections (`write:catalog`) sees each one's\n`hook_url`, the address the gateway is to send its messages to (pasted into the gateway's dashboard where it must be told).\n"
          }
        },
        {
          "name": "Connect the hotel's own payment gateway account",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/payment-connections",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "payment-connections"
              ]
            },
            "description": "Requires `write:catalog`. The money goes straight to the hotel's own account at the gateway: Antero Connect never holds it and never sees a card (the guest pays on the\ngateway's hosted page). `credentials` has exactly the fields the gateway names in `GET /v1/payment-gateways`; they are sealed and never shown again. A connection is a\n**sandbox** unless it says `\"sandbox\": false`, and a pretend gateway can only be a sandbox. The answer carries `hook_url`.\n"
          }
        },
        {
          "name": "Rename, pause or resume a payment connection, or replace its credentials",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/payment-connections/{{id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "payment-connections",
                "{{id}}"
              ]
            },
            "description": "Requires `write:catalog`. A paused connection takes no new payments and its callback address answers 404."
          }
        },
        {
          "name": "Remove a payment connection that was never used",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/payment-connections/{{id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "payment-connections",
                "{{id}}"
              ]
            },
            "description": "Requires `write:catalog`. A connection with payments is `409 connection_in_use`: the payments are records of money, so pause it instead."
          }
        },
        {
          "name": "Ask the gateway whether the credentials work",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/payment-connections/{{id}}/test",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "payment-connections",
                "{{id}}",
                "test"
              ]
            },
            "description": "Requires `write:catalog`. Makes no payment. `502 gateway_auth_failed` when the gateway refuses the credentials, `502 gateway_unavailable` when it cannot be reached."
          }
        },
        {
          "name": "Make a small test payment that proves the connection end to end",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/payment-connections/{{id}}/test-payment",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "payment-connections",
                "{{id}}",
                "test-payment"
              ]
            },
            "description": "Requires `write:catalog`. A payment that belongs to no reservation, of a small fixed amount: the hotel pays it itself on the gateway's page, and the message that comes back proves the keys, the checkout and the callback address. A live connection makes a real small charge, so it needs `live: true`."
          }
        },
        {
          "name": "The newest test payment of the connection",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/payment-connections/{{id}}/test-payment",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "payment-connections",
                "{{id}}",
                "test-payment"
              ]
            },
            "description": "Requires `read:catalog`. While it is still pending the gateway is asked what became of it, so a screen can poll this until it says `paid`. `404` when none was made."
          }
        },
        {
          "name": "The hotel's bank accounts for guests who pay by bank transfer",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/bank-accounts",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "bank-accounts"
              ]
            },
            "description": "Requires `read:catalog`. Oldest first; an account switched off (`inactive`) is listed too but is not offered to guests."
          }
        },
        {
          "name": "Add a bank account",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/bank-accounts",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "bank-accounts"
              ]
            },
            "description": "Requires `write:catalog`. At most 10 a property (`409 bank_account_limit`)."
          }
        },
        {
          "name": "Change a bank account, or switch it off",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/bank-accounts/{{id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "bank-accounts",
                "{{id}}"
              ]
            },
            "description": "Requires `write:catalog`. Send only what changes; `status` set to `inactive` stops the account being offered without losing it."
          }
        },
        {
          "name": "Remove a bank account",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/bank-accounts/{{id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "bank-accounts",
                "{{id}}"
              ]
            },
            "description": "Requires `write:catalog`. Transfers already recorded keep their amounts; they do not refer to the account."
          }
        },
        {
          "name": "The bank transfers recorded on a reservation",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/reservations/{{reservation_id}}/transfers",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "reservations",
                "{{reservation_id}}",
                "transfers"
              ]
            },
            "description": "Requires `read:reservations`. Oldest first."
          }
        },
        {
          "name": "Record a bank transfer on a reservation",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/reservations/{{reservation_id}}/transfers",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "reservations",
                "{{reservation_id}}",
                "transfers"
              ]
            },
            "description": "Requires `write:reservations`. Only the hotel's own confirmed reservation with a price (`409 transfer_not_allowed`), and not more than is owed (`409 nothing_owed` when it is paid). It waits to be confirmed, unless `received` is true (staff have seen the money): then it counts at once. A confirmed transfer sets the reservation's `payment_status` the way a gateway payment does."
          }
        },
        {
          "name": "The money is in the bank",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/transfers/{{id}}/confirm",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "transfers",
                "{{id}}",
                "confirm"
              ]
            },
            "description": "Requires `write:reservations`. Counts the transfer as paid and updates the reservation's `payment_status`. Confirming twice is the same as once; a rejected transfer cannot be confirmed (`409 transfer_rejected`)."
          }
        },
        {
          "name": "The money did not arrive",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/transfers/{{id}}/reject",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "transfers",
                "{{id}}",
                "reject"
              ]
            },
            "description": "Requires `write:reservations`. A transfer that was confirmed can be rejected too; the reservation's `payment_status` follows."
          }
        },
        {
          "name": "Keep the picture of the receipt with a transfer",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/transfers/{{id}}/proof",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "transfers",
                "{{id}}",
                "proof"
              ]
            },
            "description": "Requires `write:reservations`. The body is the picture itself (JPEG, PNG or WebP, at most 1.5 MB), told by its first bytes."
          }
        },
        {
          "name": "The picture of the receipt",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/transfers/{{id}}/proof",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "transfers",
                "{{id}}",
                "proof"
              ]
            },
            "description": "Requires `read:reservations`. `404` when there is none."
          }
        },
        {
          "name": "The payments made, or being made, for a reservation",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/reservations/{{reservation_id}}/payments",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "reservations",
                "{{reservation_id}}",
                "payments"
              ]
            },
            "description": "Requires `read:reservations`. Oldest first. A reservation's `payment_status` follows them: `paid` when what is paid covers the price, `deposit` when some is, `unpaid` otherwise."
          }
        },
        {
          "name": "Make a payment page for a reservation (a payment link)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/reservations/{{reservation_id}}/payments",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "reservations",
                "{{reservation_id}}",
                "payments"
              ]
            },
            "description": "Requires `write:reservations`. Asks the gateway for a hosted page for `deposit` (a `percent` of the price, 30 by default), `balance` or `full` (what is still owed), or `custom`\n(an `amount` of at most what is owed). The guest pays on that page (`checkout_url`); the gateway then tells Antero Connect, signed, and the payment becomes `paid`.\nIf the property has several active connections say which with `connection_id`. Only a confirmed reservation with a price can be paid for online.\n"
          }
        },
        {
          "name": "Ask the gateway what became of a payment",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/payments/{{id}}/refresh",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "payments",
                "{{id}}",
                "refresh"
              ]
            },
            "description": "Requires `write:reservations`. The safety net for a message that never came: a payment still pending is looked up at the gateway and updated."
          }
        },
        {
          "name": "Where a payment gateway tells us what happened (gateways only)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/pay-hooks/{{token}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "pay-hooks",
                "{{token}}"
              ]
            },
            "description": "No key: the address is the way in, and the message must carry the gateway's own signature. An address that is unknown, paused or of a suspended organization answers 404;\na message that is not signed by the gateway answers `400 bad_signature` and changes nothing; a message about nothing of ours is `200`. The same message twice changes nothing the second time.\n"
          }
        },
        {
          "name": "Where Duitku tells us a top-up was paid (Duitku only)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/pay/duitku/callback",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "pay",
                "duitku",
                "callback"
              ]
            },
            "description": "No key: a form post (`application/x-www-form-urlencoded`) from Duitku with `merchantCode`, `amount`, `merchantOrderId`, `resultCode`, `reference` and `signature`, where\n`signature` is HMAC-SHA256 of `merchantCode + amount + merchantOrderId` with the project's API key. A call that is not signed that way answers `400 invalid_signature` and changes nothing. A signed call\nwith `resultCode` `00` adds the amount to the balance of the organization the order belongs to, once (the same order twice changes nothing the second time); any other result, and an order of\nnothing of ours, is answered `200` so that Duitku stops asking. A server without a Duitku project answers 404.\n"
          }
        },
        {
          "name": "Where DOKU tells us a top-up was paid (DOKU only)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/pay/doku/notification",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "pay",
                "doku",
                "notification"
              ]
            },
            "description": "No key: a JSON `POST` from DOKU with the headers `Client-Id`, `Request-Id`, `Request-Timestamp` and `Signature`. `Signature` is `HMACSHA256=` and the base64 of the HMAC-SHA256, keyed with the account's Secret Key, of five lines:\n`Client-Id:<..>`, `Request-Id:<..>`, `Request-Timestamp:<..>`, `Request-Target:/pay/doku/notification` and `Digest:<base64 of the SHA-256 of the body>`. A call that is not signed that way, or whose timestamp is more than 15 minutes from now,\nanswers `400 invalid_signature` and changes nothing. A signed call with `transaction.status` `SUCCESS` adds the amount of the order to the balance of its organization, once, and only when `order.amount` is the amount we asked\nfor; any other status, an amount that differs and an order of nothing of ours are answered `200` so that DOKU stops asking. A server without a DOKU account answers 404.\n"
          }
        },
        {
          "name": "Where DOKU sends the person back after paying",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/pay/doku/return",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "pay",
                "doku",
                "return"
              ]
            },
            "description": "A redirect (303) to the panel's billing page, passing on the order id when it has the shape of ours. It shows and never believes: only the signed notification pays.\n"
          }
        },
        {
          "name": "Where Duitku sends the person back after paying",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/pay/duitku/return",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "pay",
                "duitku",
                "return"
              ]
            },
            "description": "A redirect (303) to the panel's billing page, passing on the order id when it has the shape of ours. It shows and never believes: the address can be edited by hand, so\nnothing is paid here (only the signed callback pays).\n"
          }
        }
      ]
    },
    {
      "name": "Decisions",
      "item": [
        {
          "name": "The decision board of a property",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/decisions",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "decisions"
              ]
            },
            "description": "Requires `read:decisions`. What Antero Connect deliberately does not guess becomes an item here: a cancellation for a booking it\ndoes not know (`missed_cancellation`, with `detail.candidates`, the live reservations whose number begins alike), a booking\nwithout a price (`no_price`), a room or rate that is not mapped (`unmapped`), invalid dates, nights or currency\n(`bad_data`), a change that came after a cancellation (`revision_after_cancel`) and a message that could not be read\n(`unreadable_message`). Items settle themselves when their cause goes away (the mapping is added, the booking arrives, a\nprice comes). `status` defaults to `open`; pass an empty `status` for all.\n"
          }
        },
        {
          "name": "One decision",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/decisions/{{decision_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "decisions",
                "{{decision_id}}"
              ]
            },
            "description": "Requires `read:decisions`. One decision: what happened, which booking or channel it is about, the actions that settle it and their meaning. A decision closes by itself when its cause is gone.\n"
          }
        },
        {
          "name": "Settle a decision",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/decisions/{{decision_id}}/resolve",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "decisions",
                "{{decision_id}}",
                "resolve"
              ]
            },
            "description": "Requires `write:decisions`. `action` depends on the kind (`actions` of the decision lists them):\n`cancel_reservation` (missed_cancellation; `reservation_id` must be one of `detail.candidates` and still live),\n`set_total` (no_price; `total` in the currency's smallest unit, 0 or more; the booking is completed from it),\n`reopen` (revision_after_cancel; the change is applied and the reservation lives again, with its holds and a\n`modified` feed entry) and `dismiss` (any kind; the message is ignored; a booking that waits for a mapping then\nstays pending and is no longer completed by a new mapping). Cancelling by decision never raises availability: the\nholds stay until the PMS confirms through the feed. 409 `decision_not_open`; 400 `action_not_allowed`.\n"
          }
        }
      ]
    },
    {
      "name": "Webhooks",
      "item": [
        {
          "name": "Register a receiver for the nudges about the reservation feed",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/webhook-endpoints",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "webhook-endpoints"
              ]
            },
            "description": "Requires `write:webhooks`. Whenever the property's reservation feed grows, Antero Connect POSTs a small signed message\nto `url` so that the PMS pulls the feed sooner; **the feed is the truth, the webhook only a nudge**, so it may fail,\nrepeat or arrive late, and it carries no guest and no price. The body is\n`{id, type: \"reservation.feed\", property_id, seq, kind, reservation_id, external_id, created_at}`. Headers:\n`X-Channel-Manager-Signature: t=<unix>,v1=<hex HMAC-SHA256(secret, \"<t>.<body>\")>`, `X-Channel-Manager-Event`, `X-Channel-Manager-Delivery` (the\nsame on every attempt: drop duplicates by it). Verify the signature with the secret and reject a `t` more than five\nminutes away. A 2xx answer is success; anything else (or no answer within 10 s, or a redirect) is retried after\n1, 2, 4, 8, 16, 32 and 60 minutes, and after the 8th failed attempt the message is `dead` and waits to be replayed.\nThe **secret is shown once**, in this response; no `Idempotency-Key` is accepted. In production `url` must be `https`\nand must not name a private or local place.\n",
            "body": {
              "mode": "raw",
              "raw": "{\n  \"url\": \"https://pms.example.com/hooks/channel-manager\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            }
          }
        },
        {
          "name": "Receivers of a property",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/webhook-endpoints",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "webhook-endpoints"
              ]
            },
            "description": "Requires `read:webhooks`. Never shows a secret."
          }
        },
        {
          "name": "One receiver",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/webhook-endpoints/{{endpoint_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints",
                "{{endpoint_id}}"
              ]
            },
            "description": "Requires `read:webhooks`. One receiver: its address, whether it is active or paused, and a fingerprint of its signing secret. The secret itself is shown once, when the receiver is created or its secret rotated.\n"
          }
        },
        {
          "name": "Change the address or pause or resume",
          "request": {
            "method": "PATCH",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/webhook-endpoints/{{endpoint_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints",
                "{{endpoint_id}}"
              ]
            },
            "description": "Requires `write:webhooks`. A paused endpoint receives nothing; what waited is sent when it is active again."
          }
        },
        {
          "name": "Remove a receiver",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/webhook-endpoints/{{endpoint_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints",
                "{{endpoint_id}}"
              ]
            },
            "description": "Requires `write:webhooks`. What was still pending for it is marked `dead` with the reason, not lost silently."
          }
        },
        {
          "name": "Replace the signing secret",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/webhook-endpoints/{{endpoint_id}}/rotate-secret",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints",
                "{{endpoint_id}}",
                "rotate-secret"
              ]
            },
            "description": "Requires `write:webhooks`. The old secret stops working at once. The new one is shown once, here."
          }
        },
        {
          "name": "Messages sent (or waiting) to a receiver",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/webhook-endpoints/{{endpoint_id}}/deliveries",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "webhook-endpoints",
                "{{endpoint_id}}",
                "deliveries"
              ]
            },
            "description": "Requires `read:webhooks`. Newest first. `dead` messages ran out of attempts and wait for `POST /v1/webhook-deliveries/{id}/replay`."
          }
        },
        {
          "name": "Send a dead or delivered message again",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/webhook-deliveries/{{id}}/replay",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "webhook-deliveries",
                "{{id}}",
                "replay"
              ]
            },
            "description": "Requires `write:webhooks`. Queues a fresh attempt with the same delivery id. 409 `delivery_not_replayable` for one that is still pending or whose endpoint is gone."
          }
        }
      ]
    },
    {
      "name": "Monitoring",
      "item": [
        {
          "name": "The property's verdict, computed now",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/status",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "status"
              ]
            },
            "description": "Requires `read:sync`. **One verdict** from the facts that really hold sales back, computed live (never a stored copy that\ncould be green while a gate is shut): feed entries the PMS has not confirmed (and the holds they keep), messages from\nchannels waiting to be processed (which hold back increases), connections that are degraded, down or refused, webhooks that\ngave up, decisions nobody took. `ok` means no finding; `degraded` a warning; `critical` something that needs a person now.\nIf the monitor itself has gone quiet that is a finding too (`heartbeat_stale`). The periodic job and the alerts use the same\nfunction. **No alert ever releases a hold**: holds never expire by time.\n"
          }
        },
        {
          "name": "Alerts of a property",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/alerts",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "alerts"
              ]
            },
            "description": "Requires `read:sync`. Alerts open when a finding appears, change severity with it and resolve themselves when it is gone. Newest first."
          }
        },
        {
          "name": "Make sure the property is monitored",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/monitor/start",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "monitor",
                "start"
              ]
            },
            "description": "Requires `write:catalog`. New properties are monitored from the start; this is for older ones. Safe to repeat (one chain per property)."
          }
        }
      ]
    },
    {
      "name": "Signing in",
      "item": [
        {
          "name": "Email a sign-in link (also how a new person signs up)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/auth/magic-link",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "auth",
                "magic-link"
              ]
            },
            "description": "The main way to sign in. Answers **202 with the same words whether or not the address has an account** (an unknown address\ngets an account when the link is used). The link works for 15 minutes and once, and opens the panel's sign-in page with the\ntoken in the fragment; the page then calls `POST /v1/auth/verify`. Emails are in English or Indonesian (`locale`,\nor `Accept-Language`). Limited per address and per caller (429 `too_many_attempts`, `Retry-After`); a limit reached for one\nemail address is not revealed (still 202, no email). 503 `email_not_configured` when the server cannot send email.\n"
          }
        },
        {
          "name": "Write to us from the website (no address of ours is published)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/contact",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "contact"
              ]
            },
            "description": "The contact form of the website, for a person who is not signed in. The message reaches our support mailbox with the sender's\naddress as the reply address. Limited per caller (429 `too_many_attempts`, `Retry-After`). A person who is signed in uses\nSupport (tickets) instead. 503 `contact_not_available` when we cannot take the message now.\n"
          }
        },
        {
          "name": "Turn a sign-in link's token into a session",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/auth/verify",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "auth",
                "verify"
              ]
            },
            "description": "A POST on purpose: a program that merely opens the link (a mail scanner) must not use it up. A token that is wrong, expired\nor already used is one answer (401 `invalid_link`). The session token goes in `Authorization: Bearer` on every other call; it\nstays valid for 14 days without use and 90 days at most. A person with exactly one organization has it chosen already;\notherwise `organization_id` is null until `POST /v1/auth/organization` (or a new one is made with `POST /v1/auth/organizations`).\n"
          }
        },
        {
          "name": "Sign in with email and password (the second way)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/auth/password/login",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "auth",
                "password",
                "login"
              ]
            },
            "description": "For a person who has set a password with `PUT /v1/auth/password`. An unknown address, an address without a password and a wrong\npassword are **one answer** (401 `invalid_credentials`) and cost the same time. Five failures per address in 15 minutes lock the\naddress for the rest of the window (429 `too_many_attempts`), whether or not the account exists.\n"
          }
        },
        {
          "name": "Who is signed in",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/auth/me",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "auth",
                "me"
              ]
            },
            "description": "For a session (403 `session_required` for an API key). Lists the organizations the person belongs to, the one chosen, the role and the scopes."
          }
        },
        {
          "name": "Delete my own login",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/auth/me",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "auth",
                "me"
              ]
            },
            "description": "For a person signed in. Deletes the person's login: their memberships, sessions and e-mail address. Refused with `409 last_owner` while they are the only owner of an organization that still\nexists (close the account, or make someone else an owner, first). What they did stays in the history of the organization, without their address.\n"
          }
        },
        {
          "name": "Record that the person agreed to the terms",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/auth/terms",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "auth",
                "terms"
              ]
            },
            "description": "For a person signed in. The sign-in page asks for a tick that means agreeing to the Terms of Service and the Privacy Policy; the panel sends it here once signed in. `version` must be the\nversion in force (`GET /v1/account` gives it as `terms_version`), or the answer is `400 invalid_request`. The version agreed to is shown as `user.terms_version` in `GET /v1/auth/me`.\n"
          }
        },
        {
          "name": "End this session",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/auth/logout",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "auth",
                "logout"
              ]
            },
            "description": "For a person signed in (a session). Ends this session at once; the session token stops working everywhere. Answers `204` whether or not the token was still valid, so it is safe to call twice.\n"
          }
        },
        {
          "name": "Work in one of the person's organizations",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/auth/organization",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "auth",
                "organization"
              ]
            },
            "description": "Ties the session to an organization the person belongs to (404 for any other), with their role there. After this the scopes of the role apply to every other call."
          }
        },
        {
          "name": "Create an organization (the person becomes its owner)",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/auth/organizations",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "auth",
                "organizations"
              ]
            },
            "description": "The first thing a new person does. The new organization is chosen for the session. Roles give scopes: `owner` and `admin` all;\n`staff` all reads plus `write:ari`, `write:reservations`, `write:closures`, `write:decisions`; `readonly` all reads except guest data.\n"
          }
        },
        {
          "name": "Set or change the password (optional)",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/auth/password",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "auth",
                "password"
              ]
            },
            "description": "For a session. At least 10 characters, not the email address. Stored with Argon2id. Not needed for signing in by link."
          }
        }
      ]
    },
    {
      "name": "Closures",
      "item": [
        {
          "name": "Close a room type for some days, at one OTA or at all of them",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              },
              {
                "key": "Idempotency-Key",
                "value": "{{$guid}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/closures",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "closures"
              ]
            },
            "description": "Requires `write:closures`. A closure is the operator's intent; Antero Connect sends it, then **reads the channel back**\nand reports `status` honestly (`pending`, `sent`, `proven`, `disputed`, `blocked`, `expired`, `lifted`).\nWhat a channel can close is in its manifest (`GET /v1/channel-connections/{id}/capabilities`): a channel\nthat cannot close at all answers 409 `closure_not_supported`; a channel that can only close every OTA at once,\nor cannot close this OTA on its own, answers 409 `closure_not_supported_for_ota`; both name `alternatives`.\nLeave `sub_channel` out to close every OTA the channel can reach; `unreachable_sub_channels` lists the OTAs\nthat stay open. `date_from` and `date_to` are inclusive.\n"
          }
        },
        {
          "name": "List closures of a property",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/properties/{{property_id}}/closures",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "properties",
                "{{property_id}}",
                "closures"
              ]
            },
            "description": "Requires `read:closures`. Active closures by default; newest first; at most 200."
          }
        },
        {
          "name": "Lift a closure (open the days again)",
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/closures/{{closure_id}}",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "closures",
                "{{closure_id}}"
              ]
            },
            "description": "Requires `write:closures`. The closure stays listed with status `lifted`; lifting twice changes nothing."
          }
        },
        {
          "name": "What reading the channel back found different from what was closed",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "Accept",
                "value": "application/json"
              },
              {
                "key": "Authorization",
                "value": "Bearer {{api_key}}"
              }
            ],
            "url": {
              "raw": "{{base_url}}/v1/channel-connections/{{connection_id}}/closure-diffs",
              "host": [
                "{{base_url}}"
              ],
              "path": [
                "v1",
                "channel-connections",
                "{{connection_id}}",
                "closure-diffs"
              ]
            },
            "description": "Requires `read:closures`. `not_applied`: the channel answered OK and did not keep it. `changed_at_channel`:\na day that had been proven closed was found open (somebody changed it at the channel); it is closed again.\n"
          }
        }
      ]
    }
  ]
}