SpendRock Docs

Errors

The error format, HTTP statuses, and every error code.

Format

Every error response has a JSON body with a stable, machine-readable code and a human-readable message. Some add details.

{
  "code": "item_not_in_month",
  "message": "That Category isn't available. Choose another.",
  "details": { "item_id": "01J…", "month": "2026-12" },
  "fields": [{ "field": "splits[0].item_id", "message": "That Category isn't available. Choose another." }]
}
  • Branch on code, never on message. Codes are stable within /v1; messages may change.
  • message is safe to show to a user.
  • details is an object whose contents depend on the code (for example details.required_scope for insufficient_scope). Ignore keys you don't know.
  • fields, when present, names the request fields at fault, so a form can mark them (like Rails' errors on a model). Field names are the request's, with [n] for an array index: amount, date, splits[0].item_id, version.
  • New codes may be added in /v1. Treat an unknown code by its HTTP status.

Statuses

StatusMeaning
400The request didn't parse: malformed JSON, a wrong type, or a bad parameter (invalid).
401No valid credentials: missing, revoked, or expired token.
403Authenticated, but not allowed: missing scope, not a member, not the owner, and so on.
404No such thing (or no budget for that month yet).
409Conflicts with what exists: a name that's taken, a month that exists, a reused transaction ID.
410A link that was valid but isn't any more (an expired or used invite or email link).
422Well-formed, but breaks a budgeting rule (the splits don't add up, the item isn't in that month, …).
429Too many requests. See Rate limits.
500Something went wrong on our side (internal). It's reported to us automatically; retry later.
502, 503, 504SpendRock can't be reached right now. These come from our edge, not the API, so the body is an HTML page, not an error object; retry with backoff, and see status.spendrock.com for what's known.

Codes

Authentication and access

CodeStatusMeaning
unauthenticated401No credentials, or the token or session is revoked or expired.
insufficient_scope403The token lacks the scope this operation needs; details.required_scope names it. See scopes.
session_required403Only a signed-in session can do this (managing tokens, changing your password).
reauth_required403Adding a way to log in (a password) needs a recent login. Log in again, then retry.
not_invited403Logging in: the account isn't on the invite list and has no pending invite.
not_a_member403You aren't a current member of that household. See Households.
not_owner403Only the household's owner can do this.
rate_limited429Too many requests; wait Retry-After seconds.
unknown_version400SpendRock-Version (or api_version) isn't a version. See Versioning.
version_retired400That version is past its support window; details.oldest_supported names the oldest still served.

Budgets, groups, and items

CodeStatusMeaning
not_found404No such group, item, transaction, household, or invite (or it isn't in this household).
month_not_created404 / 422The month has no budget yet: 404 when reading it, 422 when writing to it. Create it with POST /households/{householdId}/months/{month}.
month_exists409The month already has a budget.
no_previous_month409Resetting with "replace" needs an earlier budget to copy, and there isn't one.
name_taken409A group or item with that name already exists (names are unique within a budget).
recurring_uses409A recurring transaction still repeats in the item, so it can't be archived or deleted from that month (or with its group). details.recurring lists each (rule_id, merchant, type, item_id, item_name, split). Send move_recurring_to or stop_recurring with the archive or delete to resolve them all at once; GET /households/{householdId}/months/{month}/recurring-holds lists them ahead of time.
income_group_protected422The Income group can't be deleted.
kind_mismatch422The item's kind doesn't allow this: income items can't be funds, favorites, harvested, or covered, can't leave Income; funds can't be harvested or covered; an expense can't be split to an income item; an item a recurring transaction repeats in can't be made One-Off.
already_fund422The item is already a fund.
not_fund422The operation only applies to funds.
already_archived422The item is already archived. See Archived categories.
not_archived422Unarchiving an item that isn't archived.
month_in_past422Archiving or unarchiving from a month that has passed. Use the current month or a later one.
nothing_to_harvest422The item has nothing left over to move back to Left to Budget (after what this month's upcoming recurring transactions will need).
nothing_to_cover422The item isn't overspent, and this month's upcoming recurring transactions won't take it past Planned, so there's nothing to cover.
not_enough_left_to_budget422The item is overspent by more than there is in Left to Budget.
invalid400 / 422Generic validation failure; message says what's wrong.

Transactions

CodeStatusMeaning
id_conflict409That transaction ID was already used with a different body. See Idempotency.
version_conflict409The transaction changed since the version you sent; nothing changed. details.current_version has its version now. See Idempotency.
amount_not_positive422Amounts must be greater than zero (the type gives the direction).
split_not_positive422Every split's amount must be greater than zero.
splits_do_not_sum422The splits must add up to the transaction's amount.
duplicate_split_item422Two splits point at the same item.
item_not_in_month422A split's item doesn't exist in the transaction's budget month.

Households and invites

CodeStatusMeaning
already_member409That person is already in the household.
invite_email_mismatch403The invite was sent to a different email than the one you're logged in with.
invite_unavailable410The invite expired, or was revoked, declined, or already accepted.
last_household422You can't leave, delete, or archive your only (non-archived) household.
personal_household422Your personal household can't be deleted, and its owner can't leave it.
owner_must_transfer422Transfer ownership before leaving a household others still belong to.
default_household422Your default household can't be archived; pick another default first.
household_archived422An archived household can't be your default.
choose_default422Leaving your default household: say which household becomes the new default.
household_full422A household can have up to 10 members, counting pending invites. Revoke an invite or remove a member first.

Limits

SpendRock caps how many of each thing a household or a person can have. The limits are well past what a budget needs, and exist to stop a runaway script from filling an account. At one, creating another answers:

CodeStatusMeaning
limit_reached422At a limit. details.resource says which, details.limit how many, and message what to do.
details.resourceLimit
households50 households you belong to, archived ones included
access_tokens50 personal access tokens
logins10 connected Google or Apple accounts
passkeys20 passkeys
groups100 groups in a household
categories2,000 items in a household, archived ones included
months1,200 months with a budget
recurring_transactions2,000 recurring transactions, ended ones included
invites500 invites sent by a household, any status
untracked_transactions5,000 untracked transactions (deleted ones don't count)
month_transactions5,000 transactions tracked to one budget month (deleted ones don't count)
stored_transactions20,000 transactions in one budget month, or 100,000 untracked, deleted ones included
splits50 splits on one transaction
balance_updates200 balance updates to one fund or debt in one month

A household also has at most 10 members (household_full, above).

Email + password accounts

These apply only where email + password login is turned on.

CodeStatusMeaning
bad_credentials401Email or password is incorrect.
email_unverified403Verify the email address first.
invalid_link410The email link expired or was already used.

Server

CodeStatusMeaning
internal500Unexpected error. Retry later; if it keeps happening, let us know.

For what's going on when requests fail across the board, see status.spendrock.com, which runs apart from SpendRock. Its status.json is the same thing for programs, and feed.atom for feed readers.

On this page