younifyd
Menu

Update an item

Update an item

PATCH/v1/baskets/{basketId}/items/{itemKey}

Use it in a workflow

  1. Add a step and choose the SCAYLE Storefront connector.
  2. Pick the Update an item action (under baskets).
  3. Fill in the fields below, then reference the result from later steps as {{updateAnItem.response.data}}.

Request

Path parameters

basketIdstringrequired

The ID of the Basket

itemKeystringrequired

The Key of the Item to be sent to the request

Query parameters

campaignKeystring

Adjust prices based on the specified `campaignKey`. If provided campaign doesn't exist, the default price is returned. Please note, that campaign prices are stored in advance and available earlier than the campaign starts.

Default null

pricePromotionKeystring

Adjust product and variant price based on the specified `pricePromotionKey`. If the variant does not have a matching price promotion, the default price is returned. This does not apply to the returned basket price. It only applies to the product and variant information under each basket item.

includeItemsWithoutProductDataboolean

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).

skipAvailabilityCheckboolean

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.

witharray<string>

Include related resources, for example, the attributes of a product can be included using `with=items.product.attributes`. The following table describes all the possible parameters that can be used: Parameter | Description ------------ | ------------- `applicablePromotions` | Include promotions that can be applied to the basket. `applicablePromotions.customData` | Include custom data of applicable promotions. `items.customData` | Include custom data of basket items. `items.product.attributes` | Include attributes of the product. `items.product.advancedAttributes` | Include advanced attributes of the product. `items.product.images.attributes` | Include attributes of each product image. `items.product.images.customData` | Include custom data of each product image. `items.product.videos` | Include videos of the product. `items.product.videos.attributes` | Include attributes of each product video. `items.product.videos.customData` | Include custom data of each product video. `items.product.definingAttributes` | Include defining attributes of the product. `items.product.categories` | Include categories of the product. `items.product.categories.countryLevelCustomData` | Include country-level custom data of the category. `items.product.categories.shopLevelCustomData` | Include shop-level custom data of the category. `items.product.customData` | Include custom data of the product. `items.product.siblings` | Include sibling products. `items.product.siblings.attributes` | Include attributes of sibling products. `items.product.siblings.advancedAttributes` | Include advanced attributes of sibling products. `items.product.siblings.customData` | Include custom data of sibling products. `items.product.siblings.categories.countryLevelCustomData` | Include country-level custom data of sibling product categories. `items.product.siblings.categories.shopLevelCustomData` | Include shop-level custom data of sibling product categories. `items.product.siblings.variants.attributes` | Include attributes of sibling product variants. `items.product.siblings.variants.advancedAttributes` | Include advanced attributes of sibling product variants. `items.product.siblings.variants.customData` | Include custom data of sibling product variants. `items.product.siblings.variants.price.customData` | Include custom data of sibling product variant prices. `items.product.siblings.priceRange.customData` | Include custom data of the sibling product price range. `items.product.siblings.reductionRange.customData` | Include custom data of the sibling product reduction range. `items.product.siblings.variants.merchant` | Include merchant of sibling product variants. `items.product.siblings.variants.merchant.customData` | Include merchant custom data of sibling product variants. `items.product.siblings.images.attributes` | Include attributes of sibling product images. `items.product.siblings.images.customData` | Include custom data of sibling product images. `items.product.searchCategoryIds` | Include the list of IDs of all categories associated with the product, both hidden and visible. `items.product.baseCategories` | Include base categories of the product. (deprecated) `items.product.masterCategories` | Include master categories of the product. `items.product.priceRange` | Include information about the price range of the product. `items.product.priceRange.customData` | Include custom data of the item product price range. `items.product.reductionRange` | Include information about the reduction range of the price. `items.product.reductionRange.customData` | Include custom data of the item product reduction range. `items.product.lowestPriorPrice` | Include the lower prior price of the product. `items.product.variants` | Include item product variants. `items.product.variants.attributes` | Include item product variants attributes. `items.product.variants.advancedAttributes` | Include item product variants advanced attributes `items.product.variants.customData` | Include custom data of item product variants. `items.product.variants.price.customData` | Include custom data of item product variant prices. `items.product.variants.lowestPriorPrice` | Include item product variants lowestPriorPrice `items.product.variants.merchant` | Include the information about the merchant selling the product variant. `items.product.variants.merchant.customData` | Include custom data of the product variant `items.product.variants.relatedVariants` | Include the resolved components of a composite product variant. Always an array once requested, even if the variant isn't composite. `items.product.variants.relatedVariants.attributes` | Include attributes of related-variant components. `items.product.variants.relatedVariants.advancedAttributes` | Include advanced attributes of related-variant components. `items.product.variants.relatedVariants.lowestPriorPrice` | Include the lowest prior price of related-variant components. `items.product.variants.relatedVariants.customData` | Include custom data of related-variant components. `items.product.variants.relatedVariants.price.customData` | Include custom data of related-variant component prices. `items.promotion.customData` | Include custom data of item promotions. `items.variant.lowestPriorPrice` | Include the lower prior price of the item variant. `items.variant.attributes` | Include attributes of the item variant. `items.variant.advancedAttributes` | Include advanced attributes of the item variant. `items.variant.customData` | Include custom data of the item variant. `items.variant.price.customData` | Include custom data of the item variant price. `items.variant.merchant` | Include the information about the merchant selling the item variant. `items.variant.merchant.customData` | Include custom data of the item variant merchant. `items.variant.relatedVariants` | Include the resolved components of a composite item variant. Always an array once requested, even if the variant isn't composite. `items.variant.relatedVariants.attributes` | Include attributes of related-variant components. `items.variant.relatedVariants.advancedAttributes` | Include advanced attributes of related-variant components. `items.variant.relatedVariants.lowestPriorPrice` | Include the lowest prior price of related-variant components. `items.variant.relatedVariants.customData` | Include custom data of related-variant components. `items.variant.relatedVariants.price.customData` | Include custom data of related-variant component prices. It is also possible to filter some parameters. When supported, multiple filter values can be specified by separating them with a pipe. Filter | Description ------------ | ------------- `applicablePromotions.customData:key()` | Include custom data of applicable promotions with empty object. `applicablePromotions.customData:key(keyA\|...)` | Include custom data of applicable promotions with only specified keys. `items.customData:key()` | Include custom data of basket items with empty object. `items.customData:key(keyA\|...)` | Include custom data of basket items with only specified keys. `items.product.attributes:key(keyA\|...)` | Return only the attributes matching the specified names, e.g., `with=items.product.attributes:key(ean)`. `items.product.attributes:exclude(keyA\|...)` | Return all attributes except the specified names, e.g., `with=items.product.attributes:exclude(brand)`. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.product.attributes:type(typeA\|...)` | Return only the attributes matching the specified types, e.g., `with=items.product.attributes:type(fit_size)`. `items.product.advancedAttributes:key(keyA\|...)` | Return only the advanced attributes matching the specified names, e.g., `with=items.product.advancedAttributes:key(productName)`. `items.product.advancedAttributes:exclude(keyA\|...)` | Return all advanced attributes except the specified names, e.g., `with=items.product.advancedAttributes:exclude(description)`. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.product.advancedAttributes:type(typeA\|...)` | Return only the advanced attributes matching the specified types, e.g., `with=items.product.advancedAttributes:type(material_care)`. `items.product.categories:hidden(true)` | Return also the hidden categories. `items.product.categories.categoryProperties:name(keyA\|...)` | Return only the category properties matching, e.g., `with=items.product.categories.categoryProperties:name(gender_female)`. `items.product.categories.countryLevelCustomData:key()` | Include country-level custom data of the category with empty object. `items.product.categories.countryLevelCustomData:key(keyA\|...)` | Include country-level custom data of the category with only specified keys. `items.product.categories.shopLevelCustomData:key()` | Include shop-level custom data of the category with empty object. `items.product.categories.shopLevelCustomData:key(keyA\|...)` | Include shop-level custom data of the category with only specified keys. `items.product.customData:key()` | Include custom data of the product with empty object. `items.product.customData:key(keyA\|...)` | Include custom data of the product with only specified keys. `items.product.images.attributes:key(keyA\|...)` | Return only the image attributes matching the specified names, e.g., `with=items.product.images.attributes:key(plusSize)`. `items.product.images.attributes:exclude(keyA\|...)` | Return all image attributes except the specified names, e.g., `with=items.product.images.attributes:exclude(brand)`. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.product.images.attributes:type(typeA\|...)` | Return only the image attributes matching the specified types, e.g., `with=items.product.images.attributes:type(material_care)`. `items.product.images.customData` | Include custom data of each product image. `items.product.images.customData:key()` | Include custom data of each product image with empty object. `items.product.images.customData:key(keyA\|...)` | Include custom data of each product image with only specified keys. `items.product.videos.attributes:key(keyA\|...)` | Return only the video attributes matching the specified names, e.g., `with=items.product.videos.attributes:key(plusSize)`. `items.product.videos.attributes:exclude(keyA\|...)` | Return all video attributes except the specified names, e.g., `with=items.product.videos.attributes:exclude(brand)`. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.product.videos.attributes:type(typeA\|...)` | Return only the video attributes matching the specified types, e.g., `with=items.product.videos.attributes:type(material_care)`. `items.product.siblings.attributes:key(keyA\|...)` | Return only the sibling product attributes matching the specified names, e.g., `with=items.product.siblings.attributes:key(ean)`. `items.product.siblings.attributes:exclude(keyA\|...)` | Return all sibling product attributes except the specified names, e.g., `with=items.product.siblings.attributes:exclude(brand)`. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.product.siblings.attributes:type(typeA\|...)` | Return only the sibling product attributes matching the specified types, e.g., `with=items.product.siblings.attributes:type(fit_size)`. `items.product.siblings.advancedAttributes:key(keyA\|...)` | Return only the sibling product advanced attributes matching the specified names, e.g., `with=items.product.siblings.advancedAttributes:key(productName)`. `items.product.siblings.advancedAttributes:exclude(keyA\|...)` | Return all sibling product advanced attributes except the specified names, e.g., `with=items.product.siblings.advancedAttributes:exclude(description)`. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.product.siblings.advancedAttributes:type(typeA\|...)` | Return only the sibling product advanced attributes matching the specified types, e.g., `with=items.product.siblings.advancedAttributes:type(material_care)`. `items.product.siblings.customData:key()` | Include custom data of sibling products with empty object. `items.product.siblings.customData:key(keyA\|...)` | Include custom data of sibling products with only specified keys. `items.product.siblings.categories.countryLevelCustomData:key()` | Include country-level custom data of sibling product categories with empty object. `items.product.siblings.categories.countryLevelCustomData:key(keyA\|...)` | Include country-level custom data of sibling product categories with only specified keys. `items.product.siblings.categories.shopLevelCustomData:key()` | Include shop-level custom data of sibling product categories with empty object. `items.product.siblings.categories.shopLevelCustomData:key(keyA\|...)` | Include shop-level custom data of sibling product categories with only specified keys. `items.product.siblings.variants.attributes:key(keyA\|...)` | Return only sibling product variant attributes matching the specified names, e.g., `with=items.product.siblings.variants.attributes:key(ean)`. `items.product.siblings.variants.attributes:exclude(keyA\|...)` | Return all sibling product variant attributes except the specified names, e.g., `with=items.product.siblings.variants.attributes:exclude(brand)`. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.product.siblings.variants.attributes:type(typeA\|...)` | Return only sibling product variant attributes matching the specified types, e.g., `with=items.product.siblings.variants.attributes:type(fit_size)`. `items.product.siblings.variants.advancedAttributes:key(keyA\|...)` | Return only sibling product variant advanced attributes matching the specified names, e.g., `with=items.product.siblings.variants.advancedAttributes:key(productName)`. `items.product.siblings.variants.advancedAttributes:exclude(keyA\|...)` | Return all sibling product variant advanced attributes except the specified names, e.g., `with=items.product.siblings.variants.advancedAttributes:exclude(description)`. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.product.siblings.variants.advancedAttributes:type(typeA\|...)` | Return only sibling product variant advanced attributes matching the specified types, e.g., `with=items.product.siblings.variants.advancedAttributes:type(material_care)`. `items.product.siblings.variants.customData:key()` | Include custom data of sibling product variants with empty object. `items.product.siblings.variants.customData:key(keyA\|...)` | Include custom data of sibling product variants with only specified keys. `items.product.siblings.variants.price.customData:key()` | Include custom data of sibling product variant prices with empty object. `items.product.siblings.variants.price.customData:key(keyA\|...)` | Include custom data of sibling product variant prices with only specified keys. `items.product.siblings.priceRange.customData:key()` | Include custom data of the sibling product price range with empty object. `items.product.siblings.priceRange.customData:key(keyA\|...)` | Include custom data of the sibling product price range with only specified keys. `items.product.siblings.reductionRange.customData:key()` | Include custom data of the sibling product reduction range with empty object. `items.product.siblings.reductionRange.customData:key(keyA\|...)` | Include custom data of the sibling product reduction range with only specified keys. `items.product.siblings.variants.merchant.customData:key()` | Include merchant custom data of sibling product variants with empty object. `items.product.siblings.variants.merchant.customData:key(keyA\|...)` | Include merchant custom data of sibling product variants with only specified keys. `items.product.siblings.images.attributes:key(keyA\|...)` | Return only the sibling product image attributes matching the specified names, e.g., `with=items.product.siblings.images.attributes:key(plusSize)`. `items.product.siblings.images.attributes:exclude(keyA\|...)` | Return all sibling product image attributes except the specified names, e.g., `with=items.product.siblings.images.attributes:exclude(brand)`. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.product.siblings.images.attributes:type(typeA\|...)` | Return only the sibling product image attributes matching the specified types, e.g., `with=items.product.siblings.images.attributes:type(material_care)`. `items.product.siblings.images.customData:key()` | Include custom data of sibling product images with empty object. `items.product.siblings.images.customData:key(keyA\|...)` | Include custom data of sibling product images with only specified keys. `items.product.variants.attributes:key(keyA\|...)` | Return only the attributes matching the specified names, e.g., `with=items.product.variants.attributes:key(ean)`. `items.product.variants.attributes:exclude(keyA\|...)` | Return all attributes except the specified names, e.g., `with=items.product.variants.attributes:exclude(brand)`. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.product.variants.attributes:type(typeA\|...)` | Return only the attributes matching the specified types, e.g., `with=items.product.variants.attributes:type(fit_size)`. `items.product.variants.advancedAttributes:key(keyA\|...)` | Return only the advanced attributes matching the specified names, e.g., `with=items.product.variants.advancedAttributes:key(productName)`. `items.product.variants.advancedAttributes:exclude(keyA\|...)` | Return all advanced attributes except the specified names, e.g., `with=items.product.variants.advancedAttributes:exclude(description)`. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.product.variants.advancedAttributes:type(typeA\|...)` | Return only the advanced attributes matching the specified types, e.g., `with=items.product.variants.advancedAttributes:type(material_care)`. `items.product.variants.customData:key()` | Include custom data of item product variants with empty object. `items.product.variants.customData:key(keyA\|...)` | Include custom data of item product variants with only specified keys. `items.product.variants.price.customData:key()` | Include custom data of item product variant prices with empty object. `items.product.variants.price.customData:key(keyA\|...)` | Include custom data of item product variant prices with only specified keys. `items.product.variants.relatedVariants.attributes:key(keyA\|...)` | Return only related-variant component attributes matching the specified names. `items.product.variants.relatedVariants.attributes:exclude(keyA\|...)` | Return all related-variant component attributes except the specified names. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.product.variants.relatedVariants.attributes:type(typeA\|...)` | Return only related-variant component attributes matching the specified types. `items.product.variants.relatedVariants.advancedAttributes:key(keyA\|...)` | Return only related-variant component advanced attributes matching the specified names. `items.product.variants.relatedVariants.advancedAttributes:exclude(keyA\|...)` | Return all related-variant component advanced attributes except the specified names. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.product.variants.relatedVariants.advancedAttributes:type(typeA\|...)` | Return only related-variant component advanced attributes matching the specified types. `items.product.variants.relatedVariants.customData:key()` | Include custom data of related-variant components with empty object. `items.product.variants.relatedVariants.customData:key(keyA\|...)` | Include custom data of related-variant components with only specified keys. `items.product.variants.relatedVariants.price.customData:key()` | Include custom data of related-variant component prices with empty object. `items.product.variants.relatedVariants.price.customData:key(keyA\|...)` | Include custom data of related-variant component prices with only specified keys. `items.product.priceRange.customData:key()` | Include custom data of the item product price range with empty object. `items.product.priceRange.customData:key(keyA\|...)` | Include custom data of the item product price range with only specified keys. `items.product.reductionRange.customData:key()` | Include custom data of the item product reduction range with empty object. `items.product.reductionRange.customData:key(keyA\|...)` | Include custom data of the item product reduction range with only specified keys. `items.product.variants.merchant.customData` | Include custom data of the variant merchant | `key` `items.product.variants.merchant.customData:key()` | Include the merchant custom data as an empty object | `items.product.variants.merchant.customData:key(keyA\|...)` | Include the merchant custom data, filtered by the provided key(s) | `items.promotion.customData:key()` | Include custom data of item promotions with empty object. `items.promotion.customData:key(keyA\|...)` | Include custom data of item promotions with only specified keys. `items.variant.attributes:key(keyA\|...)` | Return only the variant's attributes matching the specified names, e.g., `with=items.variant.attributes:key(size)`. `items.variant.attributes:exclude(keyA\|...)` | Return all the variant's attributes except the specified names, e.g., `with=items.variant.attributes:exclude(brand)`. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.variant.attributes:type(typeA\|...)` | Return only the variant's attributes matching the specified types, e.g., `with=items.variant.attributes:type(size)`. `items.variant.advancedAttributes:key(keyA\|...)` | Return only the variant's advanced attributes matching the specified names, e.g., `with=items.variant.advancedAttributes:key(productName)`. `items.variant.advancedAttributes:exclude(keyA\|...)` | Return all the variant's advanced attributes except the specified names, e.g., `with=items.variant.advancedAttributes:exclude(description)`. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.variant.advancedAttributes:type(typeA\|...)` | Return only the variant's advanced attributes matching the specified types, e.g., `with=items.variant.advancedAttributes:type(material_care)`. `items.variant.customData:key()` | Include custom data of the item variant with empty object. `items.variant.customData:key(keyA\|...)` | Include custom data of the item variant with only specified keys. `items.variant.price.customData:key()` | Include custom data of the item variant price with empty object. `items.variant.price.customData:key(keyA\|...)` | Include custom data of the item variant price with only specified keys. `items.variant.merchant.customData:key()` | Include custom data of the item variant merchant with empty object. `items.variant.merchant.customData:key(keyA\|...)` | Include custom data of the item variant merchant with only specified keys. `items.variant.relatedVariants.attributes:key(keyA\|...)` | Return only related-variant component attributes matching the specified names. `items.variant.relatedVariants.attributes:exclude(keyA\|...)` | Return all related-variant component attributes except the specified names. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.variant.relatedVariants.attributes:type(typeA\|...)` | Return only related-variant component attributes matching the specified types. `items.variant.relatedVariants.advancedAttributes:key(keyA\|...)` | Return only related-variant component advanced attributes matching the specified names. `items.variant.relatedVariants.advancedAttributes:exclude(keyA\|...)` | Return all related-variant component advanced attributes except the specified names. Combined with `key(...)`/`type(...)` the excluded keys are subtracted from the selection. `items.variant.relatedVariants.advancedAttributes:type(typeA\|...)` | Return only related-variant component advanced attributes matching the specified types. `items.variant.relatedVariants.customData:key()` | Include custom data of related-variant components with empty object. `items.variant.relatedVariants.customData:key(keyA\|...)` | Include custom data of related-variant components with only specified keys. `items.variant.relatedVariants.price.customData:key()` | Include custom data of related-variant component prices with empty object. `items.variant.relatedVariants.price.customData:key(keyA\|...)` | Include custom data of related-variant component prices with only specified keys.

shopIdinteger

The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique `shopId`. **Priority:** `shopId` (or the `X-Shop-Id` header) takes precedence over all other shop identification parameters. When `shopId` is present, `shopKey`, `countryCode`, and `locale` are ignored entirely. **Alternative:** If neither `shopId` nor `X-Shop-Id` is provided, you must supply all three of `shopKey`, `countryCode`, and `locale` together to identify the shop.

shopKeystring

The unique string key identifying the shop (e.g. `sa`, `de`). **Must be provided together with `countryCode` and `locale`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

countryCodestring

The ISO 3166-1 alpha-2 country code of the shop (e.g. `DE`, `AT`). Automatically normalised to uppercase. **Must be provided together with `shopKey` and `locale`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

localestring

The locale of the shop (e.g. `en_GB`, `de_DE`). Used to validate that the resolved shop's locale matches the requested locale. **Must be provided together with `shopKey` and `countryCode`** as a query-parameter alternative to `shopId`. All three parameters are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `shopId` or the `X-Shop-Id` header is present.

Headers

X-Shop-Idinteger

The numeric ID of the shop to resolve the request against. Every shop in a multi-shop setup has a unique shop ID. **Priority:** `X-Shop-Id` (or the `shopId` query parameter) takes precedence over all other shop identification parameters. When this header is present, `X-Shop-Key`, `X-Country-Code`, and `X-Locale` are ignored entirely. **Alternative:** If neither `X-Shop-Id` nor `shopId` is provided, you must supply all three of `X-Shop-Key`, `X-Country-Code`, and `X-Locale` together to identify the shop.

Default null

X-Shop-Keystring

The unique string key identifying the shop (e.g. `sa`, `de`). **Must be provided together with `X-Country-Code` and `X-Locale`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

X-Country-Codestring

The ISO 3166-1 alpha-2 country code of the shop (e.g. `DE`, `AT`). Automatically normalised to uppercase. **Must be provided together with `X-Shop-Key` and `X-Locale`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

X-Localestring

The locale of the shop (e.g. `en_GB`, `de_DE`). Used to validate that the resolved shop's locale matches the requested locale. **Must be provided together with `X-Shop-Key` and `X-Country-Code`** as a header-based alternative to `X-Shop-Id`. All three headers are mandatory when using this identification method — omitting any one of them results in a validation error. Ignored when `X-Shop-Id` or the `shopId` query parameter is present.

X-Order-Custom-Datastring

Base64-encoded JSON object with order-level custom data. Promotion conditions can read it as `payload.customData`, so promotions that depend on order custom data already apply in the basket. The data is only used to evaluate promotions for the current request and is not stored on the basket. The decoded value must be a JSON object, otherwise the request fails with `400 Bad Request`. For example, `{"channel":"app"}` is sent as `eyJjaGFubmVsIjoiYXBwIn0=`.

X-Customer-Tokenstring

A JWT token containing the customer ID used to validate promotions in the promotion engine.

X-Access-Tokenstringrequired

Access token for accessing protected endpoints

Request body

Enter the body as JSON in the step's Body field.

quantityinteger

The updated quantity for the basket item.

promotionIdstring

Updates the promotion id of the item. If the 'promotionId' property is not sent in the request no update is performed on the field. if the value is null then any previous applied promotion will be removed from the item.

promotionCodestring

Updates the promotion code of the item. If the 'promotionCode' property is not sent in the request no update is performed on the field. if the value is null then any previous applied promotion will be removed from the item. 'promotionId' is required to use the 'promotionCode'

promotionsarray<object>

An optional list of promotions to be applied to the item. Any promotion currently applied but not included in the request will be removed. To prevent unintended removal, ensure to always send the complete list of active promotions for the item. _Note: This field is mutually exclusive with `promotionId` and `promotionCode`._

idstringrequired

The unique identifier of the promotion.

codestring | null

The code that activates the promotion, just like a voucher or a coupon code.

customDataobject

Custom Data allows to store additional data on each basket item. The information is persisted during the order flow and will be accessible after SCAYLE's Checkout process on each order item.

pricePromotionKeystring

A price promotion key which will be used for this item during the Checkout process

displayDataobject

Display Data allows to show additional information next to each item during the SCAYLE Checkout process. The properties will remain attached to the basket item during the checkout and order process.

metaobject3 fields
nameobject3 fields
identifierobject3 fields
attribute-1object3 fields
attribute-2object3 fields
attribute-3object3 fields
itemGroupobject

An item group allows to define multiple basket items into a unit.

idstringrequired

A unique identifier for the item group which should be used for all basket items of the item group. Any string based identifier can be chosen and it only has to be unique within the current basket.

isMainItembooleanrequired

Whether or not the current item is the main item within the item group. This property can be used for display purposes to only show the main item within the Checkout.

isRequiredbooleanrequired

Whether or not the item is required to be present for the item group. When you delete an item from your basket which is required for the item group, all other items assigned to the item group will also be deleted.

json
{
  "quantity": 0,
  "promotionId": "string",
  "promotionCode": "string",
  "promotions": [
    {
      "id": "string",
      "code": "string"
    }
  ],
  "customData": {
    "pricePromotionKey": "string"
  },
  "displayData": {
    "meta": {
      "key": "size",
      "label": "Size",
      "value": "M"
    },
    "name": {
      "key": "size",
      "label": "Size",
      "value": "M"
    },
    "identifier": {
      "key": "size",
      "label": "Size",
      "value": "M"
    },
    "attribute-1": {
      "key": "size",
      "label": "Size",
      "value": "M"
    },
    "attribute-2": {
      "key": "size",
      "label": "Size",
      "value": "M"
    },
    "attribute-3": {
      "key": "size",
      "label": "Size",
      "value": "M"
    }
  },
  "itemGroup": {
    "id": "string",
    "isMainItem": false,
    "isRequired": false
  }
}

Response

Returns 200 with an object. Read it in later steps with {{updateAnItem.response.data.<field>}}.

keystring

A unique key identifying the basket.

itemsarray<object>

List of products in the basket

keystringrequired

A unique key for the basket item which can be used for updating or deleting it.

packageIdintegerrequired

The package in which the basket item will be send. Corresponds to a package id in the `packages` list of a `Basket`.

quantityintegerrequired

The quantity of the item.

availableQuantityintegerrequired

The total available quantity for the variant which can be added to the basket.

statusstringrequired

The status of the basket item, either it is 'available' which means in stock or it's unavailable meaning it's out of stock.

One ofavailableunavailable

variantobjectrequired15 fields
productobjectrequired27 fields
priceobjectrequired2 fields
lowestPriorPriceobjectrequired2 fields

Information about the lowest price in the past 30 days.

promotionIdstringrequired

The promotion which will be applied to the item.

promotionCodestringrequired

The promotion code applied to the item

itemGroupobjectrequired3 fields

An item group allows to define multiple basket items into a unit.

customDataobjectrequired1 fields

Custom Data allows to store additional data on each basket item. The information is persisted during the order flow and will be accessible after SCAYLE's Checkout process on each order item.

displayDataobjectrequired6 fields

Display Data allows to show additional information next to each item during the SCAYLE Checkout process. The properties will remain attached to the basket item during the checkout and order process.

deliveryForecastoneOf
promotiononeOf
promotionsarray<any>required

List of time-limited promotions that offers discounts or benefits based on specific eligibility criteria.

costobject

Aggregate price used by `basket.cost` and basket item `price.total` / `price.unit`. Mirrors the `Price` schema, but does not expose `customData` as these values are derived aggregates with no direct price-level custom data, nor the `totalAppliedReductions` / `reductionsRelativeTo` summary fields.

appliedReductionsarray<object>required3 fields
currencyCodestringrequired

The currency of the price.

referenceobject4 fields
taxobjectrequired1 fields
withoutTaxintegerrequired
withTaxintegerrequired
recommendedRetailPriceintegerrequired
packagesarray<object>

List of packages in the basket

idintegerrequired
carrierKeystringrequired

The carrier key which will deliver the package

deliveryDateobjectrequired2 fields

The estimated delivery date for the package

applicablePromotionsarray<object>

List of applicable promotions

itemIdstringrequired

The Basket Item ID to which the promotion should be applied. This can be null in case of a `bux_x_get_y` effect where the free item is not in the basket yet.

promotionobjectrequired10 fields

A time-limited promotion that offers discounts or benefits based on specific eligibility criteria.

basketOutdatedboolean

Whether the basket could not be refreshed and may show outdated data.

json
{
  "key": "string",
  "items": [
    {
      "key": "string",
      "packageId": 0,
      "quantity": 0,
      "availableQuantity": 0,
      "status": "available",
      "variant": {
        "id": 987654,
        "price": {
          "appliedReductions": [
            {
              "amount": null,
              "category": null,
              "type": null
            }
          ],
          "totalAppliedReductions": {
            "amount": {
              "absoluteWithTax": null,
              "relative": null
            }
          },
          "reductionsRelativeTo": "beforeSaleWithTax",
          "currencyCode": "string",
          "tax": {
            "vat": {
              "amount": null,
              "rate": null
            }
          },
          "withoutTax": 0,
          "withTax": 0,
          "beforeSaleWithTax": 5999,
          "recommendedRetailPrice": 0,
          "reference": {
            "size": 0,
            "unit": "string",
            "withoutTax": 0,
            "withTax": 0
          },
          "customData": {}
        },
        "referenceKey": 563843898,
        "firstLiveAt": "2023-01-26T09:30:15Z",
        "stock": {
          "supplierId": 0,
          "warehouseId": 0,
          "quantity": 0,
          "isSellableWithoutStock": false,
          "expectedAvailabilityAt": "2023-01-26"
        },
        "customData": {},
        "createdAt": "2023-01-26T09:30:15Z",
        "updatedAt": "2023-01-26T09:30:15Z",
        "isComposite": false,
        "advancedAttributes": {},
        "appliedPricePromotionKey": "promotion_key_123",
        "attributes": {}
      },
      "product": {
        "id": 0,
        "images": [
          {
            "attributes": {},
            "customData": {},
            "hash": "string",
            "name": "string",
            "url": "string"
          }
        ],
        "customData": {},
        "isActive": false,
        "isNew": false,
        "isSoldOut": false,
        "masterKey": "480306626-1",
        "firstLiveAt": "2023-01-26T09:30:15Z",
        "referenceKey": "abc123",
        "createdAt": "2023-01-26T09:30:15Z",
        "updatedAt": "2023-01-26T09:30:15Z",
        "indexedAt": "2023-01-26T09:30:15Z"
      },
      "price": {
        "total": {
          "appliedReductions": [
            {
              "amount": null,
              "category": null,
              "type": null
            }
          ],
          "currencyCode": "string",
          "tax": {
            "vat": {
              "amount": null,
              "rate": null
            }
          },
          "withoutTax": 0,
          "withTax": 0,
          "recommendedRetailPrice": 0,
          "reference": {
            "size": 0,
            "unit": "string",
            "withoutTax": 0,
            "withTax": 0
          }
        },
        "unit": {
          "appliedReductions": [
            {
              "amount": null,
              "category": null,
              "type": null
            }
          ],
          "currencyCode": "string",
          "tax": {
            "vat": {
              "amount": null,
              "rate": null
            }
          },
          "withoutTax": 0,
          "withTax": 0,
          "recommendedRetailPrice": 0,
          "reference": {
            "size": 0,
            "unit": "string",
            "withoutTax": 0,
            "withTax": 0
          }
        }
      },
      "lowestPriorPrice": {
        "withTax": 0,
        "relativeDifferenceToPrice": 0
      },
      "promotionId": "string",
      "promotionCode": "string",
      "itemGroup": {
        "id": "string",
        "isMainItem": false,
        "isRequired": false
      }
    }
  ],
  "cost": {
    "appliedReductions": [
      {
        "amount": {
          "absoluteWithTax": 0,
          "relative": 0
        },
        "category": "campaign",
        "type": "relative"
      }
    ],
    "currencyCode": "string",
    "tax": {
      "vat": {
        "amount": 0,
        "rate": 0
      }
    },
    "withoutTax": 0,
    "withTax": 0,
    "recommendedRetailPrice": 0,
    "reference": {
      "size": 0,
      "unit": "string",
      "withoutTax": 0,
      "withTax": 0
    }
  },
  "packages": [
    {
      "id": 0,
      "carrierKey": "string",
      "deliveryDate": {
        "min": "2018-02-02",
        "max": "2018-02-05"
      }
    }
  ],
  "applicablePromotions": [
    {
      "itemId": "string",
      "promotion": {
        "id": "string",
        "name": "string",
        "displayName": "string",
        "isActive": false,
        "priority": 0,
        "schedule": {
          "from": "2023-01-26T09:30:15Z",
          "to": "2023-01-26T09:30:15Z"
        },
        "effect": {},
        "conditions": [
          {
            "key": "string",
            "level": "global",
            "condition": "string"
          }
        ],
        "tiers": [
          {
            "id": 0,
            "name": "string",
            "mov": 0,
            "effect": {
              "additionalData": null
            }
          }
        ],
        "customData": {
          "headline": "string",
          "subline": "string",
          "link": "string",
          "hideCountDown": false,
          "highlightProductCards": false,
          "condition": "string",
          "color": {
            "background": "string",
            "text": "string"
          },
          "product": {
            "badgeLabel": "string",
            "attributeId": 0
          }
        }
      }
    }
  ],
  "basketOutdated": false
}

Need more? See the SCAYLE Storefront guide for connection setup and behaviour shared by every action.