POST /related-products/shopping-carts

POST /related-products/shopping-carts

The ShoppingCarts endpoint creates a shopping cart for a specific related product (currently only Time To Think) 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 RelatedProducts.

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/opendata/flightoffers/v3/flight-products/{id}/related-products/time-to-think-product/shopping-carts

QUERY PARAMETERS

n/a (use HATEOAS link)

POST PARAMETERS

n/a

RESPONSE PARAMETERS

Name

Type

Multiplicity

Description

id

String

1

Id of the shopping cart created.

resourceStoreId String 1 Resource Store Id of the shopping cart created.

ERROR CODES

HTTP status

Type

500

INTERNAL_SERVER_ERROR

SAMPLE RESPONSE

{

    "resourceStoreId": "bd2d991c-3d3e-4291-a9b6-3a8cdbcb18fd",

    "id": "bd2d991c-3d3e-4291-a9b6-3a8cdbcb18fd"

}

Docs Navigation