Saltar al contenido principal
Versión: 1.0.1

Tax

Dimebia provides automated tax calculation and compliance for global transactions. This guide covers tax configuration, rates, and reporting.

Overview

Tax calculation is applied automatically based on:

  • Customer billing address
  • Product/service type
  • Current tax rates and rules

Supported Tax Types

Tax TypeDescription
VATValue Added Tax (EU, UK, etc.)
GSTGoods and Services Tax (AU, CA, SG, etc.)
Sales TaxUS state-level sales tax
Withholding TaxTax withheld from payments

Configure Tax

POST /api/tax/configure
{
"defaultTaxRate": 10,
"taxInclusive": false,
"taxBehavior": "exclusive"
}

Tax Behavior

BehaviorDescription
exclusiveTax added on top of amount
inclusiveTax included in amount
customCustom tax calculation

Tax Rates

Tax rates are automatically determined by:

  1. Customer location (billing address)
  2. Product tax category
  3. Current tax rules and exemptions

Tax Reporting

Generate tax reports for accounting:

GET /api/tax/report?startDate=2026-01-01&endDate=2026-12-31

Code Examples

Node.js

const invoice = await client.invoices.create({
customerId: 1,
items: [{ description: 'Service', amount: 10000 }],
taxRate: 10,
});