Start a recurring expense or income on a later day (FUT-16)
Nothing is added now: its first copy is added on `start_date`, then one on that day of each following month (the month's last day when it's shorter). Until then it's among the month's Upcoming (`GET /months/{month}/upcoming`). `start_date` must be after today in `time_zone`. To start today or earlier, create a transaction with `repeats_monthly`: that transaction is the first one. Idempotent on `id`: sending the same `id` again returns the rule it made. Required scope: `transactions:write` (personal access tokens; sessions have every scope).
Nothing is added now: its first copy is added on start_date, then one on that day of each
following month (the month's last day when it's shorter). Until then it's among the month's
Upcoming (GET /months/{month}/upcoming). start_date must be after today in time_zone.
To start today or earlier, create a transaction with repeats_monthly: that transaction is
the first one.
Idempotent on id: sending the same id again returns the rule it made.
Required scope: transactions: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
application/json
application/json
curl -X POST "https://example.com/households/01J8Z3N4Q5R6S7T8V9W0X1Y2Z3/recurring" \ -H "Content-Type: application/json" \ -d '{ "id": "01J8Z3N4Q5R6S7T8V9W0X1Y2Z3", "type": "expense", "amount": 1234, "start_date": "2019-08-24", "splits": [ { "item_id": "01J8Z3N4Q5R6S7T8V9W0X1Y2Z3", "amount": 1234 } ] }'{ "id": "string", "type": "expense", "state": "active", "amount": 1234, "merchant": "string", "note": "string", "splits": [ { "item_id": "01J8Z3N4Q5R6S7T8V9W0X1Y2Z3", "amount": 1234, "item_name": "string" } ], "day_of_month": 1, "next_date": "2019-08-24", "end_month": "2026-12", "ended": true, "resumes_in": "2026-12", "stopped_at": "2019-08-24T14:15:22Z", "created_at": "2019-08-24T14:15:22Z", "created_by": "string", "created_by_name": "string"}The household's recurring expenses and income (FUT-16), by day of month GET
A transaction starts repeating with `repeats_monthly`; SpendRock then adds a copy on that day of each month (tracked when that month's budget has its categories, untracked otherwise). Required scope: `transactions:read` (personal access tokens; sessions have every scope).
The month's recurring copies still to come (FUT-16), by date GET
Each active rule whose copy in `{month}` hasn't been added yet: its day there is on or after the rule's `next_date`, and `{month}` is within its `end_month`. A past month has none; a later month lists every active rule. The month needn't have a budget. Required scope: `transactions:read` (personal access tokens; sessions have every scope).