Cash flow statement

​

The entity's cash flow statement, indirect method, for each period column in the window. Sections are operating, investing and financing activity plus the computed net change (is_subtotal); rows under each section nest computed lines such as net income above the adjustments that reconcile them to cash. Positive amounts are inflows. start_date and end_date are inclusive; period_type (monthly, quarterly, yearly) chooses the columns, listed under periods and clipped to the window. Amounts are integer atoms of reporting_currency (cents for USD); a null cell means no data for that period rather than zero. The window may span at most 5 years. Built from the general ledger at request time, so every posted entry is reflected immediately.

Query Parameters

  • Inclusive start date for the report

  • Inclusive end date for the report

  • Time period grouping

  • External id of the entity to act for, from GET /v1/entities. Required when signed in with OAuth (an organization can hold several entities; ask the user which one if more than one could apply). Optional with an API key, which is scoped to one entity already.

Responses

  • application/json
  • The window spans more than 5 years (CAPI69), or signed in with OAuth and no entity given (CAPI12).

  • The credential was refused: none sent (CAPI11), an API key that is not valid (CAPI15), or an OAuth sign-in that has expired (CAPI16), was not issued for this API (CAPI17), names an organization T0 does not hold (CAPI18) or a membership that is no longer usable (CAPI19). detail says what to do.

  • The key lacks customer_api:read, or the signed-in user lacks reports:read on the entity (CAPI71); or entity is not the key's own (CAPI14).

  • No such entity in your organization (CAPI13).

  • application/json
Request Example for get/v1/reports/cash-flow
curl 'https://api.t0.ai/v1/reports/cash-flow?start_date=2026-11-30&end_date=2026-11-30&period_type=monthly' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "periods": [
    {
      "id": "string",
      "label": "string",
      "start_date": "2026-11-30",
      "end_date": "2026-11-30"
    }
  ],
  "sections": [
    {
      "key": "string",
      "label": "string",
      "balances": {
        "additionalProperty": 1
      },
      "accounts": [
        {
          "id": "string",
          "account_number": "string",
          "name": "string",
          "balances": {
            "additionalProperty": 1
          },
          "is_subtotal": false,
          "transaction_counts": {
            "additionalProperty": 1
          },
          "drilldown": {
            "account_ids": [
              "string"
            ],
            "requires_cash_line": true,
            "amount_inverted": true,
            "required_counter_account_ids": [
              "string"
            ],
            "excluded_counter_account_ids": [
              "string"
            ]
          },
          "children": [
            {
              "id": "string",
              "account_number": "string",
              "name": "string",
              "balances": {
                "additionalProperty": 1
              },
              "is_subtotal": false,
              "transaction_counts": {
                "additionalProperty": 1
              },
              "drilldown": {
                "account_ids": [
                  "string"
                ],
                "requires_cash_line": true,
                "amount_inverted": true,
                "required_counter_account_ids": [
                  "string"
                ],
                "excluded_counter_account_ids": [
                  "string"
                ]
              }
            }
          ]
        }
      ],
      "is_subtotal": false
    }
  ],
  "reporting_currency": "USD",
  "reporting_currency_source": "functional",
  "amount_unit": "atoms",
  "atoms_per_unit": 1
}