CartLineCost
Cost breakdown for a single cart line.
type CartLineCost {
compareAtPricePerUnit: Money
compareAtPricePerUnitWithConversion: PriceMoney
pricePerUnit: Money!
pricePerUnitWithConversion: PriceMoney
subtotal: Money!
subtotalWithConversion: PriceMoney
total: Money!
totalWithConversion: PriceMoney
}
Fields
CartLineCost.compareAtPricePerUnit ● Money object
Strike-through compare-at unit price when the line is on sale. Null when the line is not discounted; show the strike-through only when this is present and greater than pricePerUnit.
CartLineCost.compareAtPricePerUnitWithConversion ● PriceMoney object
Opt-in: compareAtPricePerUnit with conversion transparency.
CartLineCost.pricePerUnit ● Money! non-null object
Unit price of the line: base variant price plus configurator surcharges billed into the line (attribute selections with billingMode BUNDLED). Use this for per-unit display; the base variant price without surcharges is available at variant.price.
CartLineCost.pricePerUnitWithConversion ● PriceMoney object
Opt-in: pricePerUnit with conversion transparency.
CartLineCost.subtotal ● Money! non-null object
Line subtotal (pricePerUnit × quantity), before discount-code allocations.
CartLineCost.subtotalWithConversion ● PriceMoney object
Opt-in: subtotal with conversion transparency.
CartLineCost.total ● Money! non-null object
Line total (pricePerUnit × quantity), including surcharges billed into the line price. Charges billed as separate positions (selections with billingMode SEPARATE_LINE and linked stock components) are included in the cart-level cost, not here — render them from attributeSelections. Discount-code allocations are listed in discountAllocations and are not subtracted from this amount; the cart-level cost.total accounts for them.
CartLineCost.totalWithConversion ● PriceMoney object
Opt-in: total with conversion transparency.
Member Of
CartLine object