Accounts receivable
Aged debtors report
Returns aged debtors report for company that shows the total outstanding balance due from customers to the business over time.
get/companies/{companyId}/reports/agedDebtor
Query parameters
reportDatestring date
Example:2022-12-31
Date the report is generated up to.
numberOfPeriodsinteger
Example:12
Number of periods to include in the report.
periodLengthDaysinteger
Example:30
The length of period in days.
Response
OK
Example response
{
"generated": "2022-10-23T00:00:00Z",
"reportDate": "2022-10-23T00:00:00Z",
"data": [
{
"customerId": "f594cefb-7750-4c3a-bab2-b5322026dee9",
"customerName": "John Doe",
"agedCurrencyOutstanding": [
{
"currency": "GBP",
"agedOutstandingAmounts": [
{
"fromDate": "2022-10-01T00:00:00Z",
"toDate": "2022-10-31T00:00:00Z",
"amount": 1547.5,
"details": [
{
"name": "Invoices",
"amount": 1547.5
}
]
}
]
}
]
}
]
}