Hermeseus Docs
Legacy docs

Activity bookings

Book a product-type for a date and travellers. Creating a booking holds its price on your wallet. With a live credential the booking is then issued with the supplier automatically, usually within a minute; poll it until it is issued and fetch the voucher. With a test credential nothing is sent to the supplier and the booking is issued as a simulation.

Lifecycle

statusMeaning
heldThe booking is reserved and the amount is held on your wallet. A live booking is being issued with the supplier automatically.
confirmedYou confirmed the booking; issuance is in progress.
issuedThe booking is issued and a voucher is available. The amount held is settled to the supplier's final price and charged.
cancelledThe booking was cancelled and the hold released.

Create a booking

POST/v3/HAPI/activities/bookings

Requires the activities:write scope.

Body

FieldTypeRequiredDescription
product_type_idstringYesThe apt_ product-type to book.
datestringYesActivity date, YYYY-MM-DD.
timeslotstringNoStart time from availability, e.g. 09:00.
travelers.adultsintegerYesNumber of adults.
travelers.childrenintegerNoNumber of children.
travelers.seniorsintegerNoNumber of seniors.
customer.given_namestringYesLead customer first name.
customer.family_namestringYesLead customer last name.
customer.emailstringYesContact email.
customer.phonestringNoContact phone.
client_referencestringNoYour own reference.
optionsobjectCond.Answers to the product-type's booking options. Required when the activity has required options.
options.per_booking[]arrayNoOne { "id", "value" } per per-booking option.
options.per_pax[][]arrayNoAn array per traveller (adults, then children, then seniors); each inner array holds that traveller's { "id", "value" } answers.

Get the option definitions (ids, types, whether required, item choices) from the availability response's booking_options. The id in each answer is the option's id; value is what the guest entered (for a list option, an item's value).

curl -X POST https://api.hermeseus.com/v3/HAPI/activities/bookings \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: 5f2b8c1a-3e4d-4a6b-9c7e-1d2f3a4b5c6d" \
  -d '{
    "product_type_id": "apt_88213",
    "date": "2026-11-14",
    "timeslot": "09:00",
    "travelers": { "adults": 2 },
    "customer": { "given_name": "Jane", "family_name": "Doe", "email": "jane@example.com" },
    "options": {
      "per_booking": [
        { "id": "46db421e-5727-46fc-9f2c-10679e026582", "value": "EK202" }
      ],
      "per_pax": [
        [ { "id": "543f0e45-bdfe-4dc7-af73-e7fd5eda8246", "value": "zone_1" } ],
        [ { "id": "543f0e45-bdfe-4dc7-af73-e7fd5eda8246", "value": "zone_2" } ]
      ]
    }
  }'
Required options are validated. The gateway checks your answers against the product-type's booking options before holding anything. If a required option is missing — including a per_pax option not answered for every traveller — the request fails with 422 and a message naming the option, e.g. Missing required per-guest booking option: "Full name" (traveller 2). No wallet hold is created. Add-on option prices (an option or item price) are surcharges the guest pays on top of the ticket rates.

Response

{
  "object": "activity_booking",
  "id": "abk_7Q2F9K",
  "status": "held",
  "code": "7Q2F9K",
  "product_type_id": "apt_88213",
  "title": "Old Town Walking Tour — Adult ticket",
  "date": "2026-11-14",
  "timeslot": "09:00",
  "total": { "amount": "58.00", "currency": "USD" },
  "breakdown": [
    { "category": "adult", "quantity": 2, "price": { "amount": "29.00", "currency": "USD" } }
  ],
  "customer": { "given_name": "Jane", "family_name": "Doe", "email": "jane@example.com" },
  "created_at": "2026-08-27T10:15:00Z"
}
Create is safe. Creating a booking never issues a ticket or charges a supplier. It reserves the booking and holds the amount on your wallet. Confirm it to proceed, or cancel to release the hold.

Read a booking

GET/v3/HAPI/activities/bookings/{id}

Requires activities:read. Returns the activity_booking with its current status.

Confirm a booking

POST/v3/HAPI/activities/bookings/{id}/confirm

Requires activities:write. Optional: live bookings are issued automatically without it. Poll the booking until it becomes issued, then fetch the voucher.

Request cancellation of a booking

POST/v3/HAPI/activities/bookings/{id}/cancel

Requires activities:write. A booking not yet sent to the supplier is cancelled at once ("status": "cancelled") and its hold released. Once it is issued, or while it is being issued, cancellation is a request our team reviews ("status": "pending_review"): the booking and its hold stay until we approve it.

{
  "object": "cancellation_request",
  "booking_id": "abk_8f3c81d2-…",
  "status": "pending_review",
  "message": "Cancellation requested — pending review.",
  "requested_at": "2026-10-28T18:03:00+00:00"
}

List bookings

GET/v3/HAPI/activities/bookings

Requires activities:read. Lists your activity bookings, filterable by status, email, and date range.