Skip to main content

OrderLine

A single line on an Order which contains information about the ProductVariant and quantity ordered, as well as the price and tax information.

Signature

constructor

method(input?: DeepPartial<OrderLine>) => OrderLine

sellerChannel

propertyChannel

The Channel of the Seller for a multivendor setup.

sellerChannelId

propertyID

shippingLine

propertyShippingLine

The ShippingLine to which this line has been assigned. This is determined by the configured ShippingLineAssignmentStrategy.

shippingLineId

propertyID

productVariant

The ProductVariant which is being ordered.

productVariantId

propertyID

taxCategory

propertyTaxCategory

taxCategoryId

propertyID

featuredAsset

propertyAsset

order

propertyOrder

linesReferences

sales

propertySale[]

quantity

propertynumber

orderPlacedQuantity

propertynumber

The quantity of this OrderLine at the time the order was placed (as per the OrderPlacedStrategy).

initialListPrice

propertynumber

The price as calculated when the OrderLine was first added to the Order. Usually will be identical to the listPrice, except when the ProductVariant price has changed in the meantime and a re-calculation of the Order has been performed.

listPrice

propertynumber

This is the price as listed by the ProductVariant (and possibly modified by the OrderItemPriceCalculationStrategy), which, depending on the current Channel, may or may not include tax.

listPriceIncludesTax

propertyboolean

Whether the listPrice includes tax, which depends on the settings of the current Channel.

adjustments

propertyAdjustment[]

taxLines

propertyTaxLine[]

cancellations

propertyCancellation[]

allocations

propertyAllocation[]

customFields

propertyCustomOrderLineFields

unitPrice

propertynumber

The price of a single unit, excluding tax and discounts.

unitPriceWithTax

propertynumber

The price of a single unit, including tax but excluding discounts.

unitPriceChangeSinceAdded

propertynumber

Non-zero if the unitPrice has changed since it was initially added to Order.

unitPriceWithTaxChangeSinceAdded

propertynumber

Non-zero if the unitPriceWithTax has changed since it was initially added to Order.

discountedUnitPrice

propertynumber

The price of a single unit including discounts, excluding tax.

If Order-level discounts have been applied, this will not be the actual taxable unit price (see proratedUnitPrice), but is generally the correct price to display to customers to avoid confusion about the internal handling of distributed Order-level discounts.

discountedUnitPriceWithTax

propertynumber

The price of a single unit including discounts and tax

proratedUnitPrice

propertynumber

The actual unit price, taking into account both item discounts and prorated (proportionally-distributed) Order-level discounts. This value is the true economic value of a single unit in this OrderLine, and is used in tax and refund calculations.

proratedUnitPriceWithTax

propertynumber

The proratedUnitPrice including tax.

unitTax

propertynumber

proratedUnitTax

propertynumber

taxRate

propertynumber

linePrice

propertynumber

The total price of the line excluding tax and discounts.

linePriceWithTax

propertynumber

The total price of the line including tax but excluding discounts.

discountedLinePrice

propertynumber

The price of the line including discounts, excluding tax.

discountedLinePriceWithTax

propertynumber

The price of the line including discounts and tax.

discounts

propertyDiscount[]

lineTax

propertynumber

The total tax on this line.

proratedLinePrice

propertynumber

The actual line price, taking into account both item discounts and prorated (proportionally-distributed) Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax and refund calculations.

proratedLinePriceWithTax

propertynumber

The proratedLinePrice including tax.

proratedLineTax

propertynumber

addAdjustment

method(adjustment: Adjustment) =>

clearAdjustments

method(type?: AdjustmentType) =>
Was this chapter helpful?
Report Issue
Edited Feb 25, 2026·Edit this page