interface LineItemImportDraft {
    custom?: CustomFieldsDraft;
    distributionChannel?: ChannelResourceIdentifier;
    inventoryMode?: string;
    name: LocalizedString;
    price: PriceDraft;
    productId?: string;
    quantity: number;
    shippingDetails?: ItemShippingDetailsDraft;
    state?: ItemState[];
    supplyChannel?: ChannelResourceIdentifier;
    taxRate?: TaxRate;
    variant: ProductVariantImportDraft;
}

Properties

The custom fields.

distributionChannel?: ChannelResourceIdentifier

The channel is used to select a ProductPrice. The provided channel should have the ProductDistribution role.

inventoryMode?: string

Inventory mode specific to the line item only, valid for the entire quantity of the line item. Set only if inventory mode should be different from the inventoryMode specified on the OrderImportDraft.

The product name.

price: PriceDraft
productId?: string

ID of the existing product. You also need to specify the ID of the variant if this property is set or alternatively you can just specify SKU of the product variant.

quantity: number
shippingDetails?: ItemShippingDetailsDraft
state?: ItemState[]

Connection to a particular supplier. By providing supply channel information, you can uniquely identify inventory entries that should be reserved. The provided channel should have the InventorySupply role.

taxRate?: TaxRate

Generated using TypeDoc