The Aged Debtors report shows the total outstanding balance due from customers to the business over time. You can generate it for a company based on recently synced data from your customers' accounting software. The report is available in the **Reports** tab in the Codat portal. Total assets or liabilities are grouped into 30-day periods for each customer, up to the current date. You can adjust the report date, period length, and number of periods to show on each report. The data can be grouped by customer or currency. > It is not guaranteed that write-offs are included in the Aged Debtors report. ## Underlying data The Aged Debtors report is generated from a set of required data types: [Customers](https://docs.codat.io/lending-api#/schemas/Customer), [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice), [Credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote), and [Payments](https://docs.codat.io/lending-api#/schemas/Payment). To generate the report, the underlying data types must have been synced within 24 hours of each other. Otherwise an error is displayed when you try to run the report. Sync the required data types by clicking the link in the error, and then run the report again. > The Aged Debtors report runs based on the **issue dates** of the underlying data types rather than the due date. ## Accessing the Aged Debtors report in Portal Apart from returning the report via the API as JSON and query, you can also return the Aged Debtors report in the Codat portal. 1. In the navigation bar, click **Companies**. 2. Click the name of the company you want to generate the report for. The company's data page is displayed. 3. Click the **Accounting** tab then click **Reports**. 4. Select **Aged Debtors**. 5. _(Optional)_ Edit the default reporting parameters. a. You can change the report date in the **Date** box. By default, the report includes transactions that occurred up to, but not including, today's date. To include transactions for today, enter tomorrow's date. b. In the **Period Length Days** box, select the default period length for each column (the default is 30 days). b. In the **Number of Periods** box, enter the number of periods to show as columns in the report (the default is 4 periods). 6. To run the report, click **Load aged debtors**. 7. The report is generated and displayed at the bottom of the page. The report will be grouped per supplier and depending on the periods requested. The details indicates whether the amounts owed come from outstanding invoices or credit notes.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/AccountingAgedDebtorReport",
"title": "Accounting: Aged debtors report",
"type": "object",
"description": "The Aged Debtors report shows the total outstanding balance due from customers to the business over time. \n\nYou can generate it for a company based on recently synced data from your customers' accounting software. The report is available in the **Reports** tab in the Codat portal.\n\nTotal assets or liabilities are grouped into 30-day periods for each customer, up to the current date. You can adjust the report date, period length, and number of periods to show on each report. The data can be grouped by customer or currency.\n\n> It is not guaranteed that write-offs are included in the Aged Debtors report.\n\n## Underlying data\n\nThe Aged Debtors report is generated from a set of required data types: [Customers](https://docs.codat.io/lending-api#/schemas/Customer), [Invoices](https://docs.codat.io/lending-api#/schemas/Invoice), [Credit notes](https://docs.codat.io/lending-api#/schemas/CreditNote), and [Payments](https://docs.codat.io/lending-api#/schemas/Payment).\n\nTo generate the report, the underlying data types must have been synced within 24 hours of each other. Otherwise an error is displayed when you try to run the report. Sync the required data types by clicking the link in the error, and then run the report again.\n\n> The Aged Debtors report runs based on the **issue dates** of the underlying data types rather than the due date.\n\n## Accessing the Aged Debtors report in Portal\n\nApart from returning the report via the API as JSON and query, you can also return the Aged Debtors report in the Codat portal.\n\n1. In the navigation bar, click **Companies**.\n2. Click the name of the company you want to generate the report for. The company's data page is displayed.\n3. Click the **Accounting** tab then click **Reports**.\n4. Select **Aged Debtors**.\n5. _(Optional)_ Edit the default reporting parameters.\n a. You can change the report date in the **Date** box. By default, the report includes transactions that occurred up to, but not including, today's date. To include transactions for today, enter tomorrow's date. \n b. In the **Period Length Days** box, select the default period length for each column (the default is 30 days).\n b. In the **Number of Periods** box, enter the number of periods to show as columns in the report (the default is 4 periods).\n6. To run the report, click **Load aged debtors**.\n7. The report is generated and displayed at the bottom of the page.\n\nThe report will be grouped per supplier and depending on the periods requested. The details indicates whether the amounts owed come from outstanding invoices or credit notes.",
"properties": {
"generated": {
"$ref": "#/components/schemas/DateTime",
"description": "Date and time the report was generated."
},
"reportDate": {
"$ref": "#/components/schemas/DateTime",
"description": "Date the report is generated up to."
},
"data": {
"type": "array",
"description": "Array of aged debtors.",
"items": {
"$ref": "#/components/schemas/AccountingAgedDebtorReport/definitions/agedDebtor"
}
}
},
"definitions": {
"agedDebtor": {
"title": "Aged debtor",
"type": "object",
"properties": {
"customerId": {
"type": "string",
"description": "Customer ID of the aged debtor.",
"example": "f594cefb-7750-4c3a-bab2-b5322026dee9"
},
"customerName": {
"type": "string",
"description": "Customer name of the aged debtor.",
"example": "John Doe"
},
"agedCurrencyOutstanding": {
"type": "array",
"description": "Array of aged debtors by currency.",
"items": {
"$ref": "#/components/schemas/AgedCurrencyOutstanding"
}
}
}
}
},
"examples": [
{
"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
}
]
}
]
}
]
}
]
}
]
}