Typescript SDK Type Docs
    Preparing search index...

    Interface LineItemImportDraft

    Represents an individual Line Item in an Order. A line item is a snapshot of a product at the time it was added to the order.

    You cannot create an Order that includes line item operations that do not exist in the Project or have been deleted.
    Products and Product Variants referenced by a line item must already exist in the Project.
    Product Attributes are merged with Variant Attributes to ensure the full Attribute context of the Product Variant.
    
    Index

    Properties

    custom?: Custom

    Maps to LineItem.custom.

    distributionChannel?: ChannelKeyReference

    Maps to LineItem.distributionChannel. If the referenced Channel does not exist, the state of the ImportOperation will be set to unresolved until the referenced Channel is created.

    Maps to LineItem.name.

    Maps to LineItem.price.

    Maps to LineItem.productId. If the referenced Product does not exist, the state of the ImportOperation will be set to unresolved until the referenced Product is created.

    quantity: number

    Maps to LineItem.quantity.

    shippingDetails?: ItemShippingDetailsDraft

    Maps to LineItem.shippingDetails.

    state?: ItemState[]

    Maps to LineItem.state.

    supplyChannel?: ChannelKeyReference

    Maps to LineItem.supplyChannel. If the referenced Channel does not exist, the state of the ImportOperation will be set to unresolved until the referenced Channel is created.

    taxRate?: TaxRate

    Maps to LineItem.taxRate.

    Maps to ProductVariantImportDraft.