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 Type | Description |
|---|---|
| VAT | Value Added Tax (EU, UK, etc.) |
| GST | Goods and Services Tax (AU, CA, SG, etc.) |
| Sales Tax | US state-level sales tax |
| Withholding Tax | Tax withheld from payments |
Configure Tax
POST /api/tax/configure
{
"defaultTaxRate": 10,
"taxInclusive": false,
"taxBehavior": "exclusive"
}
Tax Behavior
| Behavior | Description |
|---|---|
exclusive | Tax added on top of amount |
inclusive | Tax included in amount |
custom | Custom tax calculation |
Tax Rates
Tax rates are automatically determined by:
- Customer location (billing address)
- Product tax category
- 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,
});