Custom Line Items contain generic user-defined items that are not linked to Products.

interface CustomLineItemImportDraft {
    custom?: CustomFieldsDraft;
    key?: string;
    money: _Money;
    name: LocalizedString;
    priceMode?: string;
    quantity: number;
    shippingDetails?: ItemShippingDetailsDraft;
    slug: string;
    state?: ItemState[];
    taxCategory?: TaxCategoryResourceIdentifier;
    taxRate?: TaxRate;
}

Properties

Custom Fields of the CustomLineItem.

key?: string

User-defined unique identifier of the Custom Line Item.

money: _Money

The cost of individual items in the Custom Line Item. The amount can be negative.

Name of the Custom Line Item.

priceMode?: string
  • If Standard, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.
    • If External, Cart Discounts are not considered on the Custom Line Item.
quantity: number

The number of items in the Custom Line Item. Can be a negative value.

shippingDetails?: ItemShippingDetailsDraft

Container for Custom Line Item-specific addresses.

slug: string

User-defined identifier used in a deep-link URL for the Custom Line Item. This value should match the pattern [a-zA-Z0-9_-]{2,256}.

state?: ItemState[]

State of the Custom Line Items.

Include a value to associate a Tax Category with the Custom Line Item.

taxRate?: TaxRate

The tax rate used to calculate the taxedPrice of the Order.