x-session must be sent along. More about this here.
Supported methods
List of all supported methods:| Command | Endpoints | GET | PUT | POST | DELETE |
|---|---|---|---|---|---|
| Show stock level of a product | inventory/load | ||||
| Show reservation of a cart position | inventory/loadReservation |
Methods for stock
These methods can be used to retrieve stock information about products as well as details about ongoing reservations in the shopping cart. In addition, they enable availability and delivery notices and show the remaining reservation time of a position.GET inventory/load
This call can be used to retrieve the current stock status of a product (quantity, state, notices). The information can be used to display stock levels or delivery notices. Example call of the product with the product ID191-98487
Parameter overview
Body parameters
| Parameter | Type | Description |
|---|---|---|
productId | string | Required field ID of the product whose inventory should be loaded. |
Example response
GET inventory/loadReservation
This call can be used to retrieve the current reservation duration for a specific shopping cart position (remaining time and expiration time). With the help of this information, for example, expiration notices can be controlled. Example call of a reservation with the shopping cart position IDf28e67292c99759e5fb9
Parameter overview
Header parameters
| Parameter | Description |
|---|---|
x-session | Required field ID of the current session. More information: Storefront API Basics |
Body parameters
| Parameter | Type | Description |
|---|---|---|
basketItemId | string | Required field ID of the shopping cart position whose reservation is being queried. |
