Amounts
Every sale has different amounts based on line items, discounts and payments. This document explains how to calculate the amounts for a sale.
Line Items
Every line item has different price levels. The price levels are:
grossTotal
: The total price of the line item including taxes and any line item discounts applied.netTotal
: The total price of the line item excluding taxes and any line item discounts applied.totalTax
: The total amount of taxes applied to the line item.baseGrossTotal
: The total price of the line item including taxes and no line item discounts applied.grossUnitPrice
: The price of a single unit of the line item including taxes and any line item discounts applied.baseGrossUnitPrice
: The price of a single unit of the line item including taxes and no line item discounts applied.
For every line item, the following formulas apply:
The grossTotal
is the grossUnitPrice
multiplied by the quantity
:
The baseGrossTotal
is the baseGrossUnitPrice
multiplied by the quantity
:
The baseGrossTotal
and grossTotal
differ by the sum of all applied discounts:
grossTotal
and netTotal
differ by the totalTax
:
totalTax
is the sum of all taxes applied to the line item: