CartBillLine
One line of the cart bill.
type CartBillLine {
baseUnitPrice: Float!
cartItemId: ID!
discountAmount: Float!
discountPercent: Float
lineTotal: Float!
quantity: Float!
taxAmount: Float!
taxRate: Float!
unitPrice: Float!
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.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.
CartBillLine.quantity ● Float! non-null scalar
The quantity.
CartBillLine.taxAmount ● Float! non-null scalar
Engine-resolved tax amount for this line (lineTotal × taxRate).
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).
CartBillLine.variantId ● ID! non-null scalar
The ID of the product variant.
Member Of
CartBill object