TravelCaster API - Flights - AddBookingInfo operation

Back to Flights home.


The AddBookingInfo operation allows you to add additional information to an existing booking. This information must be assigned to a specific passenger within the booking.

Operation Overview

  • Purpose: The AddBookingInfo operation is used to add custom fields to a booking, providing flexibility to include additional data not sent on the booking step, or even after ticketing.
  • Availability: This operation is available in all API versions that support the AddBookingInfo operation.

Dependencies

To call this operation, you need a valid token, obtained previously with the GetAccessToken operation. If your token is no longer valid, you will receive a 1210 error. See the Transaction Codes page for more information.

Request

JSON | XML

http://endpoint/api/version/FlightService.format/AddBookingInfo

(POST) body - AddBookingInfoRequest

format: json | xml

returns: AddBookingInfoResponse

WebService

http://endpoint/api/version/FlightService.asmx

operation: AddBookingInfo

parameters: booking ([request])

returns: AddBookingInfoResponse

Structure of the AddBookingInfoRequest object

AddBookingInfoRequest
 |
 |_ Token (mandatory)
 |
 |_ BookingNumber (string - mandatory)
 |_ PaxNumber (int - mandatory - RetrieveBookingResponse Passengers.Number)
 |_ FieldName (string - mandatory)
 |_ Value (string - mandatory)

Structure of the AddBookingInfoResponse object

AddBookingInfoResponse
 |
 |_ Token
 |_ TransactionID (string)
 |_ TransactionCode (string)
 |_ TransactionMessage (string)

Status response

  • Success response: "TransactionCode": null
  • Response response: Refers to Transaction Codes page by "TransactionCode".

Back to Flights home.


See change history for this file
Loading...