Home > @vsf-enterprise/commercetools-api > cartActions > createAddLineItemAction

# cartActions.createAddLineItemAction variable

Signature:

createAddLineItemAction: (params: {
    product: ProductVariant;
    quantity: number;
    supplyChannel?: string;
    distributionChannel?: string;
}) => {
    addLineItem: {
        distributionChannel: {
            id: string;
        };
        supplyChannel: {
            id: string;
        };
        variantId: number;
        quantity: number;
        sku: string;
    };
}