Reservation groups
Create reservation group
Create a group of one or more reservations, i.e. make a reservation.
Request
[ApiBaseUrl]/api/distributor/v1/reservationGroups/create
ConfigurationId
string
required
Unique identifier of the Booking Engine configuration used.
HotelId
string
required
Unique identifier of the hotel.
Reservations
array of Reservation data
required
Reservation parameters, such as dates and quantities of persons.
AvailabilityBlockId
string
optional
Unique identifier of availability block if present. Provide always when you have it.
Customer
Email
string
required
Email of the customer.
FirstName
string
required
First name of the customer.
LastName
string
required
Last name of the customer.
Telephone
string
optional
Telephone number of the customer.
NationalityCode
string
optional
ISO 3166-1 Aplha-2 code of the customer’s nation country, e.g.US
.
SendMarketingEmails
boolean
optional
Subscribe to marketing emails. When Booker
is present, this should be false
or null
because the customer is not subscribing, the booker is. See Send marketing emails.
Send marketing emails
The boolean flag SendMarketingEmails
indicates if the user has opted in to receive marketing communication or not. The API accepts the following values:
true
- subscription is createdfalse
- subscription is disablednull
- subscription remains untouched
When Booker
is present in the request, we assume that the booker is booking on behalf of the customer, but their opt-in to marketing communication is for them as user and not for the customer. Therefore, the SendMarketingEmails
property for the booker should be set according to the user's choice, while the SendMarketingEmails
property for the customer should be set to false
or null
.
Reservation data
RoomCategoryId
string
required
Identifier of the requested room or space category.
StartUtc
string
required
Start date of the reservation, i.e. arrival date.
EndUtc
string
required
End date of the reservation, i.e. departure date.
VoucherCode
string
optional
A voucher code, to be paired with reservation for later retrieval only. The actual voucher rate used is determined by setting a proper RateId
.
RateId
string
required
Identifier of the chosen rate.
AdultCount
number
required
Number of adults.
ChildCount
number
required
Number of children.
ProductIds
array of string
optional
Unique identifiers of the requested products.
Notes
string
optional
Additional notes.
Credit card data
PaymentGatewayData
string
required
Encoded payment card data obtained from the payment gateway specific library. For more details, see our Supporting payment cards use case.
Expiration
string
required
Expiration date of payment card, in format YYYY-MM
.
HolderName
string
required
Name of the card holder.
Response
Id
string
required
Unique identifier of the created reservation group.
CustomerId
string
required
Unique identifier of the reservation group customer.
PaymentRequestId
string
optional
Unique identifier of the Payment request that can be used to complete on session payment.
PaymentCardId
string
optional
Unique identifier of the Payment card that can be used to complete on session payment card authorization.
Reservation
Id
string
required
Identifier of the reservation.
Number
string
required
Confirmation number of the reservation.
RoomCategoryId
string
required
Identifier of the requested room or space category.
StartUtc
string
required
Start date of the reservation, i.e. arrival date.
EndUtc
string
required
End date of the reservation, i.e. departure date.
AdultCount
number
required
Number of adults.
ChildCount
number
required
Number of children.
ProductIds
array of string
optional
Unique identifiers of the requested products.
RateId
string
required
Identifier of the chosen rate.
Notes
string
optional
Additional notes.
Documentation Update: Reservation Status Based on Feature Setting
Enable Automatic Cancellation for Optional Reservations
When the feature Enable automatic cancellation for optional reservations is activated on your bookable service under Visit Options:
Reservations with a balance due upon confirmation will initially be set to an Optional state.
These reservations will only transition to a Confirmed status upon successful payment of the due amount.
If the feature is not activated:
Reservations will be created directly in the Confirmed state.
Error response
In case of an error caused by insufficient availability (which might have decreased since the time it was provided to the client), the error response may contain the following fields on top of the standard ones:
ExceedingReservationIndexes
array of number
optional
Indexes of reservations from the request that are not available anymore.
Get reservation group
Fetch details of the specified reservation group.
Request
[ApiBaseUrl]/api/distributor/v1/reservationGroups/get
HotelId
string
required
Unique identifier of the hotel.
ReservationGroupId
string
required
Unique identifier of the reservation group.
Extent
optional
Extent of data to be returned. e.g. it is possible to specify that together with the reservation group, payment requests and payments will be returned.
Reservation group extent
PaymentRequests
boolean
optional
Whether the response should contain Payment requests related to the reservation group.
Payments
boolean
optional
Whether the response should contain Payment attempts related to the Payment requests for reservation group.
Response
Id
string
required
Unique identifier of the created reservation group.
CustomerId
string
required
Unique identifier of customer who created reservation group.
PaymentRequestId
string
optional
Unique identifier of payment request that can be used to complete on session payment.
PaymentRequests
array of Payment request
optional
Contains payment requests related to the reservation group.
Payment request
Id
string
required
Unique identifier of the payment request.
ReservationGroupId
string
required
Identifier of the related reservation group.
Payment request state
Pending
- Non-finite state. Awaiting a next action.Completed
- Finite state. Payment request that has been covered by payment.Canceled
- Finite state. Payment request has been manually canceled by the creator (enterprise).Expired
- Finite state. Payment request has not been completed within its expiration time.
Payment
Id
string
required
Unique identifier of the payment.
Amount
required
Amount in a currency which was used to create the Payment request - usually the default currency of the enterprise.
ChargeAmount
required
Amount in currency which was used for the payment during the charge. i.e. currency that will be visible on the user bank statement for the payment.
CreatedUtc
string
required
Date and time of the payment creation in UTC timezone in ISO 8601 format.
EnterpriseId
string
required
Identifier of the enterprise receiving the payment.
PaymentRequestId
string
required
Identifier of the payment request.
Amount
Currency
string
required
ISO 4217 code of the currency.
GrossValue
number
required
Gross value of the amount. (Net + sum of TaxValues
)
NetValue
number
required
Net value of the amount.
Payment state
Pending
- Non-finite state. Payment has been created, but the state is not known yet.Verifying
- Non-finite state. Payment is awaiting a 3DS verification.Charged
- Finite state. Payment has been successfully charged.Canceled
- Finite state. Payment has been canceled, and it has not been charged.Failed
- Finite state. Payment has not been charged.
Last updated