interface CustomLineItemDraft {
    custom?: CustomFieldsDraft;
    externalTaxRate?: ExternalTaxRateDraft;
    money: _Money;
    name: LocalizedString;
    priceMode: string;
    quantity?: number;
    shippingDetails?: ItemShippingDetailsDraft;
    slug: string;
    taxCategory?: TaxCategoryResourceIdentifier;
}

Properties

Custom Fields for the Custom Line Item.

externalTaxRate?: ExternalTaxRateDraft

External Tax Rate for the Custom Line Item if the Cart has the External TaxMode.

money: _Money

Money value of the Custom Line Item. The value 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

Number of Custom Line Items to add to the Cart.

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. It must match the pattern [a-zA-Z0-9_-]{2,256}.

Used to select a Tax Rate when a Cart has the Platform TaxMode. This field is required for Platform TaxMode.

Generated using TypeDoc