Book

The book service is responsible for confirming and issuing the reservation.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

This field must be filled in with the information returned in the "prebook_id" field of the "prebook" service response.

string
required

This field must be filled in by the API consumer with a unique code to identify book requests, following the ISO-XXXX standard format. Note that each code must be unique to avoid processing errors - sending duplicate codes will result in an error response.

string
enum
required

This field must be filled in with the payment method, the only option available is 'PAYINADVANCE'.

Allowed:
contact_data
object
required
travelers
array of objects
required
travelers*
payment
object
number

This field is optional and must be filled in with the municipal registration, information required only for Legal Entities.

string

This field is optional and must be filled in with the type of business, information required only for Legal Entities.

string

This field is optional and must be filled in with the customer's situation, information required only for Legal Entities.

loyalty_data
object of objects
boolean

This parameter must be sent as a 'query parameter', for example: https://https://{{domain}}.despegar.com/v3/book?disable_sync_result=true This parameter was created to obtain a book response in less than 45 seconds (default time). When sent with 'true', the response will be returned as soon as the reservation_id is generated (on average, 2 seconds). However, the status may return as 'PROCESSING', requiring a later status. When not sent or sent with 'false', the service response time will be the default.

Responses

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