Retrieve Cash Flow Statements
This method is used to extract the customer's cash flow statements and have access to trustful financial information. The call is made through the GET /companies/{companyId}/data/financials/cashFlowStatement Codat endpoint.
Before calling this method, make sure that the Check Status Data result contains the following parameter response: "dataType": "cashFlowStatement" with "currentStatus": "Complete
Copy
{
"reports": [
{
"fromDate": "2021-02-01T00:00:00",
"toDate": "2021-02-28T00:00:00",
"cashReceipts": {
"accountId": "cashReceipts",
"name": "Cash Receipts",
"value": 18377.72,
"items": [
{
"accountId": "1b6266d1-1e44-46c5-8eb5-a8f98e03124e",
"name": "Accounts Receivable",
"value": 11417.63,
"items": []
},
{
"accountId": "72df89d2-512b-4455-af51-a6b563733842",
"name": "Income",
"value": 6960.09,
"items": []
},
{
"accountId": "68794a8f-b22d-4520-b97b-025b7cb10f94",
"name": "Other Income",
"value": 0,
"items": []
}
]
},
"cashPayments": {
"accountId": "cashPayments",
"name": "Cash Payments",
"value": 12377.81,
"items": [
{
"accountId": "53bf27a7-7497-4c61-9887-dfaad5c6d80a",
"name": "Accounts Payable",
"value": 7479.21,
"items": []
},
{
"accountId": "7403e960-5b72-42ff-abf4-c870ad8910bd",
"name": "Cost of Sales",
"value": 700,
"items": []
},
{
"accountId": "e6f7e297-59d6-4bd5-9353-478ee9b39685",
"name": "Expenses",
"value": 4198.6,
"items": []
},
{
"accountId": "b5e801e8-8dbc-4390-ac99-3b0fff54a89f",
"name": "Other Expenses",
"value": 0,
"items": []
}
]
}
}
],
"reportBasis": "Cash",
"reportInput": "Direct",
"currency": "GBP",
"mostRecentAvailableMonth": "2021-02-28T00:00:00",
"earliestAvailableMonth": "2019-03-01T00:00:00"
}