Overview
When calculating taxes or posting transactions to Zamp, take a look at this guide for how the math works for subtotals and totals.Transaction-Level Subtotal
At the transaction-level, thesubTotal is the cost of the items and any transaction-level or line-item discounts. The difference is, the discount at the transaction-level is still passed as a discount even though it is factored into the subTotal.
Single Item Transaction with Transaction-level Discount
Single Item Transaction with Transaction-level Discount
- I have a transaction for 2 of the same item.
- They cost $10 each.
- There is a promotion running for $10.00 off your cart.Β
- TheΒ
subtotalΒ for this transaction is $10.
Multiple Item Transaction with Transaction-level Discount
Multiple Item Transaction with Transaction-level Discount
- I have a transaction where 3 different items are being sold.
- Item A is $10, and the customer ordered 1.
- Item B is $15, and the customer ordered 3.
- Item C is $20, and the customer ordered 2.
- There is an additional 20% discount for the cart.
- TheΒ
subtotalΒ for this transactions is $75.00
A Single Item Transaction with an Item-Discount
A Single Item Transaction with an Item-Discount
- I have a transaction for 3 of the same item.
- The item costs $10.00.
- There is a βBuy Two Get One Freeβ promotion, so the discount is $10.00.
- The
subTotalfor the transaction is still $20.00, but there is no transaction-level discount value since it is factored in at the line-item.
Transaction Total
At the transaction-level, thetotal is the aggregate of the subtotal, any shipping and/or handling, and tax.
A Single Item Transaction With Order-level Itemized Shipping and Handling, and Tax
A Single Item Transaction With Order-level Itemized Shipping and Handling, and Tax
- I have a sale with a single line item worth $20.00.
- It costs $1.50 to ship.
- It costs $1.00 to handle.
- It has $2.00 of tax calculated.
- The
totalfor this transaction is $24.50.
A Multiple Item Transaction With an Aggregate Shipping and Handling, with Tax
A Multiple Item Transaction With an Aggregate Shipping and Handling, with Tax
- I have a sale with 3 line items.
- Each cost $10.00.
- It costs $5.00 to shipΒ ANDΒ handle.
- The tax calculated is $3.00.
- The
totalfor this transaction is $38.00.