General
Here you can find examples of the requests and responses of the TravelMessage G7 API.
Travelmessage Schema
Here you can download the latest version of the TravelMessage v31 schema.
Download: XSD Schema
Postman collection
In the postman collection we provide an example for a booking with 2 persons in 1 room. In the environment variables you have to fill in the OAuth credentials.
Download: Postman collection
Extra XML Examples
Fast booking
Create booking without flight upgrades.
Default extras will be added automaticly (see AssignResponse).
Download: Fast booking
Standard booking
Getting flight upgrades (from AddProAvailability) selecting default luggage: BG00
Book result is same as fast booking
Download: Standard booking
Booking with flight upgrades
Getting flight upgrades (from AddProAvailability) but selecting luggage and seat upgrades
luggage: BG20, seat upgrade: "COMFORT_SEAT"
Download: Flight upgrades
Booking with Deluxe (flight)class
Getting flight upgrades (from AddProAvailability) selecting default luggage for this class: BG40
Download: Deluxe class
Booking with Local costs
Creating a standard booking which have local costs
Download: Local costs
Booking with errata
Receipt, Assign and Recap responses with Errata inside
The Message description contains an id and version number between brackets (TUI reference) and the errata message itself
Download: Errata
Booking with Discounts
Creating a standard booking where discounts are added in the requests: Receipt, Assign and Book
A Price Detail with the discount is shown in responses: Receipt, Assign and Recap
There is also an example if a invalid code is given. See invalid_code example.
Download: Discounts
Booking with cancellation information
Creating a standard booking where flights are carried out by a carrier with different cancellation policies.
Extra information is given in the Class group within Transport in the responses: AddProAvailability, Sell and Recap.
Download: Cancellation policies
Booking with transfer
Creating a standard booking where a transfer is added in the requests: AvailabilityResponse gives transfer
upgrades which can de added to Receipt, Sell,Assign and Book. Also the Recap is added in this example because
the transfer is now added at Transport level.
Download: Transfers
Request headers
For every request type please add the following header parameter "anvrcode". The value is a four-digit number of the AnvrCode.
Availability
| Message Type | Example |
| Request |
AvailabilityRequest
|
| Response |
AvailabilityResponse
|
Receipt
| Message Type | Example |
| Request |
ReceiptRequest
|
| Response |
ReceiptResponse
|
Sell
| Message Type | Example |
| Request |
SellRequest
|
| Response |
SellResponse
|
Assign
| Message Type | Example |
| Request |
AssignRequest
|
| Response |
AssignResponse
|
Book
| Message Type | Example |
| Request |
BookRequest
|
| Response |
BookResponse
|
Break
| Message Type | Example |
| Request |
BreakRequest
|
| Response |
BreakResponse
|
AddProAvailability
| Message Type | Example |
| Request |
Details - AddProAvailabilityTransportRequest
|
| Response |
Details - AddProAvailabilityTransportResponse
|
AddProDetails
| Message Type | Example |
| Request |
Details (Not Implemented)
|
| Response |
Details (Not Implemented)
|
Recap
| Message Type | Example |
| Request |
RecapRequest (BookID)
|
| Response |
RecapResponse (BookID)
|
Cancellation
| Message Type | Example |
| Request |
CancellationConfirmedRequest
|
| Response |
CancellationConfirmedResponse
|
