CartBillLine
One line of the cart bill.
type CartBillLine {
baseUnitPrice: Float!
cartItemId: ID!
discountAmount: Float!
discountAmountMoney: AppMoney
discountPercent: Float
lineTotal: Float!
lineTotalMoney: AppMoney
quantity: Float!
taxAmount: Float!
taxAmountMoney: AppMoney
taxRate: Float!
unitPrice: Float!
unitPriceMoney: AppMoney
variantId: ID!
}
Fields
CartBillLine.baseUnitPrice ● Float! non-null scalar
Pre-discount per-unit price from the same LinePricingService resolution (display-only strikethrough reference). Equal to unitPrice when nothing discounts this line.
CartBillLine.cartItemId ● ID! non-null scalar
The ID of the cart item.
CartBillLine.discountAmount ● Float! non-null scalar
Σ per-unit discount × quantity for this line, rounded once (repriceLines).
CartBillLine.discountAmountMoney ● AppMoney object
The line's discount as { amount, currencyCode }. The Storefront API reads money only through these fields.
CartBillLine.discountPercent ● Float scalar
Line discount rate for display, computed server-side from the EXACT discount over the pre-discount line base and snapped to 2dp (12.345 % shows 12.35, 45 % stays 45). Never derive it from the rounded discountAmount (10.30 at 45 % would read 45.05).
CartBillLine.lineTotal ● Float! non-null scalar
The line total, net of discount and before tax: the taxable base. Add taxAmount for the gross. Contrast the order line's lineTotal, which includes tax.
CartBillLine.lineTotalMoney ● AppMoney object
The line total as { amount, currencyCode }. The Storefront API reads money only through these fields.
CartBillLine.quantity ● Float! non-null scalar
The quantity.
CartBillLine.taxAmount ● Float! non-null scalar
Engine-resolved tax amount for this line (lineTotal × taxRate).
CartBillLine.taxAmountMoney ● AppMoney object
The line's tax as { amount, currencyCode }. The Storefront API reads money only through these fields.
CartBillLine.taxRate ● Float! non-null scalar
Engine-resolved tax rate percent for this line (LinePricingService).
CartBillLine.unitPrice ● Float! non-null scalar
Freshly re-resolved unit price (never the stale stored cart price). The DISCOUNTED per-unit price, before tax (a tax-inclusive price is carried at its net). Contrast the order line's unitPrice, which is the list price before discount.
CartBillLine.unitPriceMoney ● AppMoney object
The line's unit price as { amount, currencyCode }. The Storefront API reads money only through these fields.
CartBillLine.variantId ● ID! non-null scalar
The ID of the product variant.
Member Of
CartBill object