date_to, plus a totals row./owner/reports/aged_debtors. Figures are in the account currency. The buckets are: not yet due (invoice dated on or after date_to), 1 to 30 days, 31 to 60, 61 to 90, 91 to 120 and over 120 days. An invoice exactly 30 days old falls in the 31 to 60 bucket. A client with a negative balance (credit) has it allocated against the oldest buckets first.rows entry in validation_errors.curl --location --globoff 'https://.daftara.com/api2/reports/aged_debtors?date_to=2026-03-31&date_from=&client_id=&client_category=&staff_id=&data[branch_id]=&data[hide_zero_values]=' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'apikey: ' \
--header 'Content-Type: application/json'{
"result": "successful",
"code": 200,
"data": {
"report": {
"key": "aged_debtors",
"title": "string",
"currency": "string",
"date_to": "2019-08-24"
},
"filters": {
"date_from": "string",
"date_to": "2019-08-24",
"client_id": 0,
"client_category": [
0
],
"staff_id": [
0
],
"branch_id": [
0
],
"hide_zero_values": true
},
"rows": [
{
"client_id": 0,
"client_name": "string",
"not_due": 0,
"days_1_30": 0,
"days_31_60": 0,
"days_61_90": 0,
"days_91_120": 0,
"days_120_plus": 0,
"total": 0
}
],
"totals": {
"not_due": 0,
"days_1_30": 0,
"days_31_60": 0,
"days_61_90": 0,
"days_91_120": 0,
"days_120_plus": 0,
"total": 0
}
}
}