How are suggested refund total tax & refund line item total tax calculated?

Highlighted
New Member
1 0 0

Suppose I have an order like this:

  • quantity 40 of an item that costs $23.49
  • one tax line of 6.5%
  • one tax line of 2.5%

Now if I try to refund a quantity of 11, the suggested refund amount is $281.65, of which $23.26 is ascribed to 'Tax'. However, if I go through with the refund, the refund line item returned by the GraphQL API shows a totalTax of $23.25 (one penny less), though the total amount refunded is still $281.65.

Further, if I try to refund another 11 items on the same order, the suggested refund amount is $281.64, of which $23.25 is ascribed to 'Tax' (the total and tax are both a penny less than before). If I go through with the refund, the refund line item in GraphQL still shows a totalTax of $23.25.

So I have two questions:

1. How is the suggested amount calculated?

2. Why is the tax shown on the suggestion page different from the tax returned by the API?

(I can supply links privately to sample orders showing the discrepancy, if it would help.)

0 Likes