Bank statements
List categorized bank statement accounts
Changed onThe Get categorized bank statement accounts endpoint returns a list of bank accounts associated with categorized transactions for a company.
Before using it, you must call the Generate report endpoint of type categorizedBankStatement.
get/companies/{companyId}/reports/categorizedBankStatement/{reportId}/accounts
Request
- Base URLhttps://api.codat.io
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Response
OK
Example response
{
"results": [
{
"sourceRef": {
"sourceType": "Banking"
},
"platformName": "Banking Sandbox",
"accountProvider": "Lloyds Bank",
"accountName": "Business Savings Account",
"accountType": "Debit",
"currency": "GBP",
"currentBalance": 0
},
{
"sourceRef": {
"sourceType": "Banking"
},
"platformName": "Banking Sandbox",
"accountProvider": "Lloyds Bank",
"accountName": "Banking - Business Credit Card",
"accountType": "Credit",
"currency": "GBP",
"currentBalance": 0
},
{
"sourceRef": {
"sourceType": "Banking"
},
"platformName": "Banking Sandbox",
"accountProvider": "Lloyds Bank",
"accountName": "Business Undeposited Funds",
"accountType": "Debit",
"currency": "GBP",
"currentBalance": 0
},
{
"sourceRef": {
"sourceType": "Banking"
},
"platformName": "Banking Sandbox",
"accountProvider": "Lloyds Bank",
"accountName": "Business Current Account",
"accountType": "Debit",
"currency": "GBP",
"currentBalance": 0
}
],
"pageNumber": 1,
"pageSize": 10,
"totalResults": 15,
"_links": {
"self": {
"href": "/companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/accounts"
},
"current": {
"href": "/companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/accounts?page=1&pageSize=10"
},
"next": {
"href": "/companies/82458839-6812-49e9-baac-7dcf8c32de1f/reports/categorizedBankStatement/latest/accounts?page=2&pageSize=10"
}
}
}Changes
- info
endpoint added
- info