Prompt
I need a tax API that works with refunds, partial refunds, and order edits
Latest observation
Nov 3, 2026
OpenAI APIWeb search: off
Yes — you’ll want a tax API that explicitly supports the full lifecycle of an order, not just initial checkout tax calculation.
What to look for
Make sure the API can handle:
- Initial tax calculation at checkout
- Capturing tax on captured payments
- Refund tax adjustments for full refunds
- Partial refund handling with proportional tax reversal
- Order edits / adjustments when items, quantities, shipping, or discounts change after purchase
- Transaction history so every tax event is traceable
Good options
A few APIs that commonly support these scenarios well:
-
Avalara AvaTax
- Strong support for sales tax calculation, refunds, returns, and order adjustments
- Good for e-commerce and multi-jurisdiction compliance
- Widely used with order amendments and partial refunds
-
TaxJar
- Easier to integrate for many e-commerce use cases
- Supports tax calculation and refund transactions
- Better for simpler workflows, though some order-edit logic may need your app to manage adjustments carefully
-
Sovos
- More enterprise-focused
- Strong compliance and transaction lifecycle support
- Good if you need robust handling across regions and ERP integrations
-
Vertex
- Enterprise-grade tax engine
- Good support for complex order changes, returns, and invoices
- Best for large-scale or highly regulated environments
Important implementation detail
For refunds and partial refunds, the API should let you submit:
- original transaction reference
- refunded line items or amounts
- shipping/tax adjustments
- whether the refund is partial or full
For order edits, the best APIs allow an adjustment transaction or amendment rather than forcing you to void and recreate everything.
My recommendation
- Small to mid-size e-commerce: TaxJar or Avalara
- Complex orders / enterprise / ERP-heavy: Avalara, Vertex, or Sovos
If you want, I can also give you:
- a feature comparison table for these APIs, or
- a recommended API based on your platform (Shopify, WooCommerce, custom app, Stripe, etc.).