Reports
Get Cash Flow Report
Get the cash flow report for an instance within for a period. Requires Tier 1 subscription.
GET
/
v0
/
reports
/
cash-flow
Authorization
Header
Query
curl --request GET \
--url https://api.sandbox.teal.dev/v0/reports/cash-flow \
--header 'Authorization: <authorization>' \
--header 'teal-instance-id: <teal-instance-id>'
{
"cash_flow_ledgers": [
{
"children": [],
"debit_amount": -1032.23,
"ledger_id": "Jg8XPxz23f2XtHKPFsocrX",
"lines": [],
"name": "Credit Card 3821",
"parent_id": "UUbwp3vRvbPUd2dwHaqWgU",
"total_debit_amount": -1032.23
}
],
"ending_balances": [
{
"children": [],
"debit_balance": 3822.83,
"ledger_id": "FwLHD46VLJXx87oStFW7uz",
"ledger_name": "Savings Account 3822",
"parent_id": "UUbwp3vRvbPUd2dwHaqWgU",
"sort_code": "5300",
"total_debit_balance": 3822.83
}
],
"ending_debit_balance": 28182.42,
"starting_balances": [
{
"children": [],
"debit_balance": 3822.83,
"ledger_id": "FwLHD46VLJXx87oStFW7uz",
"ledger_name": "Savings Account 3822",
"parent_id": "UUbwp3vRvbPUd2dwHaqWgU",
"sort_code": "5300",
"total_debit_balance": 3822.83
}
],
"starting_debit_balance": 23282.12
}
Authorizations
Authorization
string
headerrequiredThe access token received from the authorization server in the OAuth 2.0 flow.
Headers
teal-instance-id
string
requiredThe Teal instance ID
Query Parameters
start_date
string
requiredThe start date of the cash flow report, inclusive
end_date
string
requiredThe end date of the cash flow report, inclusive
Response
200 - application/json
cash_flow_ledgers
object[]
requiredending_balances
object[]
requiredending_debit_balance
string
requiredstarting_balances
object[]
requiredstarting_debit_balance
string
requiredcurl --request GET \
--url https://api.sandbox.teal.dev/v0/reports/cash-flow \
--header 'Authorization: <authorization>' \
--header 'teal-instance-id: <teal-instance-id>'
{
"cash_flow_ledgers": [
{
"children": [],
"debit_amount": -1032.23,
"ledger_id": "Jg8XPxz23f2XtHKPFsocrX",
"lines": [],
"name": "Credit Card 3821",
"parent_id": "UUbwp3vRvbPUd2dwHaqWgU",
"total_debit_amount": -1032.23
}
],
"ending_balances": [
{
"children": [],
"debit_balance": 3822.83,
"ledger_id": "FwLHD46VLJXx87oStFW7uz",
"ledger_name": "Savings Account 3822",
"parent_id": "UUbwp3vRvbPUd2dwHaqWgU",
"sort_code": "5300",
"total_debit_balance": 3822.83
}
],
"ending_debit_balance": 28182.42,
"starting_balances": [
{
"children": [],
"debit_balance": 3822.83,
"ledger_id": "FwLHD46VLJXx87oStFW7uz",
"ledger_name": "Savings Account 3822",
"parent_id": "UUbwp3vRvbPUd2dwHaqWgU",
"sort_code": "5300",
"total_debit_balance": 3822.83
}
],
"starting_debit_balance": 23282.12
}