1. Cart commands and pipelines

Example of a static bundle line item in a Cart

Version:
Note

This topic applies to Sitecore XC version 9.0.3 and later.

Sitecore XC supports static product bundles. A static bundle is a sellable item that is composed of a specified quantity of various individual items.  The price is set at the bundle level. 

At the shopping cart level, a compound LineItem represents the bundle. This compound bundle LineItem contains multiple LineItem components (or sub-line items) representing the items that compose the bundle.  The constituent line items specify the sellable item IDs or variant IDs, each specifying the quantity required to form a bundle.

Below is an example from the Postman samples showing the compound bundle line item in a GetCart request.

{{ServiceHost}}/{{ShopsApi}}/Carts('Cart01')?$expand=Lines($expand=CartLineComponents($expand=ChildComponents)),Components
If you have suggestions for improving this article, let us know!