question

usman avatar image
usman asked rachel Deactivated commented

Calculating Tax On An Order

Hey I just wanted to make sure that I was doing this correctly. In order to calculate tax on an order - the way to do it would be to take an item, manually subtract any discounts, modifiers, etc. And then manually take the tax amount for each line item & calculate the tax amount owed. And thats the total amount? Is that Correct? There is pre-calculated response out of the API that is the generated tax amount on line items which would be the tax rate of that item times the amount?

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

rachel avatar image rachel commented ·

Hi @Usman,

We calculate order totals by following these steps. One thing to note is that, when dealing with multiple tax rates, the totals for each tax rate are rounded before adding them together.

Can you be more specific on what what you mean by "pre-calculated response out of the API"? What endpoint or method are you referring to?

Thanks!

0 Likes 0 ·

0 Answers

Welcome to the
Clover Developer Community