Report Tax by Component
Goal: per component, the taxable amount and tax for a period, ready for each authority's filing.
You need: posted invoices, bills or credit notes that use taxes with components (Split a Tax into Components), and permission to view tax reports (report:tax for API tokens).
In the app
- Go to Reports and, under Tax, open Tax by Component.
- Pick the Date Range.
The Summary shows net sales tax and recoverable and non-recoverable purchase tax. Components lists one row per component, grouped by country when there's more than one. Taxable amounts are per component and aren't added up, since one sale is taxable in every component that taxes it.
With the API
Working in your own language? These samples use plain HTTP. For a typed client in TypeScript, Python, Go, Java or PHP, generate one from the OpenAPI spec.
1. Request the period
curl "$BASE/v1/reports/tax-by-component?date_range=2026-10-01,2026-12-31" \
-H "$AUTH" -H "$PARTNER"
| Query | Rule |
|---|---|
date_range | Required. YYYY-MM-DD,YYYY-MM-DD, start and end inclusive. |
country_code | Optional. Exact match on the country posted with the component, e.g. US. |
region | Optional. Exact match on the region posted, e.g. US-CA. |
2. Read the response
{
"date_range": "2026-10-01,2026-12-31",
"currency": "USD",
"components": [
{
"component_id": "<state id>",
"component_code": "US-CA:state",
"component_name": "California state",
"component_kind": "state",
"component_country_code": "US",
"component_region": "US-CA",
"sales": {
"invoices": { "taxable_amount": "1000.00", "tax_amount": "72.50" },
"credit_notes": { "taxable_amount": "0.00", "tax_amount": "0.00" },
"net": { "taxable_amount": "1000.00", "tax_amount": "72.50" }
},
"purchases": {
"recoverable": { "taxable_amount": "0.00", "tax_amount": "0.00" },
"non_recoverable": { "taxable_amount": "0.00", "tax_amount": "0.00" }
}
}
],
"totals": {
"sales_tax_net": "87.50",
"purchase_tax_recoverable": "0.00",
"purchase_tax_non_recoverable": "0.00"
}
}
Abbreviated to one component.
| Field | Meaning |
|---|---|
sales.net | Invoices minus credit notes: what's owed for this component |
purchases.recoverable | Tax paid on bills that can be claimed back |
purchases.non_recoverable | Tax paid that became part of the cost |
currency | Company base currency; foreign-currency documents are converted at their journal's exchange rate |
Components come back ordered by country, region, then code; components without geography come last.
Why closed periods don't move
The report reads the code, name, kind and geography saved on each journal line at posting, not today's catalog. Rename a component, change its region or archive it, and a quarter you already filed reports exactly as it was booked. Names come from the catalog when the component still exists, and from the last posted name when it doesn't.
Pitfalls
- Single-rate taxes (no components) aren't in this report. Use the tax report for those.
- Filters match what was posted. A component whose region was added after posting won't match a
regionfilter for those older lines.