/owner/reports/new_taxes. The line-by-line Tax Details view is a separate report; details is refused. The page's settlement form is a write action and is not part of this endpoint.tax_id, never label -- labels carry the translated name and the rate. Figures are unformatted numbers, rounded to five decimals. With currency=-1 every currency is converted into the base currency.tax_id is answered 400 rather than truncated.curl --location '/api2/reports/tax_declaration?date_from=2025-01-01&date_to=2025-12-31&invoice_type=&tax_id=¤cy=&branch_id=' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json'{
"result": "successful",
"code": 200,
"data": {
"report": {
"key": "tax_declaration",
"title": "string",
"currency": "string"
},
"filters": {
"date_from": "2019-08-24",
"date_to": "2019-08-24",
"invoice_type": "accrual",
"tax_id": 0,
"currency": "string",
"branch_id": [
0
]
},
"sales": {
"rows": [
{
"tax_id": 0,
"tax_name": "string",
"tax_rate": 0,
"label": "string",
"sales": 0,
"edits": 0,
"tax_due": 0
}
],
"totals": {
"sales": 0,
"edits": 0,
"tax_due": 0
}
},
"purchases": {
"rows": [
{
"tax_id": 0,
"tax_name": "string",
"tax_rate": 0,
"label": "string",
"purchases": 0,
"edits": 0,
"payable_tax": 0
}
],
"totals": {
"purchases": 0,
"edits": 0,
"payable_tax": 0
}
},
"others": {
"rows": [
{
"tax_id": 0,
"tax_name": "string",
"tax_rate": 0,
"label": "string",
"taxable_amount": 0,
"tax": 0
}
],
"totals": {
"taxable_amount": 0,
"tax": 0
}
},
"totals": {
"net_tax": 0
},
"meta": {
"tax_count": 0
}
}
}