SpendRock Docs
Transactions

The Transactions panel tabs (TXN-8, TXN-2a, TXN-4a)

Required scope: `transactions:read` (personal access tokens; sessions have every scope).

GET
/households/{householdId}/transactions

Required scope: transactions:read (personal access tokens; sessions have every scope).

Authorization

bearerAuth
AuthorizationBearer <token>

Authorization: Bearer <token>: a mobile session token, or a personal access token (srp_…) created in Account → API tokens (DEV-1).

Personal access tokens:

  • Act as their user, in any household the user belongs to (each call names it in its path).
  • Carry scopes (DEV-2), and each operation's description names the one it needs: budget:read / budget:write (months, groups, items, funds, favorites, harvest, cover), transactions:read / transactions:write (transactions, merchant suggestions), households:read / households:manage (households, members, invites), account:read / account:write (me, settings). A write scope includes its read scope. A call outside the token's scopes gets 403 insufficient_scope, with the needed scope in details.required_scope.
  • Can't manage tokens or passwords (403 session_required).
  • May expire (401 unauthenticated afterwards).
  • Are rate-limited (DEV-3): 120 requests/minute per token with bursts up to 120. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset (seconds until the bucket is full again); over the limit the answer is 429 rate_limited with Retry-After (seconds). Limits are kept per server instance, so they're approximate.

Subscriptions (BILL-4): once a household's free trial is over and its owner has no subscription, every budget, transaction, and merchant-suggestion call answers 402 payment_required. Account, settings, and household calls keep working; subscribing (on the web, Account → Billing) restores access to everything.

Sessions (web cookie or mobile bearer) have every scope and aren't limited this way. Cross-origin browser calls (CORS, for the API docs playground) must use a bearer token; cookies are never accepted cross-origin.

In: header

Path Parameters

householdId*string

ULID.

Match^[0-9A-HJKMNP-TV-Z]{26}$

Query Parameters

view*string

Value in

  • "untracked"
  • "tracked"
  • "deleted"
month?string

For tracked: limit to this budget month.

Match^[0-9]{4}-(0[1-9]|1[0-2])$
from?string

For tracked without month: the first budget month to include.

Match^[0-9]{4}-(0[1-9]|1[0-2])$
to?string

For tracked without month: the last budget month to include.

Match^[0-9]{4}-(0[1-9]|1[0-2])$
q?string

Search by merchant (case-insensitive substring) or amount. With cents (54.20) the amount is exact; a whole-dollar amount (54) matches within $0.99 either side, so 54 finds $53.20 and $54.80.

Lengthlength <= 100
cursor?string
limit?integer
Range1 <= value <= 200
Default100

Header Parameters

SpendRock-Version?string

The API version (DEV-5), YYYY-MM-DD. Without it: your personal access token's pinned version, or the latest. 400 unknown_version / version_retired.

Match^\d{4}-\d{2}-\d{2}$

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/households/01J8Z3N4Q5R6S7T8V9W0X1Y2Z3/transactions?view=untracked"
{  "transactions": [    {      "id": "01J8Z3N4Q5R6S7T8V9W0X1Y2Z3",      "version": 1,      "type": "expense",      "amount": 1234,      "date": "2019-08-24",      "merchant": "string",      "note": "string",      "budget_month": "2026-12",      "splits": [        {          "item_id": "01J8Z3N4Q5R6S7T8V9W0X1Y2Z3",          "amount": 1234,          "item_name": "string"        }      ],      "status": "tracked",      "deleted_at": "2019-08-24T14:15:22Z",      "location": {        "lat": -90,        "lng": -180,        "accuracy_m": 0      },      "created_by": "string",      "created_by_name": "string",      "updated_by": "string",      "updated_by_name": "string",      "created_at": "2019-08-24T14:15:22Z",      "updated_at": "2019-08-24T14:15:22Z",      "recurring": {        "rule_id": "string",        "day_of_month": 1,        "end_month": "2026-12"      }    }  ],  "next_cursor": "string",  "untracked_count": 0}