Update an item in a basket
When retrieving a basket, each item will show a unique key attribute, for example, "key": "911976fb354759ae0e56c1696b9325d2".
To update an item in a basket, you need to specify this key as ìtemKey.
The response will show the updated content of the basket.
Path parameters
Basket ID
itemKey
Query parameters
Adjust variant price based on the specified campaignKey. If the variant does not have a matching campaign, the default price is returned.
- It will adjust prices also for the price range resource.
- Currently, campaignKey support legacy way campaignKey=px and custom campaigns eg.- campaignKey=4d265817-dd00-4c89-b8e4-c1776e06aa14 which you can find actual keys in campaign API endpoint - /v1/campaigns
If includeItemsWithoutProductData is set to true, basket items will be included even if there is no product information available (items.product and items.variant might be empty).
This parameter allows disabling the availability check when adding an item into the wishlist or basket. This is needed to make sure that sold out products can be reserved via Click & Reserve in retail stores (where they are still available). Important – Check if this resource is available for your shop.
The with parameter can be applied to include related resources, for example, the attributes of a product can be attached using with=items.product.attributes. It is also possible to filter attributes by key with=items.product.attributes:key(plusSize) or by type with=items.product.attributes:type(material_care). In the following table, there is more information about possible includes.
| Include | Nested Includes | Available Filters |
|---|---|---|
| items.product | See available includes for products | Check the filters available for products |
| items.variant | See available includes for variants | Check the filters available for variants |
Request body
Example request
{
"customData": {
"promotionNumber": "036"
},
"promotionId": "648075340c7324fae5811cd2"
}Response
successful operation