SpendRock Docs
Items

The recurring transactions that hold a Category or Group in place (FUT-16)

A recurring transaction keeps its Category in every month it repeats in, so a Category it still repeats in can't be archived (from `{month}` on, `onward=true`) or deleted from `{month}` (or with its Group) until it's moved or stopped. This lists them ahead of time, so a confirmation can offer one choice for all of them: `move_recurring_to` or `stop_recurring` on the archive or delete. Required scope: `budget:read` (personal access tokens; sessions have every scope).

GET
/households/{householdId}/months/{month}/recurring-holds

A recurring transaction keeps its Category in every month it repeats in, so a Category it still repeats in can't be archived (from {month} on, onward=true) or deleted from {month} (or with its Group) until it's moved or stopped. This lists them ahead of time, so a confirmation can offer one choice for all of them: move_recurring_to or stop_recurring on the archive or delete.

Required scope: budget: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}$
month*string
Match^[0-9]{4}-(0[1-9]|1[0-2])$

Query Parameters

item_id?string

The Category. One of item_id or group_id.

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

The Group (its Categories in this month).

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

Archiving (from this month on) rather than deleting from this month.

Defaultfalse

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/months/2026-12/recurring-holds"
{  "recurring": [    {      "rule_id": "01J8Z3N4Q5R6S7T8V9W0X1Y2Z3",      "amount": 1234,      "day_of_month": 1,      "merchant": "string",      "type": "expense",      "item_id": "01J8Z3N4Q5R6S7T8V9W0X1Y2Z3",      "item_name": "string",      "split": true    }  ]}

Set what a Debt owes now; records a "Balance Updated" entry for the difference (DEBT-4). Never counts as Spent. POST

For interest, fees, new charges, and statement corrections. An unchanged balance is recorded too (a $0.00 entry, "Balance confirmed"), which clears `debt.check_due`. `{month}` must be the month the category became a Debt or later (`not_debt`). Required scope: `budget:write` (personal access tokens; sessions have every scope).

Archive a category from {month} on (ITEM-9). POST

Archiving hides a category from `{month}` onward while keeping its history. `{month}` is the first month it's archived from: the current month or a later one (the web and app send the month being viewed). A month that has passed is refused with `422 month_in_past`, so history is never rewritten; to allow for time zones, "passed" means passed everywhere on Earth. The category: - leaves the budget of `{month}` and every later month that already exists, and its Planned amounts there go back to Left to Budget. A month with transactions tracked to it keeps it, with `archived_from` set, so nothing is untracked. - stays in every earlier month, unchanged, with `archived_from` set. - isn't copied into budgets created later. Its name stays reserved. Adding a category with the same name to a month from `{month}` on brings this one back (unarchives it) instead of making a new one. To list archived categories, use `GET /items?include_archived=true`. Works on income and expense categories alike. Required scope: `budget:write` (personal access tokens; sessions have every scope).