Overview
When calculating taxes or posting transactions to Zamp, take a look at this guide for how the math works for item values and totals.Transaction Total
At the transaction-level, thetotal is the aggregate of the item costs minus discounts, any shipping and / or handling, and tax collected. Zamp will validate the totals being passed on calculation and transaction posting attempts.
Calculating Item Cost with Discounts
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 item cost 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 item cost 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 item cost for the transaction is still $20.00, but there is no transaction-level discount value since it is factored in at the line-item.
Calculating Totals
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.