Booking
POST/v2/booking
Introduction
Books one or more previously check-priced room rates. Booking is asynchronous: this call
only confirms the request was accepted for processing, not that the reservation itself is
confirmed yet — see status on the response.
Request
- application/json
Body
- Array [
- Array [
- ]
- ]
- Array [
- Array [
- ]
- ]
items object[]required
The item(s) to book in this single purchase.
item objectrequired
Possible values: [hotel]
Default value: hotel
The re-confirmed room rate to book, as returned by v2/hotels/checkrate (roomRates[].bookingToken). Expires 15 minutes after being issued.
totalPrice objectrequired
The room rate's total price, as returned by v2/hotels/checkrate (roomRates[].priceComposition.total).
guests object[]required
One entry per guest staying in the room.
Possible values: [ADULT, CHILD]
Age category of the guest.
Guest's first name.
Guest's last name.
Date of birth (ISO 8601).
Brazilian CPF, when applicable.
Brazilian RG, when applicable.
Brazilian RG's issuing organ, when applicable.
Free-text special requests for the hotel (e.g. late check-in, accessible room).
buyer objectnullable
payments object[]required
Payment(s) to charge for this purchase.
The payment option being charged, as returned by v2/hotels/checkrate (roomRates[].paymentOptions[].id).
creditCard objectnullable
Default value: 1
Number of installments, for payment options that support it.
paidItems object[]required
Which item(s) this payment covers, and how much of each.
Index into items this portion of the payment applies to.
Portion of that item's totalPrice covered by this payment.
The searchId from the availability search/checkrate these room rates came from. Recommended: also drives internal cross-call correlation.
Desired language/locale for the response's text.
Responses
- 200
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
Possible values: [INPROGRESS, FAILED, PRICE_CHANGED]
PRICE_CHANGED means the price moved since checkrate; see priceChanges. Re-submitting to confirm the new price isn't wired up yet.
items object[]required
ID of the created reservation/order item.
Index into the request's items this result corresponds to.
priceChanges object[]nullable
Populated only when status is PRICE_CHANGED.
The total price this item was booked at.
The item's current, live total price.
{
"orderId": "string",
"items": [
{
"id": "string",
"index": 0
}
],
"priceChanges": [
{
"id": "string",
"index": 0,
"referenceTotal": 0,
"supplierTotal": 0,
"difference": 0,
"currency": "string"
}
]
}