A resolved line item with full price stack, discounts, and tax
A resolved line item with full price stack. Every intermediate value is computed and stored server-side — renderers and auditors can verify any step without re-deriving it.
Price stack: unit_price_gross × quantity = subtotal_gross subtotal_gross − line_discount_amount = subtotal_after_line_discounts subtotal_after_line_discounts − cart_discount_amount = total_gross total_gross → split into total_net + tax_amount
"li_01HXYZ"
1-based display order on the receipt
1
"Wiener Schnitzel"
2
"piece"
Original undiscounted unit price including tax
1800
deposit, gift_card, service_charge, tip unit_price_gross × quantity — before any discounts
3600
Applied line-level discounts
Sum of all line_discounts amounts
360
subtotal_gross − line_discount_amount
3240
Portions of cart-level discounts allocated to this line item.
Definitions live in the operation's cart_discounts array.
The sum of all allocations for a given discount_id must equal
that discount's total_amount.
Sum of all cart_discount_allocations amounts
324
subtotal_after_line_discounts − cart_discount_amount. The final amount the customer pays for this line.
2916
total_gross − tax_amount
2651