Booking

Creates a channel booking for one or more reservations regardless of availability or restrictions.

Creates a booking taking a list of reservations as input<br>You must have at least one of these scopes: 'reservations.force-create, reservations.force-manage'.<br>For fine-grained clients, you must have this permission: 'core.bookings.create'.

post/booking/v0-nsfw/channel-bookings

Request

  • Base URL
    https://api.apaleo.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.apaleo.com/booking/v0-nsfw/channel-bookings
  • Auth
    OAuth 2
    Implicit: https://identity.apaleo.com/connect/authorize
    Scopes: reservations.force-create, reservations.force-manage, admin

Query parameters

copyPaymentAccountboolean

Copy payment account from booking to reservations. Default is true.

Headers

Idempotency-Keystring

Unique key for safely retrying requests without accidentally performing the same operation twice. We'll always send back the same response for requests made with the same key, and keys can't be reused with different request parameters. Keys expire after 24 hours.

Request body

commentstring nullable

Additional information and comments

bookerCommentstring nullable

Additional information and comment by the booker

transactionReferencestring nullable

The reference of a payment transaction. This should be set when a payment transaction has been initiated and should be used to complete the transaction upon reservation creation. When set, the payment transaction completion is always triggered regardless of the reservation guarantee type and payment automation settings.

Example request

{
  "booker": {
    "identificationIssueDate": "2020-10-10",
    "identificationExpiryDate": "2020-10-10",
    "birthDate": "2020-10-10"
  },
  "reservations": [
    {
      "primaryGuest": {
        "identificationIssueDate": "2020-10-10",
        "identificationExpiryDate": "2020-10-10",
        "birthDate": "2020-10-10",
        "borderCrossingDate": "2020-10-10"
      },
      "additionalGuests": [
        {
          "identificationIssueDate": "2020-10-10",
          "identificationExpiryDate": "2020-10-10",
          "birthDate": "2020-10-10",
          "borderCrossingDate": "2020-10-10"
        }
      ],
      "services": [
        {
          "serviceId": "MUC-SPA",
          "dates": [
            {
              "serviceDate": "2026-10-30",
              "amount": {
                "amount": 25,
                "currency": "EUR"
              }
            },
            {
              "serviceDate": "2026-10-31"
            }
          ]
        }
      ]
    }
  ]
}

Response

All new reservations were created.

idstring required

Booking id

Example response

{
  "id": "XPGMSXGF",
  "reservationIds": [
    {
      "id": "XPGMSXGF-1"
    },
    {
      "id": "XPGMSXGF-2"
    }
  ]
}

Changes

No operation changes recorded.