interface StagedOrderAddLineItemAction {
    action: "addLineItem";
    addedAt?: string;
    custom?: CustomFieldsDraft;
    distributionChannel?: ChannelResourceIdentifier;
    externalPrice?: _Money;
    externalTaxRate?: ExternalTaxRateDraft;
    externalTotalPrice?: ExternalLineItemTotalPrice;
    productId?: string;
    quantity?: number;
    shippingDetails?: ItemShippingDetailsDraft;
    sku?: string;
    supplyChannel?: ChannelResourceIdentifier;
    variantId?: number;
}

Properties

action: "addLineItem"
addedAt?: string

The representation used when creating or updating a customizable data type with Custom Fields.

distributionChannel?: ChannelResourceIdentifier
externalPrice?: _Money

Draft type that stores amounts only in cent precision for the specified currency.

externalTaxRate?: ExternalTaxRateDraft

Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.

externalTotalPrice?: ExternalLineItemTotalPrice
productId?: string
quantity?: number
shippingDetails?: ItemShippingDetailsDraft

For order creation and updates, the sum of the targets must match the quantity of the Line Items or Custom Line Items.

sku?: string
variantId?: number

Generated using TypeDoc