Reorder the budget's flat view (BUD-2). Independent of the groups and of each item's order within its group.
The flat view lists every item in a month without its groups, in the household's own order (`flat_order` on a month). Like `PUT /favorites/order`, `item_ids` may list all items or only some (e.g. the items in the month being viewed): the listed items are placed, in the given order, into the positions they held between them, and the rest keep theirs. Items never placed come after the placed ones, in group order. Every id must be one of the household's items, listed once; otherwise the request fails with `invalid`. Required scope: `budget:write` (personal access tokens; sessions have every scope).
The flat view lists every item in a month without its groups, in the household's own
order (flat_order on a month). Like PUT /favorites/order, item_ids may list all
items or only some (e.g. the items in the month being viewed): the listed items are placed,
in the given order, into the positions they held between them, and the rest keep theirs.
Items never placed come after the placed ones, in group order. Every id must be one of the
household's items, listed once; otherwise the request fails with invalid.
Required scope: budget:write (personal access tokens; sessions have every scope).
Authorization
bearerAuth 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 403insufficient_scope, with the needed scope indetails.required_scope. - Can't manage tokens or passwords (403
session_required). - May expire (401
unauthenticatedafterwards). - Are rate-limited (DEV-3): 120 requests/minute per token with bursts up to 120. Every
response carries
X-RateLimit-Limit,X-RateLimit-Remaining, andX-RateLimit-Reset(seconds until the bucket is full again); over the limit the answer is 429rate_limitedwithRetry-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
ULID.
^[0-9A-HJKMNP-TV-Z]{26}$Header Parameters
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.
^\d{4}-\d{2}-\d{2}$Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X PUT "https://example.com/households/01J8Z3N4Q5R6S7T8V9W0X1Y2Z3/flat-order" \ -H "Content-Type: application/json" \ -d '{ "item_ids": [ "01J8Z3N4Q5R6S7T8V9W0X1Y2Z3" ] }'Reorder the Favorites section (FAV-1). Independent of each item's order within its group. PUT
`item_ids` may list all favorites or only some (e.g. the favorites in the month being viewed). The listed favorites are placed, in the given order, into the positions they held between them in the household's current Favorites order; favorites that are not listed keep their positions. For example, with Favorites `[A, B, C, D]`, sending `[D, B]` gives `[A, D, C, B]`. Every id must be a current favorite, listed once; otherwise the request fails with `invalid`. Required scope: `budget:write` (personal access tokens; sessions have every scope).
The Transactions panel tabs (TXN-8, TXN-2a, TXN-4a) GET
Required scope: `transactions:read` (personal access tokens; sessions have every scope).