- Previous: GET /ticket-conditions with Trip Parameters
- Up: Offers API
- Next: GET /related-products
POST /shopping-carts
POST /shopping-cart
The ShoppingCarts endpoint creates a shopping cart for a specific flight product to be able to proceed to checkout.
HOW TO USE?
Use case flow can be followed by the consumer by requesting the POST method supplied as HATEOAS link in the response body of AvailableOffers & UpsellOffers.
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) |
POST
POST https://api.klm.com/travel/offers/v1/flight-products/{id}/shopping-cart
QUERY PARAMETERS
n/a (use HATEOAS link)
POST PARAMETERS
n/a
RESPONSE PARAMETERS
Level |
Name |
Type |
Multiplicity |
Description |
1 |
id |
String |
1 |
Id of the shopping cart created in createShop |
1 | resourceStoreId |
String |
1 | Resource Store Id of the shopping cart created. |
2 | _links | Object | 1 | Container for all HATEOAS links |
3 | ancillaryshops | HATEOAS link |
1 |
Represents a HATEOAS link related to the ancillary shop. Supports the use case where the anscillaries want to be proposed to the customer. |
3 | nextBestActions | HATEOAS link | 1 |
Represents a HATEOAS link related to compute what will be the next best actions for the customer |
3 | orderapi | HATEOAS link |
1 | Represents a HATEOAS link related to the orderapi. |
1 | warning | Object | 0-99 | Warning details |
2 | code | Number | 1 | Functional warning codes (1000-1999) |
2 | name | String | 1 |
Name of the warning. Ex :OFA/FUNCTIONAL/INVALID_VALUE - logger/Typology/name |
2 | description | String | 1 |
Description of the warning |
2 | errorinInputPath | String | 1 | Description of the input Path where the warning occurred |
1 | errors | Object | 0-1 |
Error details |
2 | code | Number | 1 | Functional error codes (1000-1999) Technical error codes (2000-2999) Internal error codes (3000-3999) |
2 | name | String | 1 |
Name of the error . Ex :OFA/TECHNICAL/INVALID_VALUE - logger/Typology/name |
2 | description | String | 1 | Description of the error. |
2 | errorinInputPath | String | 1 | Description of the input Path where the error occurred |
HTTP STATUS CODE
HTTP status |
Type |
200 | OK |
500 |
INTERNAL_SERVER_ERROR |
SAMPLE RESPONSE
}
{"id": "be0f8851-fcb5-4a6b-9ce1-59c0257b00a6","resourceId": "be0f8851-fcb5-4a6b-9ce1-59c0257b00a6","shopCreated": false,"_links": {"ancillaryshops": {"href": "https://api.airfranceklm.com/travel/ancillaryshops/be0f8851-fcb5-4a6b-9ce1-59c0257b00a6"},"nextBestActions": {"href": "https://api.airfranceklm.com/travel/nba/next-best-actions/be0f8851-fcb5-4a6b-9ce1-59c0257b00a6"},"orderapi": {"href": "https://api.airfranceklm.com/travel/orders?conversationStateId=be0f8851-fcb5-4a6b-9ce1-59c0257b00a6"}}}
- Previous: GET /ticket-conditions with Trip Parameters
- Up: Offers API
- Next: GET /related-products
Docs Navigation
- Air France-KLM Documentation
- Open Data
- Baggage allowance API Process flow - Pre-booking (inspiration) context
- Introduction
- Data scope
- Quick peak
- How to use
- Services overview
- Header
- GET All Allowances without Loyalty
- V1- All Allowances without Loyalty- Request
- V1- All Allowances without Loyalty- Response
- GET Base Allowances
- V1- Base Allowance - Request
- V1- Base Allowance - Response
- GET Loyalty Allowances
- V1- Loyalty Allowance - Request
- V1- Loyalty Allowance - Response
- GET Paid Options with Loyalty
- V1- GET Paid Options with Loyalty - Request
- V1- GET Paid Options with Loyalty - Response
- GET Paid Options without Loyalty
- V1- GET Paid Options without Loyalty - Request
- V1- GET Paid Options without Loyalty - Response
- GET All Allowances with Loyalty
- V1- All Allowances with Loyalty- Request
- V1- All Allowances with Loyalty- Response
- Get Started
- Offers API
- GET /reference-data v1
- GET /reference-data/deals v1
- GET /search-context v1
- POST /lowest-fare-offers v1
- GET /lowest-fare-offers v1
- POST /available-offers v1
- GET /available-offers v1
- GET /flightDetails
- POST /upsell-offers v1
- GET /upsell-offers v1
- GET /priceDetails v1
- GET /tax-breakdown
- GET /ticket-conditions
- GET /ticket-conditions with Reservation ID
- GET /ticket-conditions with Trip Parameters
- POST /shopping-carts
- GET /related-products
- POST /related-products/shopping-carts
- POST /mail-my-search
- POST /flights-availability v1
- POST /best-fare-offers v1
- POST/ bestOffers/feed
- Errors Code
- POST /available-offers/all v1
- POST /best-fare-offers/all-deals v1
- Inspire API / Amenities
- Flight Status API
- Network and Schedule API
- Baggage allowance API Process flow - Pre-booking (inspiration) context
- Metasearch API
- Cargo API
- All Other APIS