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
Customer
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
Credit card data
Response
Reservation
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:
Get reservation group
Fetch details of the specified reservation group.
Request
[ApiBaseUrl]/api/distributor/v1/reservationGroups/get
Reservation group extent
Response
Payment request
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
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