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

    Interface StagedOrderSetLineItemDistributionChannelAction

    Setting a distribution channel for a LineItem can lead to an updated price as described in Line Item price selection.

    Produces the [OrderLineItemDistributionChannelSet](ctp:api:type:OrderLineItemDistributionChannelSetMessage) Message.
    
    interface StagedOrderSetLineItemDistributionChannelAction {
        action: "setLineItemDistributionChannel";
        distributionChannel?: ChannelResourceIdentifier;
        lineItemId?: string;
        lineItemKey?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    action: "setLineItemDistributionChannel"
    distributionChannel?: ChannelResourceIdentifier
    • If present, a Reference to the Channel is set for the LineItem specified by lineItemId.
      • If not present, the current Reference to a distribution channel is removed from the LineItem specified by lineItemId. The Channel must have the ProductDistribution ChannelRoleEnum.
    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.