Archived categories
How archived categories show up in months and in GET /households/{householdId}/items.
A category (an "item" in the API) can be archived when it's no longer used. Archiving hides it from a month onward and keeps its history before then. In the app and on the website it's Archive on the category's card under Categories.
In the data
Every item has archived_from:
null: not archived."YYYY-MM": archived from that month. The item is in no budget from this month on, and months created later don't copy it.
Months are never filtered
GET /households/{householdId}/months/{month} returns exactly the items in that month, archived or not:
- Before
archived_from, an archived item is there as it always was, with its figures, andarchived_fromset so you can tell it's archived. - From
archived_fromon, it isn't in the month at all.
So history adds up the same as it always did, and a month's totals never depend on a filter.
Listing every category
GET /households/{householdId}/items lists the household's categories, each once, whichever months they're in. Archived ones
are left out by default. Add include_archived=true to list them too, the same way
GET /households handles archived households.
# active categories
curl -s "$SR_API/households/$SR_HH/items" -H "Authorization: Bearer $SR_TOKEN"
# active and archived
curl -s "$SR_API/households/$SR_HH/items?include_archived=true" -H "Authorization: Bearer $SR_TOKEN"To list only archived categories, include them and keep those whose archived_from isn't null:
curl -s "$SR_API/households/$SR_HH/items?include_archived=true" -H "Authorization: Bearer $SR_TOKEN" \
| jq '.items[] | select(.archived_from != null)'Archiving and unarchiving
POST /households/{householdId}/months/{month}/items/{itemId}/archivearchives an item from{month}on. It leaves{month}and every later month that exists; like deleting it from those months, transactions tracked to it there are untracked. Already archived:422 already_archived.POST /households/{householdId}/months/{month}/items/{itemId}/unarchiveputs it back in{month}and every later month that exists, at $0.00 planned, and clearsarchived_from. Not archived:422 not_archived.
{month} must be the current month or a later one: archiving never rewrites a month that has passed.
An earlier month is 422 month_in_past. To allow for time zones, a month has only passed once it has
passed everywhere, so sending the current month in the user's own time zone always works.
Both return the item. Names stay unique, archived items included: creating an item with an archived
item's name in a month it's archived in brings that item back instead (archived_from becomes
null).
Recurring transactions hold a category in place
A recurring transaction keeps its category in every month it repeats in: starting a month adds the
categories its active recurring transactions need (at $0.00 planned), and so does creating one or
changing its category (PATCH /households/{householdId}/recurring/{ruleId} with item_id) for months already started. So an
item a recurring transaction still repeats in can't be archived, or deleted from a month it repeats
in (or with its group), until each one is moved or stopped. Without a choice, those requests return
409 recurring_uses, with details.recurring listing them.
List them ahead of time, for a confirmation that asks about all of them:
# archiving: those that repeat from {month} on
curl -s "$SR_API/households/$SR_HH/months/2026-11/recurring-holds?item_id=$ITEM&onward=true" \
-H "Authorization: Bearer $SR_TOKEN"
# deleting from {month}: those that repeat in it, or have a copy tracked there (group_id for a group)
curl -s "$SR_API/households/$SR_HH/months/2026-11/recurring-holds?item_id=$ITEM" -H "Authorization: Bearer $SR_TOKEN"Each has rule_id, merchant, type, amount, day_of_month, the item_id and item_name it
repeats in, and split (spread across several categories).
Then send one choice for all of them with the archive or delete:
move_recurring_to={itemId}moves them to that category from their next copy on. A split one gets it in place of the one being removed. Deleting from a month also moves that month's copies, so they stay tracked. It must be a category of the same kind (income or expense), not the one being removed, archived, or One-Off.stop_recurring=truestops them. Copies already added stay.
curl -s -X POST "$SR_API/households/$SR_HH/months/2026-11/items/$ITEM/archive?move_recurring_to=$OTHER" \
-H "Authorization: Bearer $SR_TOKEN"A paused recurring transaction still holds its category (it repeats again later); a stopped or ended one doesn't.