/owner/reports/accounts_profit_accrual./owner/reports/profit is the cash basis version and runs on a different engine entirely. The two are toggle buttons on the same screen and their figures are not expected to agree. This endpoint reports accrual only; report.basis says so in every response.{format} suffix.| Bound | Default | When |
|---|---|---|
| Periods (columns) | 120 | no cost_center_id |
| Periods (columns) | 36 | any cost_center_id -- that filter switches the engine to a slower per-row query |
| Cells | 250,000 | always |
| Parameter | Reason |
|---|---|
currency | This report has no currency dimension -- it always reports in the base currency. |
exclude_financial_year_journals | Always on; year-end opening and closing journals are never included. |
staff_id | Not a filter of this report. |
branch_id | Ambiguous here -- use journals_branch_id or accounts_branch. |
branch_transactions | A page-form internal; use journals_branch_id. |
branch_filter_submitted | A page-form internal; use journals_branch_id. |
quick | A page control with no meaning here. |
graphType | A page control with no meaning here. |
no_graph | A page control with no meaning here. |
ext | This endpoint always answers JSON. |
auto_csv | A page export control. |
threshold_limit | A page export control. |
handler | A page export control. |
data | A page-form internal. |
400 naming it.curl --location --globoff 'https://.daftara.com/api2/reports/accounts_profit_accrual?date_from=2025-10-01&date_to=2026-10-01&group_by_date=monthly&max_level=3&cost_center_id=&fy_id=&journals_branch_id=&accounts_branch=' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json'{
"result": "successful",
"code": 200,
"data": {
"report": {
"key": "accounts_profit_accrual",
"title": "string",
"basis": "accrual",
"currency": "string"
},
"filters": {
"date_from": "2019-08-24",
"date_to": "2019-08-24",
"group_by_date": "monthly",
"max_level": 0,
"cost_center_id": [
0
],
"fy_id": [
0
],
"journals_branch_id": [
0
],
"accounts_branch": 0,
"currency": "string",
"exclude_financial_year_journals": true
},
"columns": [
{
"key": "string",
"label": "string",
"group_by": "monthly",
"year": 0,
"month": 0,
"quarter": 0
}
],
"income": [
{
"node_id": "string",
"id": 0,
"kind": "category",
"code": "string",
"name": "string",
"level": 0,
"multiplier": 1,
"shows_value": true,
"has_children": true,
"truncated_children": true,
"periods": {
"property1": 0,
"property2": 0
},
"total": 0,
"children": [
{}
],
"children_subtotal": {
"label": "string",
"level": 0,
"periods": {
"property1": 0,
"property2": 0
},
"total": 0
}
}
],
"income_subtotal": {
"label": "string",
"level": 0,
"periods": {
"property1": 0,
"property2": 0
},
"total": 0
},
"expenses": [
{
"node_id": "string",
"id": 0,
"kind": "category",
"code": "string",
"name": "string",
"level": 0,
"multiplier": 1,
"shows_value": true,
"has_children": true,
"truncated_children": true,
"periods": {
"property1": 0,
"property2": 0
},
"total": 0,
"children": [
{}
],
"children_subtotal": {
"label": "string",
"level": 0,
"periods": {
"property1": 0,
"property2": 0
},
"total": 0
}
}
],
"expenses_subtotal": {
"label": "string",
"level": 0,
"periods": {
"property1": 0,
"property2": 0
},
"total": 0
},
"totals": {
"income": {
"periods": {
"property1": 0,
"property2": 0
},
"total": 0
},
"expenses": {
"periods": {
"property1": 0,
"property2": 0
},
"total": 0
},
"profit": {
"periods": {
"property1": 0,
"property2": 0
},
"total": 0
},
"as_displayed": {
"income": {
"periods": {
"property1": 0,
"property2": 0
},
"total": 0,
"type_multiplier": 1
},
"expenses": {
"periods": {
"property1": 0,
"property2": 0
},
"total": 0,
"type_multiplier": 1
}
}
},
"meta": {
"node_count": 0,
"column_count": 0,
"income_root_count": 0,
"expenses_root_count": 0,
"income_total_source_id": 0,
"expenses_total_source_id": 0
}
}
}