Skip to content

API reference

Every operation the Allmoni API answers, generated from its contract at each build.

Base URL
https://api.allmoni.com/api
Requests
JSON over HTTPS. Reads are GET with query parameters, writes are POST with a JSON body.
Signing in
A session from Allmoni’s sign-in, or a personal access token. How authentication works
Refusals
An HTTP status and a JSON body whose code names the refusal. Signed out is 401, a book you are not a member of is 404, and an action your role does not allow is 403.
Document
OpenAPI 3.1.1, 244 operations

System

GET /system/health Check the API is up, its build, the worker’s last heartbeat and attachments system.health

Answer (200, JSON)

  • ok true required
  • build string required
  • heartbeatAt string (date-time) | null required
  • attachments "ready" | "unavailable" required
  • maintenance boolean required
  • edgeAttested boolean optional

Access

GET /access/me Get the signed-in person, their household and the books they can open access.me

Answer (200, JSON)

  • user object required
  • tenant object required
  • books array of object required

Books

GET /books/list List the caller’s books, archived ones too, oldest first books.list

Answer (200, JSON list of objects)

  • id string required
  • name string required
  • baseCurrency string required
  • role "owner" | "editor" | "viewer" required
  • memberCount integer required
  • createdAt string (date-time) required
  • archivedAt string (date-time) | null required
  • icon object required
  • linksBanks boolean required

POST /books/create Start a new book; the caller becomes its owner books.create

Body (JSON)

  • name string required
  • baseCurrency string required

Answer (200, JSON)

  • id string required
  • name string required
  • baseCurrency string required
  • role "owner" | "editor" | "viewer" required
  • memberCount integer required
  • createdAt string (date-time) required
  • archivedAt string (date-time) | null required
  • icon object required
  • linksBanks boolean required

Refusals

  • 409: PLAN_LIMIT

POST /books/rename Rename a book, unless someone else renamed it since books.rename

Body (JSON)

  • bookId string required
  • name string required
  • fromName string required

Answer (200, JSON)

  • id string required
  • name string required
  • baseCurrency string required
  • role "owner" | "editor" | "viewer" required
  • memberCount integer required
  • createdAt string (date-time) required
  • archivedAt string (date-time) | null required
  • icon object required
  • linksBanks boolean required

Refusals

  • 409: BOOK_ARCHIVED, BOOK_CHANGED

POST /books/archive Archive a book: still readable, no longer changeable books.archive

Body (JSON)

  • bookId string required

Answer (200, JSON)

  • id string required
  • name string required
  • baseCurrency string required
  • role "owner" | "editor" | "viewer" required
  • memberCount integer required
  • createdAt string (date-time) required
  • archivedAt string (date-time) | null required
  • icon object required
  • linksBanks boolean required

POST /books/unarchive Bring an archived book back, open to changes again books.unarchive

Body (JSON)

  • bookId string required

Answer (200, JSON)

  • id string required
  • name string required
  • baseCurrency string required
  • role "owner" | "editor" | "viewer" required
  • memberCount integer required
  • createdAt string (date-time) required
  • archivedAt string (date-time) | null required
  • icon object required
  • linksBanks boolean required

POST /books/changeCurrency Change a book’s base currency and work out every base amount again books.changeCurrency

Body (JSON)

  • bookId string required
  • baseCurrency string required
  • fromBaseCurrency string required

Answer (200, JSON)

  • id string required
  • name string required
  • baseCurrency string required
  • role "owner" | "editor" | "viewer" required
  • memberCount integer required
  • createdAt string (date-time) required
  • archivedAt string (date-time) | null required
  • icon object required
  • linksBanks boolean required

Refusals

  • 409: BOOK_ARCHIVED, BOOK_CHANGED

POST /books/setIcon Set a book’s icon: its letter, a colour with a glyph, or a picture books.setIcon

Body (JSON)

  • bookId string required
  • icon object required

Answer (200, JSON)

  • id string required
  • name string required
  • baseCurrency string required
  • role "owner" | "editor" | "viewer" required
  • memberCount integer required
  • createdAt string (date-time) required
  • archivedAt string (date-time) | null required
  • icon object required
  • linksBanks boolean required

Refusals

  • 409: BOOK_ARCHIVED
  • 422: ICON_UNREADABLE

GET /books/members/list List a book’s members and, for those who manage them, open invitations books.members.list

Parameters

  • bookId string query, required

Answer (200, JSON)

  • members array of object required
  • invites array of object required

POST /books/members/invite Email someone a link to join a book in a role, open for 7 days books.members.invite

Body (JSON)

  • bookId string required
  • email string (email) required
  • role "owner" | "editor" | "viewer" required

Answer (200, JSON)

  • id string required
  • email string required
  • role "owner" | "editor" | "viewer" required
  • expiresAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, ALREADY_MEMBER, PLAN_LIMIT

POST /books/members/cancelInvite Cancel an open invitation so its link stops working books.members.cancelInvite

Body (JSON)

  • bookId string required
  • inviteId string required

Answer (200, JSON)

  • cancelled boolean required

POST /books/members/remove Remove another member from a book at once books.members.remove

Body (JSON)

  • bookId string required
  • userId string required

Answer (200, JSON)

  • removed boolean required

POST /books/members/leave Leave a book, handing it on if you are its only owner books.members.leave

Body (JSON)

  • bookId string required

Answer (200, JSON)

  • left boolean required

Refusals

  • 409: LAST_MEMBER

POST /books/join Accept an invitation and join its book books.join

Body (JSON)

  • token string required

Answer (200, JSON)

  • id string required
  • name string required
  • baseCurrency string required
  • role "owner" | "editor" | "viewer" required
  • memberCount integer required
  • createdAt string (date-time) required
  • archivedAt string (date-time) | null required
  • icon object required
  • linksBanks boolean required

Refusals

  • 409: INVITATION_INVALID, INVITE_OTHER_HOUSEHOLD, PLAN_LIMIT

Connections

GET /connections/request Show who asks to connect an agent, for what, and the books it could see connections.request

Parameters

  • signedRequest string query, required

Refusals

  • 409: ACCOUNT_LEAVING

POST /connections/decide Allow or refuse an agent’s request to connect, with its books and scopes connections.decide

Body (JSON)

  • signedRequest string required
  • allow boolean required
  • bookIds array of string required
  • scopes array of "finance:read" | "finance:write" required

Answer (200, JSON)

  • redirectTo string required

Refusals

  • 403: SESSION_NOT_FRESH
  • 409: TOO_MANY_CONNECTIONS, ACCOUNT_LEAVING
  • 410: CONNECTION_REQUEST_EXPIRED

GET /connections/list List your live agent connections and personal access tokens, newest first connections.list

Answer (200, JSON)

  • available boolean required
  • tokens boolean required
  • connections array of object required

POST /connections/revoke Disconnect an agent or revoke a personal access token at once connections.revoke

Body (JSON)

  • id string required

POST /connections/tokens/create Create a personal access token for chosen books, shown only once connections.tokens.create

Body (JSON)

  • name string required
  • scopes array of "finance:read" | "finance:write" required
  • bookIds array of string required
  • reauth object required
  • expiresInDays integer optional

Answer (200, JSON)

  • id string required
  • token string required
  • expiresAt string (date-time) required

Refusals

  • 400: INVALID_PASSWORD, AUTHENTICATION_FAILED
  • 403: SESSION_NOT_FRESH
  • 409: TOO_MANY_CONNECTIONS, ACCOUNT_LEAVING, TOKENS_UNAVAILABLE
  • 429: TOO_MANY_ATTEMPTS

POST /connections/tokens/revoke Revoke one of your personal access tokens at once connections.tokens.revoke

Body (JSON)

  • id string required

Ledger

GET /ledger/assets/list List a book’s currencies, coins and securities with their decimal places ledger.assets.list

Parameters

  • bookId string query, required

Answer (200, JSON list of objects)

  • code string required
  • kind "fiat" | "crypto" | "security" required
  • precision integer required
  • name string | null required

POST /ledger/assets/create Add a currency, coin or security to a book; adding it again changes nothing ledger.assets.create

Body (JSON)

  • bookId string required
  • code string required
  • kind "fiat" | "crypto" | "security" optional
  • precision integer optional
  • name string optional

Answer (200, JSON)

  • code string required
  • kind "fiat" | "crypto" | "security" required
  • precision integer required
  • name string | null required

Refusals

  • 409: BOOK_ARCHIVED, ASSET_EXISTS, ASSET_KNOWN

GET /ledger/persons/list List the people of a book who own pockets, archived ones too, in the book’s order ledger.persons.list

Parameters

  • bookId string query, required

Answer (200, JSON list of objects)

  • id string required
  • name string required
  • archivedAt string (date-time) | null required
  • updatedAt string (date-time) required

POST /ledger/persons/create Add a person who owns pockets to a book ledger.persons.create

Body (JSON)

  • bookId string required
  • name string required
  • id string (uuid) optional
  • requestId string (uuid) optional

Answer (200, JSON)

  • id string required
  • name string required
  • archivedAt string (date-time) | null required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, ID_TAKEN

POST /ledger/persons/rename Rename a person of a book ledger.persons.rename

Body (JSON)

  • bookId string required
  • personId string required
  • expectedUpdatedAt string (date-time) required
  • name string required

Answer (200, JSON)

  • id string required
  • name string required
  • archivedAt string (date-time) | null required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, PERSON_CHANGED

POST /ledger/persons/archive Archive a person, keeping them and their pockets but hiding them from pickers ledger.persons.archive

Body (JSON)

  • bookId string required
  • personId string required
  • expectedUpdatedAt string (date-time) required

Answer (200, JSON)

  • id string required
  • name string required
  • archivedAt string (date-time) | null required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, PERSON_CHANGED

POST /ledger/persons/unarchive Bring an archived person back into the pickers ledger.persons.unarchive

Body (JSON)

  • bookId string required
  • personId string required
  • expectedUpdatedAt string (date-time) required

Answer (200, JSON)

  • id string required
  • name string required
  • archivedAt string (date-time) | null required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, PERSON_CHANGED

POST /ledger/persons/reorder Set the order of a book’s active people ledger.persons.reorder

Body (JSON)

  • bookId string required
  • ids array of string required

Answer (200, JSON list of objects)

  • id string required
  • name string required
  • archivedAt string (date-time) | null required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, ORDER_MISMATCH

GET /ledger/pockets/list List a book’s pockets, closed ones too, with each one’s balance per asset ledger.pockets.list

Parameters

  • bookId string query, required

Answer (200, JSON list of objects)

  • id string required
  • name string required
  • type "asset" | "liability" required
  • pocketKind "bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" | "contact" | "book" required
  • personId string | null required
  • institution string | null required
  • externalRefs array of string required
  • status "active" | "closed" required
  • enamel "jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" required
  • balances array of object required
  • lastActiveOn string (date) required
  • updatedAt string (date-time) required

Refusals

  • 422: AMOUNT_TOO_LARGE

POST /ledger/pockets/create Create a pocket in a book, owned by a person or shared ledger.pockets.create

Body (JSON)

  • bookId string required
  • name string required
  • pocketKind "bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" required
  • requestId string (uuid) required
  • id string (uuid) optional
  • type "asset" | "liability" optional
  • personId string optional
  • institution string optional
  • externalRefs array of string optional
  • enamel "jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" optional

Answer (200, JSON)

  • id string required
  • name string required
  • type "asset" | "liability" required
  • pocketKind "bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" | "contact" | "book" required
  • personId string | null required
  • institution string | null required
  • externalRefs array of string required
  • status "active" | "closed" required
  • enamel "jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" required
  • balances array of object required
  • lastActiveOn string (date) required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, PLAN_LIMIT, PERSON_ARCHIVED, ID_TAKEN

POST /ledger/pockets/update Change a pocket’s name, kind, owner, institution, identifiers or colour ledger.pockets.update

Body (JSON)

  • bookId string required
  • pocketId string required
  • expectedUpdatedAt string (date-time) required
  • requestId string (uuid) optional
  • name string optional
  • pocketKind "bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" optional
  • personId string | null optional
  • institution string | null optional
  • externalRefs array of string optional
  • enamel "jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" optional

Answer (200, JSON)

  • id string required
  • name string required
  • type "asset" | "liability" required
  • pocketKind "bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" | "contact" | "book" required
  • personId string | null required
  • institution string | null required
  • externalRefs array of string required
  • status "active" | "closed" required
  • enamel "jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" required
  • balances array of object required
  • lastActiveOn string (date) required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, POCKET_CHANGED, CONTACT_POCKET, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, PERSON_ARCHIVED

POST /ledger/pockets/close Close a pocket, only once it holds nothing in any asset ledger.pockets.close

Body (JSON)

  • bookId string required
  • pocketId string required
  • expectedUpdatedAt string (date-time) required

Answer (200, JSON)

  • id string required
  • name string required
  • type "asset" | "liability" required
  • pocketKind "bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" | "contact" | "book" required
  • personId string | null required
  • institution string | null required
  • externalRefs array of string required
  • status "active" | "closed" required
  • enamel "jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" required
  • balances array of object required
  • lastActiveOn string (date) required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, POCKET_CHANGED, CONTACT_POCKET, POCKET_NOT_EMPTY

POST /ledger/pockets/reopen Reopen a closed pocket ledger.pockets.reopen

Body (JSON)

  • bookId string required
  • pocketId string required
  • expectedUpdatedAt string (date-time) required

Answer (200, JSON)

  • id string required
  • name string required
  • type "asset" | "liability" required
  • pocketKind "bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" | "contact" | "book" required
  • personId string | null required
  • institution string | null required
  • externalRefs array of string required
  • status "active" | "closed" required
  • enamel "jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" required
  • balances array of object required
  • lastActiveOn string (date) required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, POCKET_CHANGED, CONTACT_POCKET

POST /ledger/pockets/reorder Set the order of a group’s open pockets in the book’s pocket list ledger.pockets.reorder

Body (JSON)

  • bookId string required
  • group "bank" | "card" | "cash" | "crypto" | "broker" | "loan" | "other" | "contact" required
  • ids array of string required

Answer (200, JSON list of objects)

  • id string required
  • name string required
  • type "asset" | "liability" required
  • pocketKind "bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" | "contact" | "book" required
  • personId string | null required
  • institution string | null required
  • externalRefs array of string required
  • status "active" | "closed" required
  • enamel "jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" required
  • balances array of object required
  • lastActiveOn string (date) required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, ORDER_MISMATCH

POST /ledger/pockets/merge Merge one pocket into another, as one change that can be undone ledger.pockets.merge

Body (JSON)

  • bookId string required
  • fromPocketId string required
  • intoPocketId string required
  • dryRun boolean required
  • previewToken string optional
  • checkBalances boolean optional
  • requestId string (uuid) optional

Answer (200, JSON)

  • changeSetId string | null required
  • previewToken string required
  • moves object required
  • balanceChecks array of object optional

Refusals

  • 409: BOOK_ARCHIVED, POCKET_CHANGED, CONTACT_POCKET, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKETS_NOT_MERGEABLE

GET /ledger/categories/list List a book’s categories, archived ones too, each followed by its subcategories ledger.categories.list

Parameters

  • bookId string query, required

Answer (200, JSON list of objects)

  • id string required
  • name string required
  • type "income" | "expense" required
  • parentId string | null required
  • systemKey string | null required
  • seedKey string | null required
  • hue "food" | "leisure" | "travel" | "health" | "transport" | "home" | "subscriptions" | "shopping" | "family" | "education" | "other" required
  • icon "circle" | "circle-question-mark" | "utensils" | "shopping-cart" | "utensils-crossed" | "bike" | "coffee" | "pizza" | "wine" | "cake" | "shopping-basket" | "beer" | "carrot" | "popcorn" | "house" | "key-round" | "plug-zap" | "sofa" | "wrench" | "hammer" | "flame" | "droplet" | "lightbulb" | "armchair" | "bed-double" | "lamp-desk" | "refrigerator" | "bath" | "paintbrush" | "drill" | "flower-2" | "sprout" | "trees" | "spray-can" | "washing-machine" | "trash" | "recycle" | "car" | "fuel" | "bus" | "train-front" | "car-taxi-front" | "square-parking" | "car-front" | "ev-charger" | "battery-charging" | "parking-meter" | "route" | "motorbike" | "truck" | "ship" | "sailboat" | "cable-car" | "plane" | "plane-takeoff" | "hotel" | "luggage" | "map-pin" | "globe" | "tree-palm" | "tent" | "mountain-snow" | "shopping-bag" | "shirt" | "laptop" | "smartphone" | "package" | "scissors" | "handbag" | "tag" | "gem" | "glasses" | "watch" | "monitor" | "headphones" | "camera" | "printer" | "heart-pulse" | "pill" | "stethoscope" | "shield-plus" | "pill-bottle" | "syringe" | "hospital" | "thermometer" | "bandage" | "toothbrush" | "brain" | "eye" | "sparkles" | "ticket" | "clapperboard" | "dumbbell" | "palette" | "gamepad-2" | "book-open" | "trophy" | "volleyball" | "footprints" | "waves-ladder" | "target" | "medal" | "party-popper" | "eighth-notes" | "guitar" | "piano" | "mic" | "dices" | "puzzle" | "cigarette" | "repeat" | "app-window" | "tv" | "wifi" | "phone" | "router" | "tv-minimal-play" | "radio" | "cloud" | "newspaper" | "users" | "baby" | "gift" | "paw-print" | "dog" | "heart" | "cat" | "fish" | "bird" | "rabbit" | "turtle" | "user" | "balloon" | "graduation-cap" | "school" | "backpack" | "pencil" | "book" | "library" | "languages" | "notebook" | "landmark" | "receipt" | "percent" | "scale" | "credit-card" | "wallet" | "calculator" | "file-text" | "shield-check" | "umbrella" | "id-card" | "mail" | "lock" | "hand-heart" | "heart-handshake" | "calendar" | "briefcase" | "store" | "piggy-bank" | "trending-up" | "coins" | "undo-2" | "hand-coins" | "banknote" | "star" | "bitcoin" | "chart-candlestick" | "chart-pie" | "briefcase-business" | "building" | "rotate-ccw" | "badge-dollar-sign" required
  • position integer required
  • budget object | null required
  • archivedAt string (date-time) | null required
  • updatedAt string (date-time) required

GET /ledger/categories/usage Count the live transactions in each category, with and without its subcategories ledger.categories.usage

Parameters

  • bookId string query, required
  • categoryIds array of string query, optional

Answer (200, JSON list of objects)

  • categoryId string required
  • transactionCount integer required
  • subtreeTransactionCount integer required

POST /ledger/categories/create Create a category, at the top level or under a top-level one ledger.categories.create

Body (JSON)

  • bookId string required
  • name string required
  • type "income" | "expense" required
  • requestId string (uuid) optional
  • id string (uuid) optional
  • parentId string | null optional
  • hue "food" | "leisure" | "travel" | "health" | "transport" | "home" | "subscriptions" | "shopping" | "family" | "education" | "other" optional
  • icon "circle" | "circle-question-mark" | "utensils" | "shopping-cart" | "utensils-crossed" | "bike" | "coffee" | "pizza" | "wine" | "cake" | "shopping-basket" | "beer" | "carrot" | "popcorn" | "house" | "key-round" | "plug-zap" | "sofa" | "wrench" | "hammer" | "flame" | "droplet" | "lightbulb" | "armchair" | "bed-double" | "lamp-desk" | "refrigerator" | "bath" | "paintbrush" | "drill" | "flower-2" | "sprout" | "trees" | "spray-can" | "washing-machine" | "trash" | "recycle" | "car" | "fuel" | "bus" | "train-front" | "car-taxi-front" | "square-parking" | "car-front" | "ev-charger" | "battery-charging" | "parking-meter" | "route" | "motorbike" | "truck" | "ship" | "sailboat" | "cable-car" | "plane" | "plane-takeoff" | "hotel" | "luggage" | "map-pin" | "globe" | "tree-palm" | "tent" | "mountain-snow" | "shopping-bag" | "shirt" | "laptop" | "smartphone" | "package" | "scissors" | "handbag" | "tag" | "gem" | "glasses" | "watch" | "monitor" | "headphones" | "camera" | "printer" | "heart-pulse" | "pill" | "stethoscope" | "shield-plus" | "pill-bottle" | "syringe" | "hospital" | "thermometer" | "bandage" | "toothbrush" | "brain" | "eye" | "sparkles" | "ticket" | "clapperboard" | "dumbbell" | "palette" | "gamepad-2" | "book-open" | "trophy" | "volleyball" | "footprints" | "waves-ladder" | "target" | "medal" | "party-popper" | "eighth-notes" | "guitar" | "piano" | "mic" | "dices" | "puzzle" | "cigarette" | "repeat" | "app-window" | "tv" | "wifi" | "phone" | "router" | "tv-minimal-play" | "radio" | "cloud" | "newspaper" | "users" | "baby" | "gift" | "paw-print" | "dog" | "heart" | "cat" | "fish" | "bird" | "rabbit" | "turtle" | "user" | "balloon" | "graduation-cap" | "school" | "backpack" | "pencil" | "book" | "library" | "languages" | "notebook" | "landmark" | "receipt" | "percent" | "scale" | "credit-card" | "wallet" | "calculator" | "file-text" | "shield-check" | "umbrella" | "id-card" | "mail" | "lock" | "hand-heart" | "heart-handshake" | "calendar" | "briefcase" | "store" | "piggy-bank" | "trending-up" | "coins" | "undo-2" | "hand-coins" | "banknote" | "star" | "bitcoin" | "chart-candlestick" | "chart-pie" | "briefcase-business" | "building" | "rotate-ccw" | "badge-dollar-sign" optional

Answer (200, JSON)

  • id string required
  • name string required
  • type "income" | "expense" required
  • parentId string | null required
  • systemKey string | null required
  • seedKey string | null required
  • hue "food" | "leisure" | "travel" | "health" | "transport" | "home" | "subscriptions" | "shopping" | "family" | "education" | "other" required
  • icon "circle" | "circle-question-mark" | "utensils" | "shopping-cart" | "utensils-crossed" | "bike" | "coffee" | "pizza" | "wine" | "cake" | "shopping-basket" | "beer" | "carrot" | "popcorn" | "house" | "key-round" | "plug-zap" | "sofa" | "wrench" | "hammer" | "flame" | "droplet" | "lightbulb" | "armchair" | "bed-double" | "lamp-desk" | "refrigerator" | "bath" | "paintbrush" | "drill" | "flower-2" | "sprout" | "trees" | "spray-can" | "washing-machine" | "trash" | "recycle" | "car" | "fuel" | "bus" | "train-front" | "car-taxi-front" | "square-parking" | "car-front" | "ev-charger" | "battery-charging" | "parking-meter" | "route" | "motorbike" | "truck" | "ship" | "sailboat" | "cable-car" | "plane" | "plane-takeoff" | "hotel" | "luggage" | "map-pin" | "globe" | "tree-palm" | "tent" | "mountain-snow" | "shopping-bag" | "shirt" | "laptop" | "smartphone" | "package" | "scissors" | "handbag" | "tag" | "gem" | "glasses" | "watch" | "monitor" | "headphones" | "camera" | "printer" | "heart-pulse" | "pill" | "stethoscope" | "shield-plus" | "pill-bottle" | "syringe" | "hospital" | "thermometer" | "bandage" | "toothbrush" | "brain" | "eye" | "sparkles" | "ticket" | "clapperboard" | "dumbbell" | "palette" | "gamepad-2" | "book-open" | "trophy" | "volleyball" | "footprints" | "waves-ladder" | "target" | "medal" | "party-popper" | "eighth-notes" | "guitar" | "piano" | "mic" | "dices" | "puzzle" | "cigarette" | "repeat" | "app-window" | "tv" | "wifi" | "phone" | "router" | "tv-minimal-play" | "radio" | "cloud" | "newspaper" | "users" | "baby" | "gift" | "paw-print" | "dog" | "heart" | "cat" | "fish" | "bird" | "rabbit" | "turtle" | "user" | "balloon" | "graduation-cap" | "school" | "backpack" | "pencil" | "book" | "library" | "languages" | "notebook" | "landmark" | "receipt" | "percent" | "scale" | "credit-card" | "wallet" | "calculator" | "file-text" | "shield-check" | "umbrella" | "id-card" | "mail" | "lock" | "hand-heart" | "heart-handshake" | "calendar" | "briefcase" | "store" | "piggy-bank" | "trending-up" | "coins" | "undo-2" | "hand-coins" | "banknote" | "star" | "bitcoin" | "chart-candlestick" | "chart-pie" | "briefcase-business" | "building" | "rotate-ccw" | "badge-dollar-sign" required
  • position integer required
  • budget object | null required
  • archivedAt string (date-time) | null required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, INVALID_PARENT, CATEGORY_NAME_TAKEN, ID_TAKEN
  • 422: CATEGORY_HUE_ON_CHILD

POST /ledger/categories/update Change a category’s name, colour or icon ledger.categories.update

Body (JSON)

  • bookId string required
  • categoryId string required
  • expectedUpdatedAt string (date-time) required
  • requestId string (uuid) optional
  • name string optional
  • hue "food" | "leisure" | "travel" | "health" | "transport" | "home" | "subscriptions" | "shopping" | "family" | "education" | "other" optional
  • icon "circle" | "circle-question-mark" | "utensils" | "shopping-cart" | "utensils-crossed" | "bike" | "coffee" | "pizza" | "wine" | "cake" | "shopping-basket" | "beer" | "carrot" | "popcorn" | "house" | "key-round" | "plug-zap" | "sofa" | "wrench" | "hammer" | "flame" | "droplet" | "lightbulb" | "armchair" | "bed-double" | "lamp-desk" | "refrigerator" | "bath" | "paintbrush" | "drill" | "flower-2" | "sprout" | "trees" | "spray-can" | "washing-machine" | "trash" | "recycle" | "car" | "fuel" | "bus" | "train-front" | "car-taxi-front" | "square-parking" | "car-front" | "ev-charger" | "battery-charging" | "parking-meter" | "route" | "motorbike" | "truck" | "ship" | "sailboat" | "cable-car" | "plane" | "plane-takeoff" | "hotel" | "luggage" | "map-pin" | "globe" | "tree-palm" | "tent" | "mountain-snow" | "shopping-bag" | "shirt" | "laptop" | "smartphone" | "package" | "scissors" | "handbag" | "tag" | "gem" | "glasses" | "watch" | "monitor" | "headphones" | "camera" | "printer" | "heart-pulse" | "pill" | "stethoscope" | "shield-plus" | "pill-bottle" | "syringe" | "hospital" | "thermometer" | "bandage" | "toothbrush" | "brain" | "eye" | "sparkles" | "ticket" | "clapperboard" | "dumbbell" | "palette" | "gamepad-2" | "book-open" | "trophy" | "volleyball" | "footprints" | "waves-ladder" | "target" | "medal" | "party-popper" | "eighth-notes" | "guitar" | "piano" | "mic" | "dices" | "puzzle" | "cigarette" | "repeat" | "app-window" | "tv" | "wifi" | "phone" | "router" | "tv-minimal-play" | "radio" | "cloud" | "newspaper" | "users" | "baby" | "gift" | "paw-print" | "dog" | "heart" | "cat" | "fish" | "bird" | "rabbit" | "turtle" | "user" | "balloon" | "graduation-cap" | "school" | "backpack" | "pencil" | "book" | "library" | "languages" | "notebook" | "landmark" | "receipt" | "percent" | "scale" | "credit-card" | "wallet" | "calculator" | "file-text" | "shield-check" | "umbrella" | "id-card" | "mail" | "lock" | "hand-heart" | "heart-handshake" | "calendar" | "briefcase" | "store" | "piggy-bank" | "trending-up" | "coins" | "undo-2" | "hand-coins" | "banknote" | "star" | "bitcoin" | "chart-candlestick" | "chart-pie" | "briefcase-business" | "building" | "rotate-ccw" | "badge-dollar-sign" optional

Answer (200, JSON)

  • id string required
  • name string required
  • type "income" | "expense" required
  • parentId string | null required
  • systemKey string | null required
  • seedKey string | null required
  • hue "food" | "leisure" | "travel" | "health" | "transport" | "home" | "subscriptions" | "shopping" | "family" | "education" | "other" required
  • icon "circle" | "circle-question-mark" | "utensils" | "shopping-cart" | "utensils-crossed" | "bike" | "coffee" | "pizza" | "wine" | "cake" | "shopping-basket" | "beer" | "carrot" | "popcorn" | "house" | "key-round" | "plug-zap" | "sofa" | "wrench" | "hammer" | "flame" | "droplet" | "lightbulb" | "armchair" | "bed-double" | "lamp-desk" | "refrigerator" | "bath" | "paintbrush" | "drill" | "flower-2" | "sprout" | "trees" | "spray-can" | "washing-machine" | "trash" | "recycle" | "car" | "fuel" | "bus" | "train-front" | "car-taxi-front" | "square-parking" | "car-front" | "ev-charger" | "battery-charging" | "parking-meter" | "route" | "motorbike" | "truck" | "ship" | "sailboat" | "cable-car" | "plane" | "plane-takeoff" | "hotel" | "luggage" | "map-pin" | "globe" | "tree-palm" | "tent" | "mountain-snow" | "shopping-bag" | "shirt" | "laptop" | "smartphone" | "package" | "scissors" | "handbag" | "tag" | "gem" | "glasses" | "watch" | "monitor" | "headphones" | "camera" | "printer" | "heart-pulse" | "pill" | "stethoscope" | "shield-plus" | "pill-bottle" | "syringe" | "hospital" | "thermometer" | "bandage" | "toothbrush" | "brain" | "eye" | "sparkles" | "ticket" | "clapperboard" | "dumbbell" | "palette" | "gamepad-2" | "book-open" | "trophy" | "volleyball" | "footprints" | "waves-ladder" | "target" | "medal" | "party-popper" | "eighth-notes" | "guitar" | "piano" | "mic" | "dices" | "puzzle" | "cigarette" | "repeat" | "app-window" | "tv" | "wifi" | "phone" | "router" | "tv-minimal-play" | "radio" | "cloud" | "newspaper" | "users" | "baby" | "gift" | "paw-print" | "dog" | "heart" | "cat" | "fish" | "bird" | "rabbit" | "turtle" | "user" | "balloon" | "graduation-cap" | "school" | "backpack" | "pencil" | "book" | "library" | "languages" | "notebook" | "landmark" | "receipt" | "percent" | "scale" | "credit-card" | "wallet" | "calculator" | "file-text" | "shield-check" | "umbrella" | "id-card" | "mail" | "lock" | "hand-heart" | "heart-handshake" | "calendar" | "briefcase" | "store" | "piggy-bank" | "trending-up" | "coins" | "undo-2" | "hand-coins" | "banknote" | "star" | "bitcoin" | "chart-candlestick" | "chart-pie" | "briefcase-business" | "building" | "rotate-ccw" | "badge-dollar-sign" required
  • position integer required
  • budget object | null required
  • archivedAt string (date-time) | null required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, SYSTEM_CATEGORY, CATEGORY_CHANGED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED
  • 422: CATEGORY_HUE_ON_CHILD

POST /ledger/categories/move Move a category under another top-level one of its type, or to the top ledger.categories.move

Body (JSON)

  • bookId string required
  • categoryId string required
  • expectedUpdatedAt string (date-time) required
  • parentId string | null required
  • requestId string (uuid) optional

Answer (200, JSON)

  • id string required
  • name string required
  • type "income" | "expense" required
  • parentId string | null required
  • systemKey string | null required
  • seedKey string | null required
  • hue "food" | "leisure" | "travel" | "health" | "transport" | "home" | "subscriptions" | "shopping" | "family" | "education" | "other" required
  • icon "circle" | "circle-question-mark" | "utensils" | "shopping-cart" | "utensils-crossed" | "bike" | "coffee" | "pizza" | "wine" | "cake" | "shopping-basket" | "beer" | "carrot" | "popcorn" | "house" | "key-round" | "plug-zap" | "sofa" | "wrench" | "hammer" | "flame" | "droplet" | "lightbulb" | "armchair" | "bed-double" | "lamp-desk" | "refrigerator" | "bath" | "paintbrush" | "drill" | "flower-2" | "sprout" | "trees" | "spray-can" | "washing-machine" | "trash" | "recycle" | "car" | "fuel" | "bus" | "train-front" | "car-taxi-front" | "square-parking" | "car-front" | "ev-charger" | "battery-charging" | "parking-meter" | "route" | "motorbike" | "truck" | "ship" | "sailboat" | "cable-car" | "plane" | "plane-takeoff" | "hotel" | "luggage" | "map-pin" | "globe" | "tree-palm" | "tent" | "mountain-snow" | "shopping-bag" | "shirt" | "laptop" | "smartphone" | "package" | "scissors" | "handbag" | "tag" | "gem" | "glasses" | "watch" | "monitor" | "headphones" | "camera" | "printer" | "heart-pulse" | "pill" | "stethoscope" | "shield-plus" | "pill-bottle" | "syringe" | "hospital" | "thermometer" | "bandage" | "toothbrush" | "brain" | "eye" | "sparkles" | "ticket" | "clapperboard" | "dumbbell" | "palette" | "gamepad-2" | "book-open" | "trophy" | "volleyball" | "footprints" | "waves-ladder" | "target" | "medal" | "party-popper" | "eighth-notes" | "guitar" | "piano" | "mic" | "dices" | "puzzle" | "cigarette" | "repeat" | "app-window" | "tv" | "wifi" | "phone" | "router" | "tv-minimal-play" | "radio" | "cloud" | "newspaper" | "users" | "baby" | "gift" | "paw-print" | "dog" | "heart" | "cat" | "fish" | "bird" | "rabbit" | "turtle" | "user" | "balloon" | "graduation-cap" | "school" | "backpack" | "pencil" | "book" | "library" | "languages" | "notebook" | "landmark" | "receipt" | "percent" | "scale" | "credit-card" | "wallet" | "calculator" | "file-text" | "shield-check" | "umbrella" | "id-card" | "mail" | "lock" | "hand-heart" | "heart-handshake" | "calendar" | "briefcase" | "store" | "piggy-bank" | "trending-up" | "coins" | "undo-2" | "hand-coins" | "banknote" | "star" | "bitcoin" | "chart-candlestick" | "chart-pie" | "briefcase-business" | "building" | "rotate-ccw" | "badge-dollar-sign" required
  • position integer required
  • budget object | null required
  • archivedAt string (date-time) | null required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, SYSTEM_CATEGORY, CATEGORY_CHANGED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, INVALID_PARENT

POST /ledger/categories/setBudget Set or clear an expense category’s monthly budget ledger.categories.setBudget

Body (JSON)

  • bookId string required
  • categoryId string required
  • expectedUpdatedAt string (date-time) required
  • budget string | null required
  • requestId string (uuid) optional

Answer (200, JSON)

  • id string required
  • name string required
  • type "income" | "expense" required
  • parentId string | null required
  • systemKey string | null required
  • seedKey string | null required
  • hue "food" | "leisure" | "travel" | "health" | "transport" | "home" | "subscriptions" | "shopping" | "family" | "education" | "other" required
  • icon "circle" | "circle-question-mark" | "utensils" | "shopping-cart" | "utensils-crossed" | "bike" | "coffee" | "pizza" | "wine" | "cake" | "shopping-basket" | "beer" | "carrot" | "popcorn" | "house" | "key-round" | "plug-zap" | "sofa" | "wrench" | "hammer" | "flame" | "droplet" | "lightbulb" | "armchair" | "bed-double" | "lamp-desk" | "refrigerator" | "bath" | "paintbrush" | "drill" | "flower-2" | "sprout" | "trees" | "spray-can" | "washing-machine" | "trash" | "recycle" | "car" | "fuel" | "bus" | "train-front" | "car-taxi-front" | "square-parking" | "car-front" | "ev-charger" | "battery-charging" | "parking-meter" | "route" | "motorbike" | "truck" | "ship" | "sailboat" | "cable-car" | "plane" | "plane-takeoff" | "hotel" | "luggage" | "map-pin" | "globe" | "tree-palm" | "tent" | "mountain-snow" | "shopping-bag" | "shirt" | "laptop" | "smartphone" | "package" | "scissors" | "handbag" | "tag" | "gem" | "glasses" | "watch" | "monitor" | "headphones" | "camera" | "printer" | "heart-pulse" | "pill" | "stethoscope" | "shield-plus" | "pill-bottle" | "syringe" | "hospital" | "thermometer" | "bandage" | "toothbrush" | "brain" | "eye" | "sparkles" | "ticket" | "clapperboard" | "dumbbell" | "palette" | "gamepad-2" | "book-open" | "trophy" | "volleyball" | "footprints" | "waves-ladder" | "target" | "medal" | "party-popper" | "eighth-notes" | "guitar" | "piano" | "mic" | "dices" | "puzzle" | "cigarette" | "repeat" | "app-window" | "tv" | "wifi" | "phone" | "router" | "tv-minimal-play" | "radio" | "cloud" | "newspaper" | "users" | "baby" | "gift" | "paw-print" | "dog" | "heart" | "cat" | "fish" | "bird" | "rabbit" | "turtle" | "user" | "balloon" | "graduation-cap" | "school" | "backpack" | "pencil" | "book" | "library" | "languages" | "notebook" | "landmark" | "receipt" | "percent" | "scale" | "credit-card" | "wallet" | "calculator" | "file-text" | "shield-check" | "umbrella" | "id-card" | "mail" | "lock" | "hand-heart" | "heart-handshake" | "calendar" | "briefcase" | "store" | "piggy-bank" | "trending-up" | "coins" | "undo-2" | "hand-coins" | "banknote" | "star" | "bitcoin" | "chart-candlestick" | "chart-pie" | "briefcase-business" | "building" | "rotate-ccw" | "badge-dollar-sign" required
  • position integer required
  • budget object | null required
  • archivedAt string (date-time) | null required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, SYSTEM_CATEGORY, CATEGORY_CHANGED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, CATEGORY_ARCHIVED
  • 422: BUDGET_ON_INCOME, AMOUNT_TOO_PRECISE

POST /ledger/categories/archive Archive a category and its subcategories, hiding them from pickers ledger.categories.archive

Body (JSON)

  • bookId string required
  • categoryId string required
  • expectedUpdatedAt string (date-time) required

Answer (200, JSON)

  • id string required
  • name string required
  • type "income" | "expense" required
  • parentId string | null required
  • systemKey string | null required
  • seedKey string | null required
  • hue "food" | "leisure" | "travel" | "health" | "transport" | "home" | "subscriptions" | "shopping" | "family" | "education" | "other" required
  • icon "circle" | "circle-question-mark" | "utensils" | "shopping-cart" | "utensils-crossed" | "bike" | "coffee" | "pizza" | "wine" | "cake" | "shopping-basket" | "beer" | "carrot" | "popcorn" | "house" | "key-round" | "plug-zap" | "sofa" | "wrench" | "hammer" | "flame" | "droplet" | "lightbulb" | "armchair" | "bed-double" | "lamp-desk" | "refrigerator" | "bath" | "paintbrush" | "drill" | "flower-2" | "sprout" | "trees" | "spray-can" | "washing-machine" | "trash" | "recycle" | "car" | "fuel" | "bus" | "train-front" | "car-taxi-front" | "square-parking" | "car-front" | "ev-charger" | "battery-charging" | "parking-meter" | "route" | "motorbike" | "truck" | "ship" | "sailboat" | "cable-car" | "plane" | "plane-takeoff" | "hotel" | "luggage" | "map-pin" | "globe" | "tree-palm" | "tent" | "mountain-snow" | "shopping-bag" | "shirt" | "laptop" | "smartphone" | "package" | "scissors" | "handbag" | "tag" | "gem" | "glasses" | "watch" | "monitor" | "headphones" | "camera" | "printer" | "heart-pulse" | "pill" | "stethoscope" | "shield-plus" | "pill-bottle" | "syringe" | "hospital" | "thermometer" | "bandage" | "toothbrush" | "brain" | "eye" | "sparkles" | "ticket" | "clapperboard" | "dumbbell" | "palette" | "gamepad-2" | "book-open" | "trophy" | "volleyball" | "footprints" | "waves-ladder" | "target" | "medal" | "party-popper" | "eighth-notes" | "guitar" | "piano" | "mic" | "dices" | "puzzle" | "cigarette" | "repeat" | "app-window" | "tv" | "wifi" | "phone" | "router" | "tv-minimal-play" | "radio" | "cloud" | "newspaper" | "users" | "baby" | "gift" | "paw-print" | "dog" | "heart" | "cat" | "fish" | "bird" | "rabbit" | "turtle" | "user" | "balloon" | "graduation-cap" | "school" | "backpack" | "pencil" | "book" | "library" | "languages" | "notebook" | "landmark" | "receipt" | "percent" | "scale" | "credit-card" | "wallet" | "calculator" | "file-text" | "shield-check" | "umbrella" | "id-card" | "mail" | "lock" | "hand-heart" | "heart-handshake" | "calendar" | "briefcase" | "store" | "piggy-bank" | "trending-up" | "coins" | "undo-2" | "hand-coins" | "banknote" | "star" | "bitcoin" | "chart-candlestick" | "chart-pie" | "briefcase-business" | "building" | "rotate-ccw" | "badge-dollar-sign" required
  • position integer required
  • budget object | null required
  • archivedAt string (date-time) | null required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, SYSTEM_CATEGORY, CATEGORY_CHANGED

POST /ledger/categories/unarchive Bring an archived category back, with the subcategories archived with it ledger.categories.unarchive

Body (JSON)

  • bookId string required
  • categoryId string required
  • expectedUpdatedAt string (date-time) required

Answer (200, JSON)

  • id string required
  • name string required
  • type "income" | "expense" required
  • parentId string | null required
  • systemKey string | null required
  • seedKey string | null required
  • hue "food" | "leisure" | "travel" | "health" | "transport" | "home" | "subscriptions" | "shopping" | "family" | "education" | "other" required
  • icon "circle" | "circle-question-mark" | "utensils" | "shopping-cart" | "utensils-crossed" | "bike" | "coffee" | "pizza" | "wine" | "cake" | "shopping-basket" | "beer" | "carrot" | "popcorn" | "house" | "key-round" | "plug-zap" | "sofa" | "wrench" | "hammer" | "flame" | "droplet" | "lightbulb" | "armchair" | "bed-double" | "lamp-desk" | "refrigerator" | "bath" | "paintbrush" | "drill" | "flower-2" | "sprout" | "trees" | "spray-can" | "washing-machine" | "trash" | "recycle" | "car" | "fuel" | "bus" | "train-front" | "car-taxi-front" | "square-parking" | "car-front" | "ev-charger" | "battery-charging" | "parking-meter" | "route" | "motorbike" | "truck" | "ship" | "sailboat" | "cable-car" | "plane" | "plane-takeoff" | "hotel" | "luggage" | "map-pin" | "globe" | "tree-palm" | "tent" | "mountain-snow" | "shopping-bag" | "shirt" | "laptop" | "smartphone" | "package" | "scissors" | "handbag" | "tag" | "gem" | "glasses" | "watch" | "monitor" | "headphones" | "camera" | "printer" | "heart-pulse" | "pill" | "stethoscope" | "shield-plus" | "pill-bottle" | "syringe" | "hospital" | "thermometer" | "bandage" | "toothbrush" | "brain" | "eye" | "sparkles" | "ticket" | "clapperboard" | "dumbbell" | "palette" | "gamepad-2" | "book-open" | "trophy" | "volleyball" | "footprints" | "waves-ladder" | "target" | "medal" | "party-popper" | "eighth-notes" | "guitar" | "piano" | "mic" | "dices" | "puzzle" | "cigarette" | "repeat" | "app-window" | "tv" | "wifi" | "phone" | "router" | "tv-minimal-play" | "radio" | "cloud" | "newspaper" | "users" | "baby" | "gift" | "paw-print" | "dog" | "heart" | "cat" | "fish" | "bird" | "rabbit" | "turtle" | "user" | "balloon" | "graduation-cap" | "school" | "backpack" | "pencil" | "book" | "library" | "languages" | "notebook" | "landmark" | "receipt" | "percent" | "scale" | "credit-card" | "wallet" | "calculator" | "file-text" | "shield-check" | "umbrella" | "id-card" | "mail" | "lock" | "hand-heart" | "heart-handshake" | "calendar" | "briefcase" | "store" | "piggy-bank" | "trending-up" | "coins" | "undo-2" | "hand-coins" | "banknote" | "star" | "bitcoin" | "chart-candlestick" | "chart-pie" | "briefcase-business" | "building" | "rotate-ccw" | "badge-dollar-sign" required
  • position integer required
  • budget object | null required
  • archivedAt string (date-time) | null required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, SYSTEM_CATEGORY, CATEGORY_CHANGED, PARENT_ARCHIVED

POST /ledger/categories/reorder Set the order of a category’s subcategories, or of the top-level categories ledger.categories.reorder

Body (JSON)

  • bookId string required
  • parentId string | null required
  • ids array of string required

Answer (200, JSON list of objects)

  • id string required
  • name string required
  • type "income" | "expense" required
  • parentId string | null required
  • systemKey string | null required
  • seedKey string | null required
  • hue "food" | "leisure" | "travel" | "health" | "transport" | "home" | "subscriptions" | "shopping" | "family" | "education" | "other" required
  • icon "circle" | "circle-question-mark" | "utensils" | "shopping-cart" | "utensils-crossed" | "bike" | "coffee" | "pizza" | "wine" | "cake" | "shopping-basket" | "beer" | "carrot" | "popcorn" | "house" | "key-round" | "plug-zap" | "sofa" | "wrench" | "hammer" | "flame" | "droplet" | "lightbulb" | "armchair" | "bed-double" | "lamp-desk" | "refrigerator" | "bath" | "paintbrush" | "drill" | "flower-2" | "sprout" | "trees" | "spray-can" | "washing-machine" | "trash" | "recycle" | "car" | "fuel" | "bus" | "train-front" | "car-taxi-front" | "square-parking" | "car-front" | "ev-charger" | "battery-charging" | "parking-meter" | "route" | "motorbike" | "truck" | "ship" | "sailboat" | "cable-car" | "plane" | "plane-takeoff" | "hotel" | "luggage" | "map-pin" | "globe" | "tree-palm" | "tent" | "mountain-snow" | "shopping-bag" | "shirt" | "laptop" | "smartphone" | "package" | "scissors" | "handbag" | "tag" | "gem" | "glasses" | "watch" | "monitor" | "headphones" | "camera" | "printer" | "heart-pulse" | "pill" | "stethoscope" | "shield-plus" | "pill-bottle" | "syringe" | "hospital" | "thermometer" | "bandage" | "toothbrush" | "brain" | "eye" | "sparkles" | "ticket" | "clapperboard" | "dumbbell" | "palette" | "gamepad-2" | "book-open" | "trophy" | "volleyball" | "footprints" | "waves-ladder" | "target" | "medal" | "party-popper" | "eighth-notes" | "guitar" | "piano" | "mic" | "dices" | "puzzle" | "cigarette" | "repeat" | "app-window" | "tv" | "wifi" | "phone" | "router" | "tv-minimal-play" | "radio" | "cloud" | "newspaper" | "users" | "baby" | "gift" | "paw-print" | "dog" | "heart" | "cat" | "fish" | "bird" | "rabbit" | "turtle" | "user" | "balloon" | "graduation-cap" | "school" | "backpack" | "pencil" | "book" | "library" | "languages" | "notebook" | "landmark" | "receipt" | "percent" | "scale" | "credit-card" | "wallet" | "calculator" | "file-text" | "shield-check" | "umbrella" | "id-card" | "mail" | "lock" | "hand-heart" | "heart-handshake" | "calendar" | "briefcase" | "store" | "piggy-bank" | "trending-up" | "coins" | "undo-2" | "hand-coins" | "banknote" | "star" | "bitcoin" | "chart-candlestick" | "chart-pie" | "briefcase-business" | "building" | "rotate-ccw" | "badge-dollar-sign" required
  • position integer required
  • budget object | null required
  • archivedAt string (date-time) | null required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, ORDER_MISMATCH

POST /ledger/transactions/createDryRun Check what creating a transaction would do to bank balances ledger.transactions.createDryRun

Body (JSON)

  • bookId string required
  • transaction object required

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, REFUND_EXCEEDS_PAYMENT, ID_TAKEN, TRANSACTION_DELETED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, BASE_AMOUNT_MISMATCH, AMOUNT_TOO_LARGE, NOT_REFUNDABLE

POST /ledger/transactions/updateDryRun Check what editing a transaction would do to bank balances ledger.transactions.updateDryRun

Body (JSON)

  • bookId string required
  • transactionId string required
  • changes object required

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, REFUND_EXCEEDS_PAYMENT, HAS_REFUNDS, INVALID_PARENT, CATEGORY_NAME_TAKEN, TRANSACTION_CHANGED, USE_BOOK_TRANSFER, IMPORTED_CURRENCY
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, BASE_AMOUNT_MISMATCH, AMOUNT_TOO_LARGE, NOT_REFUNDABLE

POST /ledger/transactions/deleteDryRun Check what deleting a transaction would do to bank balances ledger.transactions.deleteDryRun

Body (JSON)

  • bookId string required
  • transactionId string required
  • ifChangeSetId string required

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, TRANSACTION_CHANGED, HAS_REFUNDS, POCKET_CLOSED, USE_BOOK_TRANSFER
  • 422: AMOUNT_TOO_LARGE

POST /ledger/transactions/joinTransferDryRun Check what joining two rows as a transfer would do to bank balances ledger.transactions.joinTransferDryRun

Body (JSON)

  • bookId string required
  • transactionId string required
  • ifChangeSetId string required
  • withId string required
  • withIfChangeSetId string required

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 404: TRANSACTION_MERGED
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, REFUND_EXCEEDS_PAYMENT, TRANSACTION_CHANGED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, BASE_AMOUNT_MISMATCH, AMOUNT_TOO_LARGE, NOT_REFUNDABLE, NOT_A_TRANSFER_PAIR

GET /ledger/transactions/list List a book’s transactions, filtered, newest first, a page at a time ledger.transactions.list

Parameters

  • bookId string query, required
  • from string (date) query, optional
  • to string (date) query, optional
  • pocketIds array of string query, optional
  • categoryIds array of string query, optional
  • personIds array of "shared" | string query, optional
  • assets array of string query, optional
  • kinds array of "expense" | "income" | "transfer" | "exchange" | "adjustment" | "opening" | "book-transfer" | "other" query, optional
  • exchangeSides array of "invested" | "divested" | "other" query, optional
  • spending true query, optional
  • search string query, optional
  • needsReview boolean query, optional
  • tags array of string query, optional
  • learned object query, optional
  • merchant object query, optional
  • guesses object query, optional
  • contactAs array of "loan" | "repayment" query, optional
  • moves array of "loan" | "repayment" | "contribution" query, optional
  • cursor string query, optional
  • limit integer query, optional

Answer (200, JSON)

  • items array of object required
  • nextCursor string | null required

GET /ledger/transactions/get Read one transaction with its canonical input ledger.transactions.get

Parameters

  • bookId string query, required
  • transactionId string query, required

Answer (200, JSON)

  • id string required
  • bookingDate string (date) required
  • occurredAt string (date-time) | null required
  • payee string | null required
  • description string | null required
  • notes string | null required
  • tags array of string required
  • status "pending" | "posted" required
  • kind "expense" | "income" | "transfer" | "exchange" | "adjustment" | "opening" | "book-transfer" | "other" required
  • needsReview boolean required
  • pockets array of object required
  • categories array of object required
  • base string | null required
  • original object | null required
  • relatedAsset string | null required
  • attachmentCount integer required
  • labelled object required
  • lastChangeSetId string required
  • pair object | null required
  • contactAs "loan" | "repayment" | null required
  • input object required
  • refundOf string | null required
  • refundedBy array of string required
  • refundable array of object required
  • entered boolean | null required
  • funded object | null required
  • merchantName string optional

Refusals

  • 404: TRANSACTION_MERGED

POST /ledger/transactions/create Create a payment, income, refund, transfer or exchange ledger.transactions.create

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • transaction object required
  • id string (uuid) optional

Answer (200, JSON)

  • transaction object required
  • changeSetId string required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, REFUND_EXCEEDS_PAYMENT, ID_TAKEN, TRANSACTION_DELETED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, BASE_AMOUNT_MISMATCH, AMOUNT_TOO_LARGE, NOT_REFUNDABLE

POST /ledger/transactions/update Edit a transaction field by field, refused where someone changed it since ledger.transactions.update

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • transactionId string required
  • changes object required

Answer (200, JSON)

  • transaction object required
  • changeSetId string required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, REFUND_EXCEEDS_PAYMENT, HAS_REFUNDS, INVALID_PARENT, CATEGORY_NAME_TAKEN, TRANSACTION_CHANGED, USE_BOOK_TRANSFER, IMPORTED_CURRENCY
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, BASE_AMOUNT_MISMATCH, AMOUNT_TOO_LARGE, NOT_REFUNDABLE

POST /ledger/transactions/toTransferDryRun Check what turning a transaction into a transfer would do to bank balances ledger.transactions.toTransferDryRun

Body (JSON)

  • bookId string required
  • transactionId string required
  • ifChangeSetId string required
  • toPocketId string required
  • received object optional
  • fee object optional
  • contactAs "loan" | "repayment" optional

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 404: TRANSACTION_MERGED
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, REFUND_EXCEEDS_PAYMENT, TRANSACTION_CHANGED, HAS_REFUNDS
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, BASE_AMOUNT_MISMATCH, AMOUNT_TOO_LARGE, NOT_REFUNDABLE, NOT_A_TRANSFER_PAIR

POST /ledger/transactions/toTransfer Turn a payment or income into a transfer, joining a matching other side ledger.transactions.toTransfer

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • transactionId string required
  • ifChangeSetId string required
  • toPocketId string required
  • received object optional
  • fee object optional
  • contactAs "loan" | "repayment" optional

Answer (200, JSON)

  • transaction object required
  • changeSetId string required
  • merged boolean required

Refusals

  • 404: TRANSACTION_MERGED
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, REFUND_EXCEEDS_PAYMENT, TRANSACTION_CHANGED, HAS_REFUNDS
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, BASE_AMOUNT_MISMATCH, AMOUNT_TOO_LARGE, NOT_REFUNDABLE, NOT_A_TRANSFER_PAIR

POST /ledger/transactions/toPaymentDryRun Check what turning a transfer into a payment would do to bank balances ledger.transactions.toPaymentDryRun

Body (JSON)

  • bookId string required
  • transactionId string required
  • ifChangeSetId string required

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 404: TRANSACTION_MERGED
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, REFUND_EXCEEDS_PAYMENT, TRANSACTION_CHANGED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, BASE_AMOUNT_MISMATCH, AMOUNT_TOO_LARGE, NOT_REFUNDABLE, NOT_A_TRANSFER_PAIR

POST /ledger/transactions/toPayment Turn a transfer back into one payment or income in its own pocket ledger.transactions.toPayment

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • transactionId string required
  • ifChangeSetId string required

Answer (200, JSON)

  • transaction object required
  • changeSetId string required

Refusals

  • 404: TRANSACTION_MERGED
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, REFUND_EXCEEDS_PAYMENT, TRANSACTION_CHANGED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, BASE_AMOUNT_MISMATCH, AMOUNT_TOO_LARGE, NOT_REFUNDABLE, NOT_A_TRANSFER_PAIR

GET /ledger/transactions/transferPreview Preview what turning a transaction into a transfer would join, writing nothing ledger.transactions.transferPreview

Parameters

  • bookId string query, required
  • transactionId string query, required
  • otherBookId string query, optional
  • toPocketId string query, required
  • received object query, optional
  • fee object query, optional

Answer (200, JSON)

  • joins object | null required
  • feeCategoryId string required

Refusals

  • 404: TRANSACTION_MERGED
  • 409: HAS_REFUNDS, SEVERAL_COUNTERPARTS
  • 422: NOT_A_TRANSFER_PAIR

GET /ledger/transactions/transferCandidates List the rows a payment or income could be joined with as one transfer ledger.transactions.transferCandidates

Parameters

  • bookId string query, required
  • transactionId string query, required
  • otherBookId string query, optional
  • pocketId string query, required
  • search string query, optional

Answer (200, JSON)

  • candidates array of object required

Refusals

  • 404: TRANSACTION_MERGED
  • 409: HAS_REFUNDS
  • 422: NOT_A_TRANSFER_PAIR

GET /ledger/transactions/refundCandidates List the payments a refund could give back, or the refunds of a payment ledger.transactions.refundCandidates

Parameters

  • bookId string query, required
  • transactionId string query, required
  • search string query, optional
  • refundsIncome boolean query, optional

Answer (200, JSON)

  • candidates array of object required

Refusals

  • 404: TRANSACTION_MERGED
  • 422: NOT_REFUNDABLE

POST /ledger/transactions/joinTransfer Join a payment and an income of two pockets as one transfer, by hand ledger.transactions.joinTransfer

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • transactionId string required
  • ifChangeSetId string required
  • withId string required
  • withIfChangeSetId string required

Answer (200, JSON)

  • transaction object required
  • changeSetId string required

Refusals

  • 404: TRANSACTION_MERGED
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, REFUND_EXCEEDS_PAYMENT, TRANSACTION_CHANGED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, BASE_AMOUNT_MISMATCH, AMOUNT_TOO_LARGE, NOT_REFUNDABLE, NOT_A_TRANSFER_PAIR

GET /ledger/transactions/paymentPreview Preview the payment or income a transfer would become, writing nothing ledger.transactions.paymentPreview

Parameters

  • bookId string query, required
  • transactionId string query, required

Answer (200, JSON)

  • out boolean required
  • pocketId string required
  • amount string required
  • asset string required

Refusals

  • 404: TRANSACTION_MERGED
  • 409: POCKET_CLOSED
  • 422: NOT_A_TRANSFER_PAIR

POST /ledger/transactions/relabel Set the category, payee or tags of up to 100 transactions, or preview it ledger.transactions.relabel

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • ids array of string required
  • ifChangeSetIds object required
  • category object optional
  • payee string optional
  • addTags array of string optional
  • dryRun boolean optional

Answer (200, JSON)

  • changeSetId string | null required
  • changed array of string required
  • unchanged array of string required
  • skipped array of object required
  • categories object optional

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, INVALID_PARENT, CATEGORY_NAME_TAKEN, TRANSACTIONS_CHANGED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE

POST /ledger/transactions/delete Delete a transaction; undo brings it back with the same id ledger.transactions.delete

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • transactionId string required
  • ifChangeSetId string required

Answer (200, JSON)

  • transactionId string required
  • changeSetId string required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, TRANSACTION_CHANGED, HAS_REFUNDS, POCKET_CLOSED, USE_BOOK_TRANSFER
  • 422: AMOUNT_TOO_LARGE

GET /ledger/balances/at Read each pocket’s and category’s balance per asset at the end of a day ledger.balances.at

Parameters

  • bookId string query, required
  • date string (date) query, required
  • accountIds array of string query, optional

Answer (200, JSON list of objects)

  • accountId string required
  • asset string required
  • amount string required

Refusals

  • 422: AMOUNT_TOO_LARGE

GET /ledger/history/list List a book’s change sets, newest first, a page at a time ledger.history.list

Parameters

  • bookId string query, required
  • transactionId string query, optional
  • via "user" | "rule" | "import" | "agent" | "system" query, optional
  • cursor string query, optional
  • limit integer query, optional

Answer (200, JSON)

  • items array of object required
  • nextCursor string | null required

GET /ledger/history/get Read one change set and a page of the revisions it made ledger.history.get

Parameters

  • bookId string query, required
  • changeSetId string query, required
  • cursor string query, optional
  • limit integer query, optional

Answer (200, JSON)

  • id string required
  • via "user" | "rule" | "import" | "agent" | "system" required
  • summary string required
  • actorId string | null required
  • createdAt string (date-time) required
  • undoneById string | null required
  • undoesId string | null required
  • transactionCount integer required
  • transactionIds array of string required
  • undoableByYou boolean required
  • revisions array of object required
  • nextCursor string | null required

GET /ledger/history/forTransaction Read one transaction’s history, newest revision first, a page at a time ledger.history.forTransaction

Parameters

  • bookId string query, required
  • transactionId string query, required
  • cursor string query, optional
  • limit integer query, optional

Answer (200, JSON)

  • items array of object required
  • nextCursor string | null required

POST /ledger/history/undoDryRun Check what undoing a change set would do to the bank balances ledger.history.undoDryRun

Body (JSON)

  • bookId string required
  • changeSetId string required

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 403: AGENT_UNDO_ONLY, PAIR_NOT_WRITABLE
  • 409: REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, BOOK_ARCHIVED, POCKET_CLOSED, ALREADY_UNDONE, CHANGE_SET_SUPERSEDED, USE_IMPORT_UNDO, RULE_EXISTS, UNDO_CHAIN_BROKEN, MERGE_NOT_NEWEST, MERGE_STANDS, MERGE_UNDONE, REFUND_EXCEEDS_PAYMENT, HAS_REFUNDS
  • 422: AMOUNT_TOO_LARGE, NOT_REFUNDABLE

POST /ledger/history/undo Undo a change set by writing one that reverses it; undoing an undo redoes it ledger.history.undo

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • changeSetId string required

Answer (200, JSON)

  • id string required
  • via "user" | "rule" | "import" | "agent" | "system" required
  • summary string required
  • actorId string | null required
  • createdAt string (date-time) required
  • undoneById string | null required
  • undoesId string | null required
  • transactionCount integer required
  • transactionIds array of string required

Refusals

  • 403: AGENT_UNDO_ONLY, PAIR_NOT_WRITABLE
  • 409: REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, BOOK_ARCHIVED, POCKET_CLOSED, ALREADY_UNDONE, CHANGE_SET_SUPERSEDED, USE_IMPORT_UNDO, RULE_EXISTS, UNDO_CHAIN_BROKEN, MERGE_NOT_NEWEST, MERGE_STANDS, MERGE_UNDONE, REFUND_EXCEEDS_PAYMENT, HAS_REFUNDS
  • 422: AMOUNT_TOO_LARGE, NOT_REFUNDABLE

GET /ledger/assertions/list List a book’s recorded balances, newest date first, a page at a time ledger.assertions.list

Parameters

  • bookId string query, required
  • pocketId string query, optional
  • asset string query, optional
  • from string (date) query, optional
  • to string (date) query, optional
  • latest boolean query, optional
  • cursor string query, optional
  • limit integer query, optional

Answer (200, JSON)

  • items array of object required
  • nextCursor string | null required

POST /ledger/assertions/create Record a pocket’s balance on a day, posting an adjustment for any difference ledger.assertions.create

Body (JSON)

  • bookId string required
  • pocketId string required
  • date string (date) required
  • amount object required
  • replaces string | null required
  • requestId string (uuid) required

Answer (200, JSON)

  • assertion object required
  • changeSetId string | null required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, ASSERTION_EXISTS, ASSERTION_CHANGED
  • 422: INVALID_ACCOUNT, DATE_IN_FUTURE, AMOUNT_TOO_PRECISE

POST /ledger/assertions/createMany Record a pocket’s balance in several assets on one day, all or nothing ledger.assertions.createMany

Body (JSON)

  • bookId string required
  • pocketId string required
  • date string (date) required
  • balances array of object required
  • requestId string (uuid) required

Answer (200, JSON)

  • assertions array of object required
  • changeSetId string | null required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, ASSERTION_EXISTS, ASSERTION_CHANGED
  • 422: INVALID_ACCOUNT, DATE_IN_FUTURE, AMOUNT_TOO_PRECISE

GET /ledger/assertions/preview Preview the adjustment recording a pocket’s balances on a day would post ledger.assertions.preview

Parameters

  • bookId string query, required
  • pocketId string query, required
  • date string (date) query, required
  • amounts array of object query, required

Answer (200, JSON)

  • balances array of object required

Refusals

  • 409: POCKET_CLOSED
  • 422: INVALID_ACCOUNT, DATE_IN_FUTURE, AMOUNT_TOO_PRECISE

POST /ledger/assertions/delete Delete a recorded balance and its adjustment ledger.assertions.delete

Body (JSON)

  • bookId string required
  • assertionId string required
  • requestId string (uuid) required

Answer (200, JSON)

  • assertionId string required
  • changeSetId string required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED

POST /ledger/bookTransfers/createDryRun Check what moving money between books would do to bank balances ledger.bookTransfers.createDryRun

Body (JSON)

  • bookId string required
  • toBookId string required
  • bookingDate string (date) required
  • fromPocketId string required
  • toPocketId string required
  • amount string required
  • asset string required
  • as "contribution" | "loan" required
  • id string (uuid) optional
  • toId string (uuid) optional
  • occurredAt string (date-time) optional
  • payee string optional
  • description string optional
  • notes string optional
  • tags array of string optional
  • status "pending" | "posted" optional
  • received object optional

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, ID_TAKEN
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE

POST /ledger/bookTransfers/create Move money from a pocket in one book to a pocket in another ledger.bookTransfers.create

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • toBookId string required
  • bookingDate string (date) required
  • fromPocketId string required
  • toPocketId string required
  • amount string required
  • asset string required
  • as "contribution" | "loan" required
  • id string (uuid) optional
  • toId string (uuid) optional
  • occurredAt string (date-time) optional
  • payee string optional
  • description string optional
  • notes string optional
  • tags array of string optional
  • status "pending" | "posted" optional
  • received object optional

Answer (200, JSON)

  • from object required
  • to object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, ID_TAKEN
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE

POST /ledger/bookTransfers/updateDryRun Check what changing a transfer between books would do to bank balances ledger.bookTransfers.updateDryRun

Body (JSON)

  • bookId string required
  • transactionId string required
  • ifChangeSetId string required
  • transfer object required

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, TRANSACTION_CHANGED, CHANGE_SET_SUPERSEDED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE

POST /ledger/bookTransfers/update Change both sides of a transfer between books ledger.bookTransfers.update

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • transactionId string required
  • ifChangeSetId string required
  • transfer object required

Answer (200, JSON)

  • from object required
  • to object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, TRANSACTION_CHANGED, CHANGE_SET_SUPERSEDED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE

POST /ledger/bookTransfers/fromTransactionDryRun Check what turning a payment into a transfer between books would do to balances ledger.bookTransfers.fromTransactionDryRun

Body (JSON)

  • bookId string required
  • transactionId string required
  • ifChangeSetId string required
  • otherBookId string required
  • otherPocketId string required
  • as "contribution" | "loan" required
  • received object optional

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, TRANSACTION_CHANGED, SEVERAL_COUNTERPARTS
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE, NOT_A_TRANSFER_PAIR

POST /ledger/bookTransfers/fromTransaction Turn a payment or income into a transfer with another book ledger.bookTransfers.fromTransaction

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • transactionId string required
  • ifChangeSetId string required
  • otherBookId string required
  • otherPocketId string required
  • as "contribution" | "loan" required
  • received object optional

Answer (200, JSON)

  • from object required
  • to object required
  • joined boolean required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, TRANSACTION_CHANGED, SEVERAL_COUNTERPARTS
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE, NOT_A_TRANSFER_PAIR

POST /ledger/bookTransfers/joinDryRun Check what joining rows of two books would do to bank balances ledger.bookTransfers.joinDryRun

Body (JSON)

  • bookId string required
  • transactionId string required
  • ifChangeSetId string required
  • otherBookId string required
  • otherTransactionId string required
  • otherIfChangeSetId string required
  • as "contribution" | "loan" required

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, TRANSACTION_CHANGED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE, NOT_A_TRANSFER_PAIR

POST /ledger/bookTransfers/join Join a row of this book and one of another as a transfer, by hand ledger.bookTransfers.join

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • transactionId string required
  • ifChangeSetId string required
  • otherBookId string required
  • otherTransactionId string required
  • otherIfChangeSetId string required
  • as "contribution" | "loan" required

Answer (200, JSON)

  • from object required
  • to object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, TRANSACTION_CHANGED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE, NOT_A_TRANSFER_PAIR

POST /ledger/bookTransfers/deleteDryRun Check what deleting a transfer between books would do to bank balances ledger.bookTransfers.deleteDryRun

Body (JSON)

  • bookId string required
  • transactionId string required
  • ifChangeSetId string required

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, TRANSACTION_CHANGED, CHANGE_SET_SUPERSEDED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE

POST /ledger/bookTransfers/delete Delete both sides of a transfer between books ledger.bookTransfers.delete

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • transactionId string required
  • ifChangeSetId string required

Answer (200, JSON)

  • from object required
  • to object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, POCKET_CLOSED, TRANSACTION_CHANGED, CHANGE_SET_SUPERSEDED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE

GET /ledger/bookTransfers/between Sum what a book put into another, took back and is owed, per asset ledger.bookTransfers.between

Parameters

  • bookId string query, required
  • otherBookId string query, required

Answer (200, JSON list of objects)

  • asset string required
  • putIn string required
  • takenBack string required
  • owed string required

GET /ledger/contacts/list List a book’s contacts, the most owed first, then settled and archived ones ledger.contacts.list

Parameters

  • bookId string query, required

Answer (200, JSON list of objects)

  • id string required
  • name string required
  • status "open" | "settled" | "archived" required
  • balances array of object required
  • total string | null required
  • lastActiveOn string (date) required
  • updatedAt string (date-time) required

GET /ledger/contacts/get Get one contact and what is owed with them ledger.contacts.get

Parameters

  • bookId string query, required
  • contactId string query, required

Answer (200, JSON)

  • id string required
  • name string required
  • status "open" | "settled" | "archived" required
  • balances array of object required
  • total string | null required
  • lastActiveOn string (date) required
  • updatedAt string (date-time) required

POST /ledger/contacts/lend Record money lent to or borrowed from a contact ledger.contacts.lend

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • bookingDate string (date) required
  • contact object required
  • pocketId string required
  • amount string required
  • asset string required
  • direction "lent" | "borrowed" required
  • occurredAt string (date-time) optional
  • payee string optional
  • description string optional
  • notes string optional
  • tags array of string optional
  • status "pending" | "posted" optional
  • received object optional

Answer (200, JSON)

  • transaction object required
  • changeSetId string required
  • contact object required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, CONTACT_CHANGED, POCKET_CLOSED, ID_TAKEN
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE

POST /ledger/contacts/settle Record money paid back to or by a contact, all that is open by default ledger.contacts.settle

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • contactId string required
  • asset string required
  • bookingDate string (date) required
  • way object required
  • amount string optional
  • direction "to-you" | "by-you" optional

Answer (200, JSON)

  • transaction object required
  • changeSetId string required
  • contact object required

Refusals

  • 404: TRANSACTION_MERGED
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, CONTACT_CHANGED, POCKET_CLOSED, CONTACT_SETTLED, TRANSACTION_CHANGED, HAS_REFUNDS
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE, NOT_A_TRANSFER_PAIR

POST /ledger/contacts/forgive Write off what a contact owes you, or what you owe them ledger.contacts.forgive

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • contactId string required
  • asset string required
  • bookingDate string (date) required
  • amount string optional

Answer (200, JSON)

  • transaction object required
  • changeSetId string required
  • contact object required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, CONTACT_CHANGED, POCKET_CLOSED, CONTACT_SETTLED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE

POST /ledger/contacts/rename Rename a contact ledger.contacts.rename

Body (JSON)

  • bookId string required
  • contactId string required
  • expectedUpdatedAt string (date-time) required
  • contactName string required

Answer (200, JSON)

  • id string required
  • name string required
  • status "open" | "settled" | "archived" required
  • balances array of object required
  • total string | null required
  • lastActiveOn string (date) required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, CONTACT_CHANGED, CONTACT_NAME_TAKEN

POST /ledger/contacts/archive Archive a settled contact, hiding it from the open ones ledger.contacts.archive

Body (JSON)

  • bookId string required
  • contactId string required
  • expectedUpdatedAt string (date-time) required

Answer (200, JSON)

  • id string required
  • name string required
  • status "open" | "settled" | "archived" required
  • balances array of object required
  • total string | null required
  • lastActiveOn string (date) required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, CONTACT_CHANGED, CONTACT_NOT_SETTLED

POST /ledger/contacts/linkDryRun Check what turning payments into transfers with a contact would do to bank balances ledger.contacts.linkDryRun

Body (JSON)

  • bookId string required
  • contact object required
  • as "loan" | "repayment" required
  • items array of object required

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 404: TRANSACTION_MERGED
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, CONTACT_CHANGED, POCKET_CLOSED, ID_TAKEN, TRANSACTION_CHANGED, HAS_REFUNDS
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE, NOT_A_TRANSFER_PAIR

POST /ledger/contacts/merge Merge one contact into another, moving all its transactions ledger.contacts.merge

Body (JSON)

  • bookId string required
  • contactId string required
  • expectedUpdatedAt string (date-time) required
  • intoId string required
  • intoExpectedUpdatedAt string (date-time) required

Answer (200, JSON)

  • changeSetId string | null required
  • contact object required

Refusals

  • 409: BOOK_ARCHIVED, CONTACT_CHANGED
  • 422: CONTACT_TOO_LARGE

POST /ledger/contacts/unarchive Show an archived contact again ledger.contacts.unarchive

Body (JSON)

  • bookId string required
  • contactId string required
  • expectedUpdatedAt string (date-time) required

Answer (200, JSON)

  • id string required
  • name string required
  • status "open" | "settled" | "archived" required
  • balances array of object required
  • total string | null required
  • lastActiveOn string (date) required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, CONTACT_CHANGED

GET /ledger/owed/list List the people and other books money is owed with, books first ledger.owed.list

Parameters

  • bookId string query, required

Answer (200, JSON list of objects)

  • counterparty object required
  • pocketId string required
  • status "open" | "settled" | "archived" required
  • balances array of object required
  • total string | null required
  • lastActiveOn string (date) required
  • updatedAt string (date-time) required

GET /ledger/owed/get Get what is owed with a person or another book, and its balance over time ledger.owed.get

Parameters

  • bookId string query, required
  • contactId string query, optional
  • otherBookId string query, optional

Answer (200, JSON)

  • counterparty object required
  • pocketId string required
  • status "open" | "settled" | "archived" required
  • balances array of object required
  • total string | null required
  • lastActiveOn string (date) required
  • updatedAt string (date-time) required
  • over array of object required

POST /ledger/owed/lendDryRun Check what lending or borrowing would do to bank balances ledger.owed.lendDryRun

Body (JSON)

  • bookId string required
  • bookingDate string (date) required
  • counterparty object required
  • pocketId string required
  • amount string required
  • asset string required
  • direction "lent" | "borrowed" required
  • occurredAt string (date-time) optional
  • payee string optional
  • description string optional
  • notes string optional
  • tags array of string optional
  • status "pending" | "posted" optional
  • otherPocketId string optional
  • received object optional

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, COUNTERPARTY_CHANGED, POCKET_CLOSED, ID_TAKEN
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE

POST /ledger/owed/lend Record money lent to or borrowed from a person or another book ledger.owed.lend

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • bookingDate string (date) required
  • counterparty object required
  • pocketId string required
  • amount string required
  • asset string required
  • direction "lent" | "borrowed" required
  • occurredAt string (date-time) optional
  • payee string optional
  • description string optional
  • notes string optional
  • tags array of string optional
  • status "pending" | "posted" optional
  • otherPocketId string optional
  • received object optional

Answer (200, JSON)

  • transaction object required
  • changeSetId string required
  • owed object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, COUNTERPARTY_CHANGED, POCKET_CLOSED, ID_TAKEN
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE

POST /ledger/owed/settleDryRun Check what settling up would do to bank balances ledger.owed.settleDryRun

Body (JSON)

  • bookId string required
  • counterparty object required
  • asset string required
  • bookingDate string (date) required
  • way object required
  • amount string optional
  • direction "to-you" | "by-you" optional
  • otherPocketId string optional

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 404: TRANSACTION_MERGED
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, COUNTERPARTY_CHANGED, POCKET_CLOSED, NOTHING_OWED, TRANSACTION_CHANGED, HAS_REFUNDS
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE, NOT_A_TRANSFER_PAIR

POST /ledger/owed/settle Record money paid back to or by a person or another book ledger.owed.settle

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • counterparty object required
  • asset string required
  • bookingDate string (date) required
  • way object required
  • amount string optional
  • direction "to-you" | "by-you" optional
  • otherPocketId string optional

Answer (200, JSON)

  • transaction object required
  • changeSetId string required
  • owed object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 404: TRANSACTION_MERGED
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, COUNTERPARTY_CHANGED, POCKET_CLOSED, NOTHING_OWED, TRANSACTION_CHANGED, HAS_REFUNDS
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE, NOT_A_TRANSFER_PAIR

POST /ledger/owed/forgiveDryRun Check what writing off what is owed would do to bank balances ledger.owed.forgiveDryRun

Body (JSON)

  • bookId string required
  • counterparty object required
  • asset string required
  • bookingDate string (date) required
  • amount string optional

Answer (200, JSON)

  • balanceChecks array of object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, COUNTERPARTY_CHANGED, POCKET_CLOSED, NOTHING_OWED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE

POST /ledger/owed/forgive Write off what is owed with a person or another book ledger.owed.forgive

Body (JSON)

  • bookId string required
  • requestId string (uuid) required
  • counterparty object required
  • asset string required
  • bookingDate string (date) required
  • amount string optional

Answer (200, JSON)

  • transaction object required
  • changeSetId string required
  • owed object required

Refusals

  • 403: PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, COUNTERPARTY_CHANGED, POCKET_CLOSED, NOTHING_OWED
  • 422: INVALID_ACCOUNT, AMOUNT_TOO_PRECISE, AMOUNT_TOO_LARGE

GET /ledger/tags/list List the tags on a book’s transactions ledger.tags.list

Parameters

  • bookId string query, required
  • q string query, optional

Answer (200, JSON list of objects)

  • tag string required
  • count integer required

Rates

GET /rates/list List market rates and a book’s own rates over a period, newest first rates.list

Parameters

  • bookId string query, required
  • base string query, optional
  • quote string query, optional
  • source "manual" query, optional
  • from string (date) query, required
  • to string (date) query, required

Answer (200, JSON list of objects)

  • base string required
  • quote string required
  • date string (date) required
  • rate string required
  • source string required
  • unused boolean required

POST /rates/setManual Set a book’s own rate for a pair and day the market has no rate for rates.setManual

Body (JSON)

  • bookId string required
  • base string required
  • quote string required
  • date string (date) required
  • rate string required
  • requestId string (uuid) required

Answer (200, JSON)

  • base string required
  • quote string required
  • date string (date) required
  • rate string required
  • source string required

Refusals

  • 409: REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, BOOK_ARCHIVED
  • 422: RATE_NOT_POSITIVE, MARKET_HAS_RATE

POST /rates/removeManual Remove a book’s own rate for a pair and day rates.removeManual

Body (JSON)

  • bookId string required
  • base string required
  • quote string required
  • date string (date) required

Answer (200, JSON)

  • removed boolean required

Refusals

  • 409: BOOK_ARCHIVED

POST /rates/coins List the coins each crypto ticker could be and the one the book prices rates.coins

Body (JSON)

  • bookId string required
  • assets array of string required

Answer (200, JSON list of objects)

  • asset string required
  • coinId string | null required
  • pinnedBy "auto" | "venue" | "chosen" | "unpriced" | null required
  • candidates array of object required

POST /rates/pinCoin Choose which coin a book prices a crypto ticker as, or none, and re-price it rates.pinCoin

Body (JSON)

  • bookId string required
  • asset string required
  • coinId string | null required

Answer (200, JSON)

  • asset string required
  • coinId string | null required

Refusals

  • 409: BOOK_ARCHIVED
  • 422: COIN_NOT_LISTED

Holdings

GET /holdings/list List what each pocket holds of each investment, valued on a date holdings.list

Parameters

  • bookId string query, required
  • date string (date) query, optional

Answer (200, JSON)

  • baseCurrency string required
  • date string (date) required
  • holdings array of object required
  • byAsset array of object required
  • totals object required

GET /holdings/lots List an asset’s lots, oldest first holdings.lots

Parameters

  • bookId string query, required
  • asset string query, required
  • pocketId string query, optional
  • cursor string query, optional
  • limit integer query, optional

Answer (200, JSON)

  • baseCurrency string required
  • items array of object required
  • nextCursor string | null required
  • unknown object required
  • priceDate string (date) | null required

Refusals

  • 409: NOT_AN_INVESTMENT_ASSET

GET /holdings/realised List sales between two dates with their realised gain or loss holdings.realised

Parameters

  • bookId string query, required
  • from string (date) query, required
  • to string (date) query, required
  • cursor string query, optional
  • limit integer query, optional

Answer (200, JSON)

  • baseCurrency string required
  • items array of object required
  • nextCursor string | null required
  • firstOn string (date) | null required
  • totals object required

GET /holdings/income List dividends, interest and staking rewards between two dates holdings.income

Parameters

  • bookId string query, required
  • from string (date) query, required
  • to string (date) query, required
  • cursor string query, optional
  • limit integer query, optional
  • asset string query, optional
  • pocketId string query, optional

Answer (200, JSON)

  • baseCurrency string required
  • items array of object required
  • nextCursor string | null required
  • firstOn string (date) | null required
  • totals object required

Refusals

  • 409: NOT_AN_INVESTMENT_ASSET

POST /holdings/setLotCost State or clear the cost of an acquisition the ledger cannot price holdings.setLotCost

Body (JSON)

  • bookId string required
  • transactionId string required
  • asset string required
  • costVersion string | null required
  • requestId string (uuid) required
  • cost object optional
  • costBase object | null optional
  • fees object optional

Answer (200, JSON)

  • baseCurrency string required
  • lots array of object required

Refusals

  • 409: BOOK_ARCHIVED, NOT_AN_INVESTMENT_ASSET, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, NOT_AN_ACQUISITION, COST_KNOWN, COST_CHANGED
  • 422: AMOUNT_TOO_PRECISE, NOT_BASE_CURRENCY, RATE_MISSING

POST /holdings/statePurchase State a known purchase inside a lot of unknown cost, or change one holdings.statePurchase

Body (JSON)

  • bookId string required
  • asset string required
  • version string | null required
  • quantity string required
  • boughtOn string (date) required
  • cost object required
  • requestId string (uuid) required
  • lotId string optional
  • purchaseId string optional
  • costBase object optional
  • fees object optional

Answer (200, JSON)

  • purchaseId string required

Refusals

  • 409: BOOK_ARCHIVED, NOT_AN_INVESTMENT_ASSET, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, NOT_AN_ACQUISITION, COST_KNOWN, COST_CHANGED, MORE_THAN_UNKNOWN
  • 422: AMOUNT_TOO_PRECISE, NOT_BASE_CURRENCY, RATE_MISSING, BOUGHT_AFTER_ARRIVAL

POST /holdings/removePurchase Remove a known purchase: its quantity is of unknown cost again holdings.removePurchase

Body (JSON)

  • bookId string required
  • asset string required
  • purchaseId string required
  • version string required
  • requestId string (uuid) required

Refusals

  • 409: BOOK_ARCHIVED, NOT_AN_INVESTMENT_ASSET, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, COST_CHANGED, COST_KNOWN
  • 422: AMOUNT_TOO_PRECISE

Reports

GET /reports/flows Sum a book’s spending and income over a period, split up to three ways reports.flows

Parameters

  • bookId string query, required
  • from string (date) query, required
  • to string (date) query, required
  • groupBy array of "category" | "parentCategory" | "pocket" | "person" | "month" | "day" | "asset" query, optional
  • filters object query, optional
  • includePending boolean query, optional

Answer (200, JSON)

  • baseCurrency string required
  • rows array of object required
  • totals object required
  • unconverted array of object required

Refusals

  • 422: REPORT_TOO_LARGE

GET /reports/netWorth Value every pocket’s balances at the end of a day in the base currency reports.netWorth

Parameters

  • bookId string query, required
  • date string (date) query, required
  • owner "shared" | string query, optional

Answer (200, JSON)

  • baseCurrency string required
  • date string (date) required
  • holdings array of object required
  • pockets array of object required
  • byKind object required
  • total string required
  • owedToYou string required
  • youOwe string required
  • unconverted array of object required
  • rates array of object required

GET /reports/netWorthSeries List net worth at each day, week or month end of a period reports.netWorthSeries

Parameters

  • bookId string query, required
  • from string (date) query, required
  • to string (date) query, required
  • step "month" | "week" | "day" query, optional
  • owner "shared" | string query, optional

Answer (200, JSON)

  • baseCurrency string required
  • points array of object required

GET /reports/usual Work out a month’s usual spending: the median of the 12 months before reports.usual

Parameters

  • bookId string query, required
  • month string query, required
  • through integer query, optional
  • since string query, optional
  • groupBy array of "parentCategory" | "category" | "pocket" | "person" query, optional
  • filters object query, optional
  • includePending boolean query, optional

Answer (200, JSON)

  • baseCurrency string required
  • months integer required
  • window object | null required
  • firstSpending string (date) | null required
  • rows array of object required
  • total string required
  • mean string required
  • unconverted integer required

Refusals

  • 422: REPORT_TOO_LARGE

GET /reports/moved Total a period’s transfers, exchanges, investments, loans and repayments reports.moved

Parameters

  • bookId string query, required
  • from string (date) query, required
  • to string (date) query, required
  • includePending boolean query, optional

Answer (200, JSON)

  • baseCurrency string required
  • transfers object required
  • exchanges object required
  • invested object required
  • divested object required
  • toOtherBooks object required
  • fromOtherBooks object required
  • contributions object required
  • loans object required
  • repayments object required

GET /reports/year Get a year’s figures by month, category, pocket and owner, with changes reports.year

Parameters

  • bookId string query, required
  • year integer query, required
  • today string (date) query, optional
  • includePending boolean query, optional

Answer (200, JSON)

  • baseCurrency string required
  • year integer required
  • grids object required
  • comparableMonths array of integer required
  • categories array of object required
  • movers array of object required
  • top array of object required
  • topTwoHalf boolean required
  • topThreeHalf boolean required
  • average string | null required
  • lastYear object | null required

Refusals

  • 422: REPORT_TOO_LARGE

GET /reports/trends Get which categories are rising or falling and the new recurring payments reports.trends

Parameters

  • bookId string query, required
  • today string (date) query, optional
  • includePending boolean query, optional

Answer (200, JSON)

  • baseCurrency string required
  • today string (date) required
  • months object required
  • categories array of object required
  • usualMonths integer required
  • thisMonth array of object required
  • newRecurring array of object required

Refusals

  • 422: REPORT_TOO_LARGE

GET /reports/budgets Get each budgeted category’s spending this month and a suggested budget reports.budgets

Parameters

  • bookId string query, required
  • month string query, required
  • today string (date) query, optional
  • includePending boolean query, optional

Answer (200, JSON)

  • baseCurrency string required
  • month string required
  • days object required
  • budgets array of object required
  • suggestions array of object required
  • usualMonths integer required
  • unconverted integer required

Refusals

  • 422: REPORT_TOO_LARGE

GET /reports/merchant Get what one merchant cost over all time, by its key or one of its transactions reports.merchant

Parameters

  • bookId string query, required
  • key string query, optional
  • transactionId string query, optional
  • today string (date) query, required

Answer (200, JSON)

  • baseCurrency string required
  • merchant object | null required

GET /reports/unusual List a period’s payments over three times their merchant’s usual reports.unusual

Parameters

  • bookId string query, required
  • from string (date) query, required
  • to string (date) query, required

Answer (200, JSON)

  • baseCurrency string required
  • payments array of object required

Attachments

POST /attachments/startUpload Start adding a photo or PDF to a transaction and get where to upload it attachments.startUpload

Body (JSON)

  • bookId string required
  • transactionId string required
  • fileName string required
  • mediaType "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif" | "image/avif" | "image/tiff" | "application/pdf" required
  • size integer required
  • sha256 string required
  • requestId string (uuid) required

Answer (200, JSON)

  • attachmentId string required
  • upload object | null required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, TOO_MANY_ATTACHMENTS, PLAN_LIMIT
  • 415: MEDIA_TYPE_NOT_ACCEPTED
  • 503: ATTACHMENTS_UNAVAILABLE

POST /attachments/completeUpload Finish an upload and have the file checked in the background attachments.completeUpload

Body (JSON)

  • bookId string required
  • attachmentId string required

Answer (200, JSON)

  • id string required
  • transactionId string required
  • fileName string required
  • mediaType "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif" | "image/avif" | "image/tiff" | "application/pdf" required
  • sizeBytes integer required
  • sha256 string required
  • status "awaiting-upload" | "processing" | "ready" | "rejected" required
  • rejection "size" | "hash" | "type-mismatch" | "not-allowed" | "malware" | "expired" | "failed" | null required
  • caption string | null required
  • hasThumbnail boolean required
  • uploadedBy string | null required
  • createdAt string (date-time) required
  • readyAt string (date-time) | null required
  • deletedAt string (date-time) | null required
  • purgeAfter string (date-time) | null required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_IN_PROGRESS, UPLOAD_NOT_RECEIVED
  • 503: ATTACHMENTS_UNAVAILABLE

GET /attachments/list List the attachments a transaction shows, oldest first attachments.list

Parameters

  • bookId string query, required
  • transactionId string query, required

Answer (200, JSON list of objects)

  • id string required
  • transactionId string required
  • fileName string required
  • mediaType "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif" | "image/avif" | "image/tiff" | "application/pdf" required
  • sizeBytes integer required
  • sha256 string required
  • status "awaiting-upload" | "processing" | "ready" | "rejected" required
  • rejection "size" | "hash" | "type-mismatch" | "not-allowed" | "malware" | "expired" | "failed" | null required
  • caption string | null required
  • hasThumbnail boolean required
  • uploadedBy string | null required
  • createdAt string (date-time) required
  • readyAt string (date-time) | null required
  • deletedAt string (date-time) | null required
  • purgeAfter string (date-time) | null required

GET /attachments/get Get one attachment, deleted ones too until they are purged attachments.get

Parameters

  • bookId string query, required
  • attachmentId string query, required

Answer (200, JSON)

  • id string required
  • transactionId string required
  • fileName string required
  • mediaType "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif" | "image/avif" | "image/tiff" | "application/pdf" required
  • sizeBytes integer required
  • sha256 string required
  • status "awaiting-upload" | "processing" | "ready" | "rejected" required
  • rejection "size" | "hash" | "type-mismatch" | "not-allowed" | "malware" | "expired" | "failed" | null required
  • caption string | null required
  • hasThumbnail boolean required
  • uploadedBy string | null required
  • createdAt string (date-time) required
  • readyAt string (date-time) | null required
  • deletedAt string (date-time) | null required
  • purgeAfter string (date-time) | null required

POST /attachments/updateCaption Set or clear an attachment’s caption attachments.updateCaption

Body (JSON)

  • bookId string required
  • attachmentId string required
  • caption string | null required

Answer (200, JSON)

  • id string required
  • transactionId string required
  • fileName string required
  • mediaType "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif" | "image/avif" | "image/tiff" | "application/pdf" required
  • sizeBytes integer required
  • sha256 string required
  • status "awaiting-upload" | "processing" | "ready" | "rejected" required
  • rejection "size" | "hash" | "type-mismatch" | "not-allowed" | "malware" | "expired" | "failed" | null required
  • caption string | null required
  • hasThumbnail boolean required
  • uploadedBy string | null required
  • createdAt string (date-time) required
  • readyAt string (date-time) | null required
  • deletedAt string (date-time) | null required
  • purgeAfter string (date-time) | null required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_IN_PROGRESS

POST /attachments/delete Delete an attachment, restorable for 30 days attachments.delete

Body (JSON)

  • bookId string required
  • attachmentId string required

Answer (200, JSON)

  • id string required
  • transactionId string required
  • fileName string required
  • mediaType "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif" | "image/avif" | "image/tiff" | "application/pdf" required
  • sizeBytes integer required
  • sha256 string required
  • status "awaiting-upload" | "processing" | "ready" | "rejected" required
  • rejection "size" | "hash" | "type-mismatch" | "not-allowed" | "malware" | "expired" | "failed" | null required
  • caption string | null required
  • hasThumbnail boolean required
  • uploadedBy string | null required
  • createdAt string (date-time) required
  • readyAt string (date-time) | null required
  • deletedAt string (date-time) | null required
  • purgeAfter string (date-time) | null required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_IN_PROGRESS

POST /attachments/restore Restore a deleted attachment within 30 days of deleting it attachments.restore

Body (JSON)

  • bookId string required
  • attachmentId string required

Answer (200, JSON)

  • id string required
  • transactionId string required
  • fileName string required
  • mediaType "image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif" | "image/avif" | "image/tiff" | "application/pdf" required
  • sizeBytes integer required
  • sha256 string required
  • status "awaiting-upload" | "processing" | "ready" | "rejected" required
  • rejection "size" | "hash" | "type-mismatch" | "not-allowed" | "malware" | "expired" | "failed" | null required
  • caption string | null required
  • hasThumbnail boolean required
  • uploadedBy string | null required
  • createdAt string (date-time) required
  • readyAt string (date-time) | null required
  • deletedAt string (date-time) | null required
  • purgeAfter string (date-time) | null required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_IN_PROGRESS, TOO_MANY_ATTACHMENTS, PLAN_LIMIT
  • 410: RESTORE_EXPIRED

GET /attachments/download Download an attachment’s file, or its thumbnail, decrypted attachments.download

Parameters

  • bookId string query, required
  • attachmentId string query, required
  • variant "original" | "thumbnail" query, optional

Refusals

  • 409: ATTACHMENT_NOT_READY
  • 415: MEDIA_TYPE_NOT_ACCEPTED
  • 503: ATTACHMENTS_UNAVAILABLE

Imports

POST /imports/startUpload Start uploading a statement and get a presigned address to PUT its bytes imports.startUpload

Body (JSON)

  • bookId string required
  • fileName string required
  • mediaType string required
  • size integer required
  • sha256 string required
  • requestId string (uuid) required

Answer (200, JSON)

  • uploadId string required
  • upload object | null required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, PLAN_LIMIT
  • 413: IMPORT_TOO_LARGE

POST /imports/putUpload Send an upload’s bytes in the request, in place of the presigned PUT imports.putUpload

Body (JSON)

  • bookId string required
  • uploadId string required
  • content string required

Answer (200, JSON)

  • uploadId string required

Refusals

  • 409: BOOK_ARCHIVED
  • 422: UPLOAD_MISMATCH

POST /imports/detect Detect who wrote an uploaded statement and its accounts; poll until ready imports.detect

Body (JSON)

  • bookId string required
  • uploadId string required
  • password string optional
  • account string optional

Answer (200, JSON)

  • status "detecting" | "ready" | "refused" required
  • detections array of object required
  • accounts array of object required
  • links array of object required
  • skipped array of string required
  • needsPassword boolean required
  • refusal "ACCOUNT_REQUIRED" | "IMPORT_UNREADABLE" | "IMPORT_TOO_LARGE" | "IMPORT_UNSUPPORTED" | "DETECT_FAILED" optional

Refusals

  • 409: BOOK_ARCHIVED, UPLOAD_PENDING, UPLOAD_LOCKED
  • 413: UNLOCK_TOO_LARGE, IMPORT_TOO_LARGE
  • 415: IMPORT_UNSUPPORTED
  • 422: UPLOAD_MISMATCH, PASSWORD_REQUIRED, PASSWORD_WRONG, ACCOUNT_REQUIRED, IMPORT_UNREADABLE
  • 503: UNLOCK_BUSY

POST /imports/suggestMapping Read the column-mapping suggestion for a CSV or XLSX no importer claims; poll imports.suggestMapping

Body (JSON)

  • bookId string required
  • uploadId string required
  • encoding "windows-1252" | "iso-8859-8" | "windows-1255" | "iso-8859-7" | "windows-1253" optional

Answer (200, JSON)

  • status "detecting" | "ready" | "refused" required
  • suggestion object | null required
  • refusal "ACCOUNT_REQUIRED" | "IMPORT_UNREADABLE" | "IMPORT_TOO_LARGE" | "IMPORT_UNSUPPORTED" | "DETECT_FAILED" | "ENCODING_REQUIRED" optional

Refusals

  • 409: BOOK_ARCHIVED, UPLOAD_PENDING, UPLOAD_LOCKED
  • 413: UNLOCK_TOO_LARGE, IMPORT_TOO_LARGE
  • 415: IMPORT_UNSUPPORTED
  • 422: UPLOAD_MISMATCH, PASSWORD_REQUIRED, PASSWORD_WRONG, ACCOUNT_REQUIRED, IMPORT_UNREADABLE
  • 503: UNLOCK_BUSY

GET /imports/mappings/list List a book’s saved column mappings imports.mappings.list

Parameters

  • bookId string query, required

Answer (200, JSON list of objects)

  • id string required
  • name string required
  • version 1 required
  • file object required
  • match object required
  • date object required
  • amount object required
  • number object required
  • asset object required
  • description object required
  • account object required
  • valueDate object optional
  • counterparty object optional
  • externalId object optional
  • balance object optional
  • category object optional

POST /imports/mappings/save Save a column mapping, and detect the statement it was made for again imports.mappings.save

Body (JSON)

  • bookId string required
  • mapping object required
  • requestId string (uuid) required
  • uploadId string optional

Answer (200, JSON)

  • id string required
  • name string required
  • version 1 required
  • file object required
  • match object required
  • date object required
  • amount object required
  • number object required
  • asset object required
  • description object required
  • account object required
  • valueDate object optional
  • counterparty object optional
  • externalId object optional
  • balance object optional
  • category object optional

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, UPLOAD_LOCKED
  • 413: UNLOCK_TOO_LARGE
  • 415: IMPORT_UNSUPPORTED
  • 422: UPLOAD_MISMATCH

POST /imports/mappings/delete Delete a saved column mapping; imports that used it stay imports.mappings.delete

Body (JSON)

  • bookId string required
  • mappingId string required
  • requestId string (uuid) required

Answer (200, JSON)

  • mappingId string required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED

POST /imports/start Import a detected statement, a pocket or a skip for each account, as a job imports.start

Body (JSON)

  • bookId string required
  • uploadId string required
  • provider string required
  • accounts array of object required
  • requestId string (uuid) required
  • password string optional
  • account string optional

Answer (200, JSON)

  • runId string required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, UPLOAD_PENDING, UPLOAD_LOCKED, PLAN_LIMIT, ACCOUNTS_UNMAPPED, POCKET_CLOSED, PERSON_ARCHIVED, PROVIDER_MISMATCH
  • 413: UNLOCK_TOO_LARGE, IMPORT_TOO_LARGE
  • 415: IMPORT_UNSUPPORTED
  • 422: UPLOAD_MISMATCH, PASSWORD_REQUIRED, PASSWORD_WRONG, ACCOUNT_REQUIRED, IMPORT_UNREADABLE
  • 503: UNLOCK_BUSY

GET /imports/statementsByPocket List each pocket’s last import and the newest statement day it posted imports.statementsByPocket

Parameters

  • bookId string query, required

Answer (200, JSON)

  • items array of object required

GET /imports/waiting List the uploaded statements waiting to be finished in the wizard, newest first imports.waiting

Parameters

  • bookId string query, required

Answer (200, JSON)

  • items array of object required

GET /imports/runs/list List a book’s imports, newest first, a page at a time imports.runs.list

Parameters

  • bookId string query, required
  • cursor string query, optional
  • limit integer query, required

Answer (200, JSON)

  • items array of object required
  • nextCursor string | null required

GET /imports/runs/get Get one import with its counts and warnings imports.runs.get

Parameters

  • bookId string query, required
  • runId string query, required

Answer (200, JSON)

  • id string required
  • status "queued" | "running" | "done" | "failed" required
  • provider string required
  • source "file" | "mail" | "bank" required
  • file object required
  • startedAt string (date-time) | null required
  • finishedAt string (date-time) | null required
  • counts object required
  • warnings array of object required
  • balances object required
  • changeSetId string | null required
  • undoableByYou boolean required
  • undoneAt string (date-time) optional

POST /imports/runs/undo Undo an import’s transactions, and the later changes built on them if asked imports.runs.undo

Body (JSON)

  • bookId string required
  • runId string required
  • requestId string (uuid) required
  • withDependants boolean optional

Answer (200, JSON)

  • id string required
  • status "queued" | "running" | "done" | "failed" required
  • provider string required
  • source "file" | "mail" | "bank" required
  • file object required
  • startedAt string (date-time) | null required
  • finishedAt string (date-time) | null required
  • counts object required
  • warnings array of object required
  • balances object required
  • changeSetId string | null required
  • undoableByYou boolean required
  • undoneAt string (date-time) optional

Refusals

  • 403: AGENT_UNDO_ONLY, PAIR_NOT_WRITABLE
  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, RUN_NOT_DONE, ALREADY_UNDONE, HAS_REFUNDS, REFUND_EXCEEDS_PAYMENT, UNDO_CHAIN_BROKEN, MERGE_NOT_NEWEST, MERGE_STANDS, RUN_SUPERSEDED
  • 422: NOT_REFUNDABLE

EmailIn

POST /emailIn/get Get the book’s email-in address and allowed senders, creating the address once emailIn.get

Body (JSON)

  • bookId string required

Answer (200, JSON)

  • address string (email) required
  • allowedSenders array of string (email) required

Refusals

  • 409: BOOK_ARCHIVED
  • 503: EMAIL_IN_UNAVAILABLE

POST /emailIn/rotate Replace the book’s email-in address; the old one stops accepting mail at once emailIn.rotate

Body (JSON)

  • bookId string required
  • address string (email) required
  • requestId string (uuid) required

Answer (200, JSON)

  • address string (email) required
  • allowedSenders array of string (email) required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, ADDRESS_CHANGED
  • 503: EMAIL_IN_UNAVAILABLE

POST /emailIn/allow Allow a sender whose forwarded statements import into the book emailIn.allow

Body (JSON)

  • bookId string required
  • sender string (email) required
  • requestId string (uuid) required

Answer (200, JSON)

  • address string (email) required
  • allowedSenders array of string (email) required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, SENDERS_FULL
  • 503: EMAIL_IN_UNAVAILABLE

GET /emailIn/history List the book’s mail of the last 30 days and what came of each emailIn.history

Parameters

  • bookId string query, required

Answer (200, JSON)

  • mails array of object required

Refusals

  • 503: EMAIL_IN_UNAVAILABLE

POST /emailIn/disallow Stop importing a sender’s mail; it is ignored from now emailIn.disallow

Body (JSON)

  • bookId string required
  • sender string (email) required
  • requestId string (uuid) required

Answer (200, JSON)

  • address string (email) required
  • allowedSenders array of string (email) required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED
  • 503: EMAIL_IN_UNAVAILABLE

Inbox

GET /inbox/summary Count a book’s inbox items to check and what changed since your last visit inbox.summary

Parameters

  • bookId string query, required
  • bankLinks boolean query, optional
  • quiet boolean query, optional
  • refunds boolean query, optional

Answer (200, JSON)

  • toCheck integer required
  • lastVisitAt string (date-time) | null required
  • sinceLastVisit object required
  • olderThan60 integer required

GET /inbox/list List the open items of a book’s inbox, a page at a time, biggest first inbox.list

Parameters

  • bookId string query, required
  • bankLinks boolean query, optional
  • quiet boolean query, optional
  • refunds boolean query, optional
  • guesses object query, optional
  • order "impact" | "least-sure" query, optional
  • runId string query, optional
  • cursor string query, optional
  • limit integer query, required
  • visit boolean query, optional

Answer (200, JSON)

  • items array of object required
  • nextCursor string | null required

POST /inbox/resolve Resolve an inbox item, and if asked every open item like it, as one change inbox.resolve

Body (JSON)

  • bookId string required
  • itemId string required
  • action object required
  • applyToSimilar boolean required
  • requestId string (uuid) required
  • remember boolean optional
  • previewToken string optional

Answer (200, JSON)

  • applied integer required
  • changeSetId string required
  • learned object optional

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, ACTION_NOT_FOR_KIND, CATEGORY_ARCHIVED, SIMILAR_CHANGED, POCKET_CLOSED, INVALID_PARENT, CATEGORY_NAME_TAKEN

POST /inbox/resolveDryRun Check what resolving an inbox item would do, changing nothing inbox.resolveDryRun

Body (JSON)

  • bookId string required
  • itemId string required
  • action object required
  • applyToSimilar boolean required
  • remember boolean optional
  • previewToken string optional

Answer (200, JSON)

  • applied integer required
  • balanceChecks array of object required
  • learned object optional

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, ACTION_NOT_FOR_KIND, CATEGORY_ARCHIVED, SIMILAR_CHANGED, POCKET_CLOSED, INVALID_PARENT, CATEGORY_NAME_TAKEN

GET /inbox/similar Preview which open inbox items are like this one inbox.similar

Parameters

  • bookId string query, required
  • itemId string query, required
  • categoryId string query, optional
  • newCategoryType "income" | "expense" query, optional
  • withContact boolean query, optional

Answer (200, JSON)

  • count integer required
  • sample array of object required
  • previewToken string required
  • rule object required
  • options array of object required
  • future object | null required

GET /inbox/similarRows List every payment of a previewed similar set, newest first, a page at a time inbox.similarRows

Parameters

  • bookId string query, required
  • itemId string query, required
  • categoryId string query, optional
  • newCategoryType "income" | "expense" query, optional
  • withContact boolean query, optional
  • previewToken string query, required
  • cursor string query, optional
  • limit integer query, required

Answer (200, JSON)

  • rows array of object required
  • nextCursor string | null required

Refusals

  • 409: SIMILAR_CHANGED

GET /inbox/guesses Preview the open AI guesses in a range that confirming them all would confirm inbox.guesses

Parameters

  • bookId string query, required
  • guesses object query, required

Answer (200, JSON)

  • count integer required
  • previewToken string required

POST /inbox/confirmGuesses Confirm every previewed AI guess in a range with its category, as one change inbox.confirmGuesses

Body (JSON)

  • bookId string required
  • guesses object required
  • previewToken string required
  • requestId string (uuid) required

Answer (200, JSON)

  • changeSetId string | null required
  • confirmed integer required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, GUESSES_CHANGED

GET /inbox/oldItems Preview the open inbox items older than a number of days, to mark reviewed inbox.oldItems

Parameters

  • bookId string query, required
  • olderThanDays integer query, required

Answer (200, JSON)

  • count integer required
  • firstIds array of string required
  • previewToken string required

POST /inbox/markReviewed Mark open inbox items older than a number of days as reviewed, as they are inbox.markReviewed

Body (JSON)

  • bookId string required
  • olderThanDays integer required
  • requestId string (uuid) required
  • previewToken string optional

Answer (200, JSON)

  • changeSetId string | null required
  • marked integer required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, SWEEP_CHANGED

Rules

GET /rules/list List the book’s rules in priority order rules.list

Parameters

  • bookId string query, required

Answer (200, JSON list of objects)

  • id string required
  • name string required
  • position integer required
  • enabled boolean required
  • match "all" | "any" required
  • conditions array of object required
  • actions array of object required
  • origin "user" | "similar" | "seed" required
  • matches object required
  • createdAt string (date-time) required
  • updatedAt string (date-time) required

POST /rules/create Create a rule, and label matching past transactions unless told not to rules.create

Body (JSON)

  • bookId string required
  • name string required
  • conditions array of object required
  • actions array of object required
  • requestId string (uuid) required
  • match "all" | "any" optional
  • enabled boolean optional
  • position integer optional
  • applyToPast boolean optional
  • previewToken string optional
  • fromLearned object optional

Answer (200, JSON)

  • relabelling boolean required
  • changeSetId string required
  • labelled integer required
  • rule object required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, TARGET_ARCHIVED, RULE_LIMIT, RULE_EXISTS, RULE_PREVIEW_CHANGED
  • 422: AMOUNT_TOO_PRECISE

POST /rules/update Change a rule, and label the past again by it unless told not to rules.update

Body (JSON)

  • bookId string required
  • ruleId string required
  • expectedUpdatedAt string (date-time) required
  • requestId string (uuid) required
  • name string optional
  • match "all" | "any" optional
  • conditions array of object optional
  • actions array of object optional
  • enabled boolean optional
  • applyToPast boolean optional
  • previewToken string optional

Answer (200, JSON)

  • relabelling boolean required
  • changeSetId string | null required
  • rule object required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, TARGET_ARCHIVED, RULE_CHANGED, RULE_LIMIT, RULE_PREVIEW_CHANGED
  • 422: AMOUNT_TOO_PRECISE

POST /rules/delete Delete a rule; its transactions keep their category or are labelled again rules.delete

Body (JSON)

  • bookId string required
  • ruleId string required
  • expectedUpdatedAt string (date-time) required
  • bankNames boolean required
  • requestId string (uuid) required
  • relabel boolean optional

Answer (200, JSON)

  • relabelling boolean required
  • changeSetId string required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, RULE_CHANGED

POST /rules/reorder Set the order in which the book’s rules apply rules.reorder

Body (JSON)

  • bookId string required
  • ids array of string required
  • requestId string (uuid) required

Answer (200, JSON)

  • relabelling boolean required
  • changeSetId string | null required
  • rules array of object required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, ORDER_MISMATCH

GET /rules/planFromPayment Preview the rule a payment’s new payee or transfer would make, writing nothing rules.planFromPayment

Parameters

  • bookId string query, required
  • transactionId string query, required
  • change object query, required
  • condition object query, optional

Refusals

  • 409: TARGET_ARCHIVED

POST /rules/preview Preview what a draft rule would change, without changing anything rules.preview

Body (JSON)

  • bookId string required
  • conditions array of object required
  • actions array of object required
  • ruleId string optional
  • position integer optional
  • match "all" | "any" optional
  • enabled boolean optional
  • fromLearned object optional
  • limit integer optional

Answer (200, JSON)

  • matched integer required
  • changes integer required
  • kept object required
  • sample array of object required
  • previewToken string required
  • takesOverLearned boolean required
  • clashes array of object required

Recurring

GET /recurring/summary Total the book’s monthly recurring payments and what changed this month recurring.summary

Parameters

  • bookId string query, required

Answer (200, JSON)

  • baseCurrency string required
  • monthly string required
  • yearly string required
  • count integer required
  • suggested object required
  • unconverted array of object required
  • changes array of object required

GET /recurring/payments List a recurring series’ payments, newest first, a page at a time recurring.payments

Parameters

  • bookId string query, required
  • seriesId string query, required
  • cursor string query, optional
  • limit integer query, optional

Answer (200, JSON)

  • items array of object required
  • nextCursor string | null required

GET /recurring/list List the book’s recurring series by next expected date recurring.list

Parameters

  • bookId string query, required
  • show "current" | "dismissed" | "all" query, optional

Answer (200, JSON list of objects)

  • id string required
  • merchantKey string required
  • name string required
  • status "suggested" | "confirmed" | "dismissed" required
  • state "active" | "changed" | "missed" | "stopped" required
  • direction "in" | "out" required
  • cadence "weekly" | "biweekly" | "monthly" | "quarterly" | "yearly" required
  • pocketId string required
  • categoryId string | null required
  • asset string required
  • usualAmount string required
  • expected object | null required
  • last array of object required
  • priceChange object | null required
  • missed array of string (date) required
  • occurrences integer required
  • firstDate string (date) required
  • lastDate string (date) required
  • confidence number required
  • yearlyCost string required
  • monthlyCost string required
  • monthlyBase string | null required
  • yearlyBase string | null required
  • stillPaying boolean required
  • updatedAt string (date-time) required

POST /recurring/confirm Confirm a suggested or dismissed recurring series recurring.confirm

Body (JSON)

  • bookId string required
  • seriesId string required
  • expectedStatus "suggested" | "confirmed" | "dismissed" required
  • requestId string (uuid) required

Answer (200, JSON)

  • id string required
  • merchantKey string required
  • name string required
  • status "suggested" | "confirmed" | "dismissed" required
  • state "active" | "changed" | "missed" | "stopped" required
  • direction "in" | "out" required
  • cadence "weekly" | "biweekly" | "monthly" | "quarterly" | "yearly" required
  • pocketId string required
  • categoryId string | null required
  • asset string required
  • usualAmount string required
  • expected object | null required
  • last array of object required
  • priceChange object | null required
  • missed array of string (date) required
  • occurrences integer required
  • firstDate string (date) required
  • lastDate string (date) required
  • confidence number required
  • yearlyCost string required
  • monthlyCost string required
  • monthlyBase string | null required
  • yearlyBase string | null required
  • stillPaying boolean required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, SERIES_CHANGED

POST /recurring/dismiss Dismiss a recurring series and stop suggesting it again recurring.dismiss

Body (JSON)

  • bookId string required
  • seriesId string required
  • expectedStatus "suggested" | "confirmed" | "dismissed" required
  • requestId string (uuid) required

Answer (200, JSON)

  • id string required
  • merchantKey string required
  • name string required
  • status "suggested" | "confirmed" | "dismissed" required
  • state "active" | "changed" | "missed" | "stopped" required
  • direction "in" | "out" required
  • cadence "weekly" | "biweekly" | "monthly" | "quarterly" | "yearly" required
  • pocketId string required
  • categoryId string | null required
  • asset string required
  • usualAmount string required
  • expected object | null required
  • last array of object required
  • priceChange object | null required
  • missed array of string (date) required
  • occurrences integer required
  • firstDate string (date) required
  • lastDate string (date) required
  • confidence number required
  • yearlyCost string required
  • monthlyCost string required
  • monthlyBase string | null required
  • yearlyBase string | null required
  • stillPaying boolean required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, SERIES_CHANGED

POST /recurring/restore Undo a recurring series’ dismissal recurring.restore

Body (JSON)

  • bookId string required
  • seriesId string required
  • requestId string (uuid) required

Answer (200, JSON)

  • id string required
  • merchantKey string required
  • name string required
  • status "suggested" | "confirmed" | "dismissed" required
  • state "active" | "changed" | "missed" | "stopped" required
  • direction "in" | "out" required
  • cadence "weekly" | "biweekly" | "monthly" | "quarterly" | "yearly" required
  • pocketId string required
  • categoryId string | null required
  • asset string required
  • usualAmount string required
  • expected object | null required
  • last array of object required
  • priceChange object | null required
  • missed array of string (date) required
  • occurrences integer required
  • firstDate string (date) required
  • lastDate string (date) required
  • confidence number required
  • yearlyCost string required
  • monthlyCost string required
  • monthlyBase string | null required
  • yearlyBase string | null required
  • stillPaying boolean required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED

POST /recurring/update Edit, stop or resume a recurring series, confirming it recurring.update

Body (JSON)

  • bookId string required
  • seriesId string required
  • expectedUpdatedAt string (date-time) required
  • requestId string (uuid) required
  • name string optional
  • cadence "weekly" | "biweekly" | "monthly" | "quarterly" | "yearly" optional
  • usualAmount string optional
  • categoryId string | null optional
  • stopped boolean optional

Answer (200, JSON)

  • id string required
  • merchantKey string required
  • name string required
  • status "suggested" | "confirmed" | "dismissed" required
  • state "active" | "changed" | "missed" | "stopped" required
  • direction "in" | "out" required
  • cadence "weekly" | "biweekly" | "monthly" | "quarterly" | "yearly" required
  • pocketId string required
  • categoryId string | null required
  • asset string required
  • usualAmount string required
  • expected object | null required
  • last array of object required
  • priceChange object | null required
  • missed array of string (date) required
  • occurrences integer required
  • firstDate string (date) required
  • lastDate string (date) required
  • confidence number required
  • yearlyCost string required
  • monthlyCost string required
  • monthlyBase string | null required
  • yearlyBase string | null required
  • stillPaying boolean required
  • updatedAt string (date-time) required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, SERIES_CHANGED, TARGET_ARCHIVED
  • 422: AMOUNT_TOO_PRECISE

Labelling

GET /labelling/learned/list List what memory learned per merchant, most used first, a page at a time labelling.learned.list

Parameters

  • bookId string query, required
  • q string query, optional
  • key string query, optional
  • direction "in" | "out" query, optional
  • cursor string query, optional
  • limit integer query, optional

Answer (200, JSON)

  • entries array of object required
  • next string | null required

GET /labelling/learned/taught Say what one change’s category choices taught memory, as it labels with now labelling.learned.taught

Parameters

  • bookId string query, required
  • changeSetId string query, required

Answer (200, JSON)

  • entries array of object required

POST /labelling/learned/forget Forget what memory learned for a merchant, keeping or re-labelling its payments labelling.learned.forget

Body (JSON)

  • bookId string required
  • key string required
  • direction "in" | "out" required
  • requestId string (uuid) required
  • relabel boolean optional

Answer (200, JSON)

  • changeSetId string required
  • kept integer required
  • relabelled integer required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, LEARNED_GONE

GET /labelling/automation Get the share of recent transactions labelled that no person changed labelling.automation

Parameters

  • bookId string query, required
  • weeks number | string query, optional

Answer (200, JSON)

  • rate number | null required
  • labelled integer required
  • total integer required
  • firstMonthRate number | null required
  • rulesLearnedThisWeek integer required
  • byHow object required

GET /labelling/explain Explain why a transaction has its category labelling.explain

Parameters

  • bookId string query, required
  • transactionId string query, required

Answer (200, JSON)

  • transactionId string required
  • categoryId string | null required
  • how "rule" | "memory" | "ai" | "manual" | "import" | "none" required
  • confidence number required
  • reason object required
  • alternatives array of object required
  • needsReview boolean required
  • labelledAt string (date-time) required
  • transferSkipped object optional
  • cashWithdrawal object optional
  • likelyRight integer optional
  • sources object optional

GET /labelling/similar Preview what applying a category to all similar transactions would change labelling.similar

Parameters

  • bookId string query, required
  • transactionId string query, required
  • categoryId string query, required

Answer (200, JSON)

  • count integer required
  • sample array of object required
  • learn object required
  • previewToken string required
  • options array of object required
  • match string required
  • direction "in" | "out" required

Refusals

  • 409: TARGET_ARCHIVED, NOT_SINGLE_CATEGORY

POST /labelling/applyToSimilar Categorise a transaction and all similar ones, and learn it for future ones labelling.applyToSimilar

Body (JSON)

  • bookId string required
  • transactionId string required
  • categoryId string required
  • previewToken string required
  • requestId string (uuid) required
  • past boolean optional

Answer (200, JSON)

  • changeSetId string required
  • applied integer required
  • learned any required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, TARGET_ARCHIVED, NOT_SINGLE_CATEGORY, RULE_LIMIT, SIMILAR_CHANGED

GET /labelling/settings/get Get whether AI labelling is on for the book, and what it did today labelling.settings.get

Parameters

  • bookId string query, required

Answer (200, JSON)

  • aiLabelling object required

GET /labelling/settings/accuracy Count how the book’s AI guesses fared over the last 30 days labelling.settings.accuracy

Parameters

  • bookId string query, required

Answer (200, JSON)

  • since string (date-time) required
  • rows array of object required

POST /labelling/settings/update Turn AI labelling on (agreeing to the disclosure) or off for the book labelling.settings.update

Body (JSON)

  • bookId string required
  • aiLabelling boolean required
  • requestId string (uuid) required
  • disclosureVersion string optional

Answer (200, JSON)

  • aiLabelling object required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, DISCLOSURE_OUTDATED, AI_UNAVAILABLE

GET /labelling/merchants/list List a book’s merchants, most payments first, searchable, a page at a time labelling.merchants.list

Parameters

  • bookId string query, required
  • q string query, optional
  • cursor string query, optional
  • limit integer query, optional

Answer (200, JSON)

  • merchants array of object required
  • nextCursor string | null required

GET /labelling/merchants/get Get a merchant’s branches and the merchants that look like it labelling.merchants.get

Parameters

  • bookId string query, required
  • key string query, required

Answer (200, JSON)

  • branches array of object required
  • lookAlikes array of object required

GET /labelling/merchants/alike List groups of a book’s merchants that look like one shop labelling.merchants.alike

Parameters

  • bookId string query, required

Answer (200, JSON)

  • groups array of object required

POST /labelling/merchants/combine Combine merchants that are one place into one merchant labelling.merchants.combine

Body (JSON)

  • bookId string required
  • key string required
  • others array of string required
  • requestId string (uuid) required
  • rename object optional

Answer (200, JSON)

  • changeSetId string required
  • key string required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, MERCHANT_GONE, MERCHANT_CHANGED

POST /labelling/merchants/rename Give a merchant its own name labelling.merchants.rename

Body (JSON)

  • bookId string required
  • key string required
  • from string required
  • name string required
  • requestId string (uuid) required

Answer (200, JSON)

  • changeSetId string required
  • key string required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, MERCHANT_GONE, MERCHANT_CHANGED

POST /labelling/merchants/split Split one branch off a combined merchant labelling.merchants.split

Body (JSON)

  • bookId string required
  • key string required
  • branch string required
  • requestId string (uuid) required

Answer (200, JSON)

  • changeSetId string required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, MERCHANT_KEY_BRANCH, MERCHANT_CHANGED

POST /labelling/merchants/dismiss Stop suggesting a merchant as a look-alike of another labelling.merchants.dismiss

Body (JSON)

  • bookId string required
  • key string required
  • others array of string required
  • requestId string (uuid) required

Answer (200, JSON)

  • changeSetId string required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED

GET /labelling/contactLinks/list List the payees remembered with a person, by key labelling.contactLinks.list

Parameters

  • bookId string query, required

Answer (200, JSON list of objects)

  • key string required
  • contactId string required
  • linkedAt string (date-time) required

POST /labelling/contactLinks/remove Stop remembering a payee with a person labelling.contactLinks.remove

Body (JSON)

  • bookId string required
  • key string required
  • contactId string required
  • requestId string (uuid) required

Answer (200, JSON)

  • removed integer required

Refusals

  • 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, CONTACT_LINK_CHANGED

Checkin

GET /checkin/preferences/get Get the caller’s own check-in and notification preferences checkin.preferences.get

Parameters

  • bookId string query, required

Answer (200, JSON)

  • day integer required
  • time string required
  • timeZone string required
  • quietFrom string required
  • quietTo string required
  • notify object required
  • digest boolean required
  • amountsOnLockScreen boolean required
  • seenNotes array of string required
  • saved boolean required

POST /checkin/preferences/update Change the caller’s own check-in and notification preferences checkin.preferences.update

Body (JSON)

  • bookId string required
  • day integer optional
  • time string optional
  • timeZone string optional
  • quietFrom string optional
  • quietTo string optional
  • notify object optional
  • digest boolean optional
  • amountsOnLockScreen boolean optional

Answer (200, JSON)

  • day integer required
  • time string required
  • timeZone string required
  • quietFrom string required
  • quietTo string required
  • notify object required
  • digest boolean required
  • amountsOnLockScreen boolean required
  • seenNotes array of string required
  • saved boolean required

POST /checkin/state Get the caller’s check-in as it stands now, recording the visit checkin.state

Body (JSON)

  • bookId string required
  • timeZone string optional

Answer (200, JSON)

  • week string required
  • day string (date) required
  • today string (date) required
  • completed boolean required
  • cairnShown boolean required
  • lastVisitAt string (date-time) | null required
  • daysAway integer required
  • timeZone string required

POST /checkin/complete Mark the week’s check-in done checkin.complete

Body (JSON)

  • bookId string required
  • week string required
  • requestId string (uuid) required

Answer (200, JSON)

  • week string required
  • day string (date) required
  • today string (date) required
  • completed boolean required
  • cairnShown boolean required
  • lastVisitAt string (date-time) | null required
  • daysAway integer required
  • timeZone string required

Refusals

  • 409: REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED

POST /checkin/markCairnShown Record that the week’s cairn has settled, so it never settles again checkin.markCairnShown

Body (JSON)

  • bookId string required
  • week string required

Answer (200, JSON)

  • week string required
  • day string (date) required
  • today string (date) required
  • completed boolean required
  • cairnShown boolean required
  • lastVisitAt string (date-time) | null required
  • daysAway integer required
  • timeZone string required

GET /checkin/insight Get the week’s one insight, if something stands out checkin.insight

Parameters

  • bookId string query, required
  • week string query, required

POST /checkin/insightFeedback Hide an insight for 90 days as not useful, or dismiss it for this check-in checkin.insightFeedback

Body (JSON)

  • bookId string required
  • week string required
  • key string required
  • verdict "not-useful" | "dismissed" required

Answer (200, JSON)

  • ok true required

POST /checkin/noteSeen Record that the caller saw a first-time note, so it never shows again checkin.noteSeen

Body (JSON)

  • bookId string required
  • key string required

Answer (200, JSON)

  • seenNotes array of string required

GET /checkin/story Tell a week or a month in one sentence, every figure linked to its transactions checkin.story

Parameters

  • bookId string query, required
  • week string query, optional
  • month string query, optional

Answer (200, JSON)

  • parts array of string | object required
  • enoughHistory boolean required

GET /checkin/toCount List the by-hand pockets whose balance the week’s check-in asks to count again checkin.toCount

Parameters

  • bookId string query, required
  • week string query, required

Answer (200, JSON)

  • pockets array of object required

POST /checkin/countLater Stop asking to count a by-hand pocket until next week’s check-in checkin.countLater

Body (JSON)

  • bookId string required
  • week string required
  • pocketId string required

Answer (200, JSON)

  • ok true required

GET /checkin/month Get whether the caller closed a month checkin.month

Parameters

  • bookId string query, required
  • month string query, required

Answer (200, JSON)

  • month string required
  • closedAt string (date-time) | null required

POST /checkin/closeMonth Close a month that is over, once checkin.closeMonth

Body (JSON)

  • bookId string required
  • month string required
  • requestId string (uuid) required

Answer (200, JSON)

  • month string required
  • closedAt string (date-time) | null required

Refusals

  • 409: REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, MONTH_NOT_OVER

Exports

POST /exports/start Start an export of every book you can read, or get the one under way exports.start

Answer (200, JSON)

  • id string required
  • status "queued" | "building" | "ready" | "failed" | "expired" required
  • books integer required
  • parts array of object required
  • failure "TOO_LARGE" | "FAILED" | null required
  • createdAt string (date-time) required
  • readyAt string (date-time) | null required
  • expiresAt string (date-time) | null required

Refusals

  • 503: EXPORTS_UNAVAILABLE

GET /exports/latest Get your newest export and where it is exports.latest

GET /exports/download Download one zip part of your export, decrypted exports.download

Parameters

  • exportId string query, required
  • part integer query, required

Refusals

  • 409: EXPORT_NOT_READY
  • 503: EXPORTS_UNAVAILABLE

Account

GET /account/deletion/get Get whether your account’s deletion is scheduled, and for when account.deletion.get

POST /account/deletion/schedule Schedule your account’s deletion in 30 days and end every agent’s access account.deletion.schedule

Body (JSON)

  • requestId string (uuid) required

Refusals

  • 403: SESSION_NOT_FRESH
  • 409: REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED

POST /account/deletion/cancel Keep your account: call off its scheduled deletion account.deletion.cancel

Body (JSON)

  • requestId string (uuid) required

Refusals

  • 409: DELETION_STARTED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED

POST /account/profile/rename Change your name account.profile.rename

Body (JSON)

  • name string required
  • requestId string (uuid) required

Answer (200, JSON)

  • name string required

Refusals

  • 409: REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED

POST /account/email/confirm Confirm a new email with the link sent to it account.email.confirm

Body (JSON)

  • token string required
  • requestId string (uuid) required

Answer (200, JSON)

  • email string required

Refusals

  • 409: EMAIL_IN_USE, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED
  • 410: LINK_EXPIRED

POST /account/email/change Ask to change your email: a link to confirm it goes to the new address account.email.change

Body (JSON)

  • email string (email) required
  • requestId string (uuid) required

Answer (200, JSON)

  • pendingEmail string required

Refusals

  • 403: SESSION_NOT_FRESH
  • 409: EMAIL_UNCHANGED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED

Billing

GET /billing/status Get your household’s plan, its subscription and the prices billing.status

Answer (200, JSON)

  • plan "free" | "plus" | "pro" | "owner" required
  • subscription object | null required
  • appAccountToken string (uuid) required
  • canManage boolean required
  • offers array of object | null required

POST /billing/checkout Start a checkout for a plan billing.checkout

Body (JSON)

  • priceId string required

Answer (200, JSON)

  • transactionId string required
  • clientToken string required
  • environment "sandbox" | "production" required

Refusals

  • 409: SUBSCRIBED, PRICE_UNKNOWN
  • 503: BILLING_UNAVAILABLE

POST /billing/portal Open the page to manage your subscription: card, invoices, cancel billing.portal

Answer (200, JSON)

  • url string (uri) required

Refusals

  • 409: NO_SUBSCRIPTION
  • 503: BILLING_UNAVAILABLE

POST /billing/apple Record a plan bought in the App Store billing.apple

Body (JSON)

  • signedTransaction string required

Answer (200, JSON)

  • plan "free" | "plus" | "pro" | "owner" required
  • subscription object | null required
  • appAccountToken string (uuid) required
  • canManage boolean required
  • offers array of object | null required

Refusals

  • 409: OTHER_HOUSEHOLD
  • 422: TRANSACTION_INVALID
  • 503: BILLING_UNAVAILABLE

See where it all is

Every account, card, wallet and cash pile, in every currency, in one place.

Open the web app