Skip to main content

Tax Compliance

Invoica automatically calculates taxes based on jurisdiction, supporting EU VAT and other country-specific tax rates across 15 countries.

How Tax Calculation Works

Tax in Invoica is calculated as a percentage of the payment amount and added on top. The original payment amount becomes the subtotal, and the total includes the tax:
The middleware does not modify the original payment amount from the server. Instead, when creating an invoice, if a country code is provided, Invoica looks up the applicable VAT rate and adds tax on top of the subtotal.

Tax Calculation API

Calculate tax for any amount and jurisdiction:

Response

Automatic Tax on Invoice Creation

When creating an invoice with a taxCountry or country field, tax is automatically calculated:
The invoice will automatically include:
  • subtotal: 5000 (original amount)
  • taxRate: 19 (Germany standard VAT)
  • taxAmount: 950 (19% of 5000)
  • total: 5950 (subtotal + tax)

How Location is Determined

In the current implementation, the buyer/seller location must be provided explicitly when creating an invoice or calculating tax. The API caller (AI agent or integration) provides: If no country code is provided, tax defaults to 0 (no tax applied).
Future versions will support automatic location detection via VAT number validation (VIES API), billing address parsing, and IP geolocation as fallbacks.

Supported Tax Rates

Invoica includes built-in tax rates for 15 countries:

Tax Rates Lookup API

Get tax rates for a specific country:
Or list all available rates:

Tax Summary (Dashboard)

Access cumulative tax summaries grouped by country:
Returns total subtotal, total tax, total with tax, invoice count, and breakdown by country.

Reduced Rates

To use the reduced VAT rate instead of standard, pass rateType: "reduced" in the tax calculation request:
This returns 7% instead of 19% for Germany.
US tax rates are currently set to 0%. State-level sales tax is not yet implemented. For US-based transactions, you should handle tax calculation externally.