Spending

Get Cashflow By Period

GET
/v1/households/{household_id}/analytics/cashflow-by-period

Returns income, expenses, and net cashflow for every calendar period overlapping an inclusive date range, in the household's reporting currency (income is positive, expenses are negative, net is their sum).

Empty periods have zero totals. Period boundaries span the full calendar period, while totals only include the requested dates. is_complete reports whether the period has ended in the household's time zone. Excludes transfer categories, hidden or deleted transactions, deleted accounts, and split parents (their children count instead). Pending transactions are included.

Authorization

PersonalApiToken
AuthorizationBearer <token>

Personal API token (penny_pat_…). Paste only the token; the Bearer prefix is added automatically. Read-only tokens only allow read requests, and read/write tokens follow your current household membership and role. See https://penny.finance/docs/api#authentication.

In: header

Path Parameters

household_id*string

ID of the household that owns the resource. GET /v1/households lists the households you can access.

Query Parameters

start_date*string

First day of the range, inclusive, as YYYY-MM-DD. Transactions are selected by their date.

Formatdate
end_date*string

Last day of the range, inclusive, as YYYY-MM-DD. If it is earlier than start_date, no transactions match; this is not an error.

Formatdate
time_segment*TimeSegment

Size of the calendar periods the range is divided into. The response has one entry in periods for every period that overlaps the range.

Value in

  • "daily"
  • "monthly"
  • "quarterly"
  • "yearly"
account_ids?array<string>

Comma-separated account IDs, such as Ac7kP2mN9qRs,Ac4tW8bL1xDv; repeating the parameter for each ID also works. Limits the results to transactions in these accounts.

tag_ids?array<string>

Comma-separated tag IDs, such as Tg8qN1cK5rWd,Tg2bX6mJ9pHs; repeating the parameter for each ID also works. Limits the results to transactions that have at least one of these tags.

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://api.penny.finance/v1/households/Hh4vK8pQ2sLm/analytics/cashflow-by-period?start_date=2026-08-01&end_date=2026-08-31&time_segment=monthly" \  -H "Authorization: Bearer $PENNY_API_TOKEN"
{  "periods": [    {      "start_date": "2026-08-01",      "end_date": "2026-08-31",      "income": {        "amount": "5200.00",        "currency": "USD"      },      "expenses": {        "amount": "-450.92",        "currency": "USD"      },      "net": {        "amount": "4749.08",        "currency": "USD"      },      "is_complete": false    }  ]}