Prompt
Why are refunds coming back with the wrong tax amount from my tax service?
Latest observation
Nov 3, 2026
OpenAI APIWeb search: off
A refund coming back with the “wrong” tax amount usually means the refund request and the original sale don’t match in the way your tax service expects.
Common causes:
-
Refunded items don’t exactly match the original line items
- Quantity, unit price, discounts, or tax category differ.
- Partial refunds can be especially tricky if the service expects line-level precision.
-
Rounding differences
- Tax may be calculated per line item vs. on the total.
- Small cent-level differences can appear, especially with multiple items or percentages.
-
Shipping, fees, or surcharges were included differently
- The original order may have taxed shipping or fees, but the refund request may omit them.
- Or the refund may be reversing them when it shouldn’t.
-
Discounts/promotions not applied the same way
- If the original order had a coupon or prorated discount, the refund tax should usually be adjusted proportionally.
- If the tax service doesn’t receive the discount details, it may recalculate tax incorrectly.
-
Wrong jurisdiction/address on the refund
- If the refund is being calculated using a different destination/source address than the original transaction, tax rates can change.
-
Original tax was already overridden
- If the original tax amount was manually adjusted, the refund logic might still be trying to recalculate from base values.
-
Inclusive vs. exclusive tax mismatch
- If your system treats prices as tax-inclusive but the tax service expects tax-exclusive prices, refund amounts will differ.
-
Credit memo / refund API settings
- Some tax services require you to send:
- original transaction ID
- exact refunded line items
- full vs. partial refund indicator
- shipping/fee refund amounts
- Missing one field can make the service recompute instead of reverse the original tax.
- Some tax services require you to send:
What to check:
- Compare the original transaction payload to the refund payload
- Make sure the refund uses the same order ID / tax document ID
- Verify the refunded quantity, amount, discounts, and shipping
- Check for rounding rules and whether tax is calculated per line or total
- Confirm the same address/jurisdiction is being used
- Review your tax provider’s docs for partial refund behavior
If you want, paste:
- the original order tax payload
- the refund payload
- the tax service you’re using
and I can help spot the exact mismatch.