@gradientedge/commercetools-utils
    Preparing search index...

    Interface MyCartSetLineItemSupplyChannelAction

    Performing this action does not reserve stock. Stock is only reserved at Order creation if the InventoryMode of the Cart is TrackOnly or ReserveOnOrder.

    interface MyCartSetLineItemSupplyChannelAction {
        action: "setLineItemSupplyChannel";
        lineItemId?: string;
        lineItemKey?: string;
        supplyChannel?: ChannelResourceIdentifier;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "setLineItemSupplyChannel"
    lineItemId?: string

    id of the LineItem to update. Either lineItemId or lineItemKey is required.

    lineItemKey?: string

    key of the LineItem to update. Either lineItemId or lineItemKey is required.

    • If present, a Reference to the Channel is set for the LineItem specified by lineItemId.
      • If not present, the current Reference to a supply channel will be removed from the LineItem specified by lineItemId. The Channel must have the InventorySupply ChannelRoleEnum.