- Previous: GET /ticket-conditions with Reservation ID
- Up: Offers API
- Next: GET /search-context v1
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/offers/v1/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)
EXAMPLES :
{{httpType:}}//{{masheryHost}}/travel/offers/v1/ticket-conditionsticket-conditions/AMS:20151203@1620:KL1234:Y:YSRNL>CDG:20151203@2025:AF5432:Y>BCN-BCN:20151210@1245:KL8628:Y:YSRNL >AMS
{{httpType:}}//{{masheryHost}}/travel/offers/v1/ticket-conditions/YCD=1+GVA:20181219@1030:AF1643:R:RFFSW>CDG-CDG:20181221@1830:AF1042:L:L3FFSW>GVA
QUERY PARAMETERS
Level | Name | Type | Multiplicity | Description |
1 | discountCode | String | 0-1 | Code for IDC discount. |
1 | ticketedDate | String | 0-1 | Date that the reservation was made. |
1 | bookingFlow | String | 0-1 | booking Flow (LEISURE, CORPORATE, REWARD) |
1 | paxInfos | Object | 0..n | pax type informations - if empty 1 ADT is used |
2 | paxType | String | 1 | passennger type : ADT, CHD, INF, YCD, YTH, C14 |
2 | number of pax | Integer | 1 | number of passengers with this pax type |
RESPONSE PARAMETERS
See GET /Ticket-conditions.
- Previous: GET /ticket-conditions with Reservation ID
- Up: Offers API
- Next: GET /search-context v1
Docs Navigation
- Air France-KLM Documentation
- Open Data
- Get Started
- Offers API
- GET /reference-data v1
- POST /lowest-fare-offers v1
- GET /lowest-fare-offers v1
- POST /available-offers v1
- GET /available-offers v1
- GET /ticket-conditions
- GET /tax-breakdown
- POST /upsell-offers v1
- GET /upsell-offers v1
- POST /shopping-carts
- GET /related-products
- POST /related-products/shopping-carts
- GET /ticket-conditions with Reservation ID
- GET /ticket-conditions with Trip Parameters
- GET /search-context v1
- POST /trip-summary
- Errors Code
- Flight Offer API
- GET /reference-data v2
- GET /reference-data v3
- POST /lowest-fare-offers v2
- GET /lowest-fare-offers v2
- POST /lowest-fare-offers v3
- GET /lowest-fare-offers v3
- POST /available-offers v2
- GET /available-offers v2
- POST /available-offers v3
- GET /available-offers v3
- GET /ticket-conditions
- GET /tax-breakdown
- GET /upsell-offers v2
- POST /upsell-offers v2
- GET /upsell-offers v3
- POST /upsell-offers v3
- POST /shopping-carts
- GET /related-products
- POST /related-products/shopping-carts
- GET /ticket-conditions with Reservation ID
- GET /ticket-conditions with Trip Parameters
- GET /search-context v3
- POST /direct-shopping
- Inspire API / Amenities
- Flight Status API
- Network and Schedule API
- Metasearch API
- Cargo API
- All Other APIS