GET /ticket-conditions with Trip Parameters

GET /ticket-conditions with Trip Parameters

The TicketConditions endpoint provides the ticket conditions that match the provided query parameters. It includes the number of FB miles that can be earned.

How to use?

Use case flow can be followed by the consumer by requesting the GET method supplied as HATEOAS link in the response body of Order API.

Headers to use for requests:

Parameter Value
Authorization Bearer {{token}}
Content-Type application/json
Accept application/hal+json; charset=utf8
Accept-Language {{language}}-{{country}}
AFKL-TRAVEL-Host KL or AF
AFKL-TRAVEL-Country Country (overrides Accept-Language country)

GET

GET https://api.klm.com/opendata/flightoffers/v3/ticket-conditions/{tripIdentifier*}

* Trip identifier is build according to these rules:
-   =  separator for Connections
>  =  separator for Segments
:  =   separator for properties of Segment (specified at departure airport)  @ order is departureDateTime (yyyymmdd@hhmm local time), flightnumber (AA####), selling/booking class (A), farebase (AAAAAAAA)

https://api.klm.com/travel/flightoffers/ticket-conditions/AMS:20151203@1620:KL1234:Y:YSRNL>CDG:20151203@2025:AF5432:Y>BCN-BCN:20151210@1245:KL8628:Y:YSRNL>AMS 

QUERY PARAMETERS

Name Type Multiplicity Description
discountCode String 0-1 Code for IDC discount.
ticketedDate String 0-1 Date that the reservation was made.

RESPONSE PARAMETERS

See FlightProducts - TicketConditions.

 


Docs Navigation