You are here:
Update Main Product Variants for a Bundled Line Item
You can now update a main product variant in a bundled line item. This change allows shoppers to select a main product variant when adding a bundled line item to a cart. For example, a product bundle contains a belt and a T-shirt. The T-shirt is a main product with red, blue, and green variations. When the shopper adds the product bundle to a basket, the belt and T-shirt are added as bundled items, and the shopper can select a T-shirt color, one of the T-shirt variants. Previously, the API didn’t support selecting a main product variant when a main product was included in a line item bundle.
How: The API selects the T-shirt bundled item by its item ID and selects one of the main product variations by patching the corresponding product ID.
You can update these properties using (PATCH
/baskets/[basketId]/items/[itemId]) .
-
productId -
isGift - giftMessage
- Custom properties

