POST /checkout/v4/baskets

Adds an item to the basket, for users with a session (both anonymous and authenticated).

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

Request HTTP method:
POST

Request HTTP Content-type:
application/x-www-form-urlencoded

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

offerId

Path

Number

Yes

The unique id for an offer.

quantity

Path

Number

Yes

The number of items to add. Min 0, Max 500.

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

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

ipAddress

Path

Text

Yes

Buyer’s IP-address

Response:

Element

Min

Max

Description

No XML response is returned.

 

Request / Response example:

Request: https://api.bol.com/checkout/v4/baskets/1004004012083781/1/10.101.10.10/?apikey={apikey}&format=json

Response HTTP status code: 200

Nieuws via e-mail

Mochten we nieuws hebben, dan stellen we je via deze weg op de hoogte.
Helemaal onderin deze pagina vind je ook ons Twitter en Google+ kanaal.