PUT /checkout/v4/baskets

Changes the item quantity in the basket, for users with a session (both anonymous and authenticated).

Request URL structure:
https://api.bol.com/checkout/v4/baskets/{basketItemId}/{quantity}

Request HTTP method:
PUT

Request requires session:
X-OpenAPI-Session-ID HTTP header is required. Use the session aquired in login or GET sessions to acquire a valid sessionId.

Request parameters:

Name

Location

Data type

Required

Description

basketItemId

Path

Number

Yes

Basket item Id (not to be confused with ProductID)

quantity

Path

Number

Yes

The desired number of items in the basket. Min 0, Max 999. 0 = remove item.

Note that the maximum number of products in the basket is 999. This can be 1 product with a quantity of 999, or 2 products with quantities of 600 and 399 for example. If the number of products would be more than 999 after a POST, the system clips the number of products to add so the basket will contain 999 products.

Note that for eBooks, the system always uses a quantity of one.

 

Response:

Element

Min

Max

Description

No XML response is returned.

 

Request / Response example:

Request: https://api.bol.com/checkout/v4/baskets/218596050/2

Response HTTP status code: 200