Pre-booking
post/prebook

Request

  • Base URL
    https://api-dev.despegar.com/v3
  • URL
    https://api-dev.despegar.com/v3/prebook
  • Auth
    API key in header x-apikey

Request body

choice_idstring required

This information is encrypted and must be obtained in the response from the availability service.

lang'pt' | 'en' | 'es'

This field must be filled in with the language in which you wish to receive the information returned in 'extended_info'.

includestring[]

This field must be submitted with at least one option. The allowed values are: - EXCHANGE_POLICIES: This option is sent to return information about exchange policies. - IMPORTANT_DATA: This option is sent to return information about requirements (vaccinations, documentation, etc.) based on the routes and destinations. - HINTS: This option is sent to return specifications for required fields and formats for billing data.

Response

OK

prebook_idstring

ID automatically generated to identify the flight data and the valid fare to make the booking.

expirationstring date-time

expiration date for the chosen fare.

statusstring

fare status.

flowstring

identifies the flow/process being performed.

totalnumber

total price of the flight.

currencystring

currency corresponding to the returned total amount.

Changes

    • warning

      removed the optional property //// from the response with the status

    • info

      added the optional property //// to the response with the status