2. Complete a booking

Overview

Step 2 of 2 in the booking flow. Complete the booking by providing guest information and payment details. This confirms the reservation and creates the final booking.

When to Use

  • After prebook - Call this after creating a prebook session
  • Payment processing - Submit payment information to confirm booking
  • Booking confirmation - Finalize the reservation

What You Get

  • Booking ID - Unique identifier for the confirmed booking
  • Hotel confirmation code - Reference code from the hotel
  • Complete booking details - Dates, pricing, room information
  • Cancellation policies - Terms for cancelling the booking
  • Guest information - Confirmed guest details

Payment Methods

  • ACC_CREDIT_CARD - Direct credit card payment. In sandbox mode, this can be used to simulate a booking without getting charged.
  • TRANSACTION - Use when using Payment SDK (provide transactionId)
  • WALLET - Wallet payment method
  • CREDIT - Use account credit balance

Testing

When testing sandbox bookings, simply use the ACC_CREDIT_CARD payment method. This allows you to simulate a booking without getting charged.

Required Information

  • Prebook ID - From the prebook step
  • Guest details - First name, last name, and email
  • Payment information - Payment method and details

Quick Start

Provide the prebookId, guest information (firstName, lastName, email), and payment details. Returns confirmed booking with booking ID and confirmation code.

Query Params
integer
Body Params
string
required

This identifier from the pre-booking step is used to confirm a booking rate

string

An optional client-defined reference ID acts as an idempotency key to prevent duplicate bookings

holder
object
required

Information on the person responsible for making the payment. This may not necessarily be the traveler

guests
array of objects
required

This represents a list of all individuals included in the hotel reservation

guests*
metadata
object

Encapsulates essential metadata for fraud detection and compliance, including IP, location, language, device details, and marketing parameters.

payment
required

Specifies the payment method for completing the booking

guestPayment
object

The payment method used for the transaction. This determines where the money for the booking comes from. Recommended to be added when you are merchant of record to improve the fraud detection system.

Responses

Language
Credentials
Header
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json