Example of a bundle line item in a Cart
Sitecore XC supports both static and dynamic bundles. A bundle is a sellable item that is composed of a number of constituent items. In a static bundle, the quantity is fixed and cannot be changed by the shopper. In a dynamic bundle, the shopper can specify the desired quantity.
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 make up the bundle. The constituent line items specify the sellable item IDs or variant IDs, each specifying the quantity required to form the 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