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
GETwith query parameters, writes arePOSTwith 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
codenames 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
/system/health Check the API is up, its build, the worker’s last heartbeat and attachments system.health Answer (200, JSON)
-
oktrue required -
buildstring required -
heartbeatAtstring (date-time) | null required -
attachments"ready" | "unavailable" required -
maintenanceboolean required -
edgeAttestedboolean optional
Access
GET /access/me Get the signed-in person, their household and the books they can open access.me
/access/me Get the signed-in person, their household and the books they can open access.me Answer (200, JSON)
-
userobject required -
tenantobject required -
booksarray of object required
Books
GET /books/list List the caller’s books, archived ones too, oldest first books.list
/books/list List the caller’s books, archived ones too, oldest first books.list Answer (200, JSON list of objects)
-
idstring required -
namestring required -
baseCurrencystring required -
role"owner" | "editor" | "viewer" required -
memberCountinteger required -
createdAtstring (date-time) required -
archivedAtstring (date-time) | null required -
iconobject required -
linksBanksboolean required
POST /books/create Start a new book; the caller becomes its owner books.create
/books/create Start a new book; the caller becomes its owner books.create Body (JSON)
-
namestring required -
baseCurrencystring required
Answer (200, JSON)
-
idstring required -
namestring required -
baseCurrencystring required -
role"owner" | "editor" | "viewer" required -
memberCountinteger required -
createdAtstring (date-time) required -
archivedAtstring (date-time) | null required -
iconobject required -
linksBanksboolean required
Refusals
- 409: PLAN_LIMIT
POST /books/rename Rename a book, unless someone else renamed it since books.rename
/books/rename Rename a book, unless someone else renamed it since books.rename Body (JSON)
-
bookIdstring required -
namestring required -
fromNamestring required
Answer (200, JSON)
-
idstring required -
namestring required -
baseCurrencystring required -
role"owner" | "editor" | "viewer" required -
memberCountinteger required -
createdAtstring (date-time) required -
archivedAtstring (date-time) | null required -
iconobject required -
linksBanksboolean required
Refusals
- 409: BOOK_ARCHIVED, BOOK_CHANGED
POST /books/archive Archive a book: still readable, no longer changeable books.archive
/books/archive Archive a book: still readable, no longer changeable books.archive Body (JSON)
-
bookIdstring required
Answer (200, JSON)
-
idstring required -
namestring required -
baseCurrencystring required -
role"owner" | "editor" | "viewer" required -
memberCountinteger required -
createdAtstring (date-time) required -
archivedAtstring (date-time) | null required -
iconobject required -
linksBanksboolean required
POST /books/unarchive Bring an archived book back, open to changes again books.unarchive
/books/unarchive Bring an archived book back, open to changes again books.unarchive Body (JSON)
-
bookIdstring required
Answer (200, JSON)
-
idstring required -
namestring required -
baseCurrencystring required -
role"owner" | "editor" | "viewer" required -
memberCountinteger required -
createdAtstring (date-time) required -
archivedAtstring (date-time) | null required -
iconobject required -
linksBanksboolean required
POST /books/changeCurrency Change a book’s base currency and work out every base amount again books.changeCurrency
/books/changeCurrency Change a book’s base currency and work out every base amount again books.changeCurrency Body (JSON)
-
bookIdstring required -
baseCurrencystring required -
fromBaseCurrencystring required
Answer (200, JSON)
-
idstring required -
namestring required -
baseCurrencystring required -
role"owner" | "editor" | "viewer" required -
memberCountinteger required -
createdAtstring (date-time) required -
archivedAtstring (date-time) | null required -
iconobject required -
linksBanksboolean 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
/books/setIcon Set a book’s icon: its letter, a colour with a glyph, or a picture books.setIcon Body (JSON)
-
bookIdstring required -
iconobject required
Answer (200, JSON)
-
idstring required -
namestring required -
baseCurrencystring required -
role"owner" | "editor" | "viewer" required -
memberCountinteger required -
createdAtstring (date-time) required -
archivedAtstring (date-time) | null required -
iconobject required -
linksBanksboolean 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
/books/members/list List a book’s members and, for those who manage them, open invitations books.members.list Parameters
-
bookIdstring query, required
Answer (200, JSON)
-
membersarray of object required -
invitesarray 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
/books/members/invite Email someone a link to join a book in a role, open for 7 days books.members.invite Body (JSON)
-
bookIdstring required -
emailstring (email) required -
role"owner" | "editor" | "viewer" required
Answer (200, JSON)
-
idstring required -
emailstring required -
role"owner" | "editor" | "viewer" required -
expiresAtstring (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
/books/members/cancelInvite Cancel an open invitation so its link stops working books.members.cancelInvite Body (JSON)
-
bookIdstring required -
inviteIdstring required
Answer (200, JSON)
-
cancelledboolean required
POST /books/members/remove Remove another member from a book at once books.members.remove
/books/members/remove Remove another member from a book at once books.members.remove Body (JSON)
-
bookIdstring required -
userIdstring required
Answer (200, JSON)
-
removedboolean required
POST /books/members/leave Leave a book, handing it on if you are its only owner books.members.leave
/books/members/leave Leave a book, handing it on if you are its only owner books.members.leave Body (JSON)
-
bookIdstring required
Answer (200, JSON)
-
leftboolean required
Refusals
- 409: LAST_MEMBER
POST /books/join Accept an invitation and join its book books.join
/books/join Accept an invitation and join its book books.join Body (JSON)
-
tokenstring required
Answer (200, JSON)
-
idstring required -
namestring required -
baseCurrencystring required -
role"owner" | "editor" | "viewer" required -
memberCountinteger required -
createdAtstring (date-time) required -
archivedAtstring (date-time) | null required -
iconobject required -
linksBanksboolean 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
/connections/request Show who asks to connect an agent, for what, and the books it could see connections.request Parameters
-
signedRequeststring 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
/connections/decide Allow or refuse an agent’s request to connect, with its books and scopes connections.decide Body (JSON)
-
signedRequeststring required -
allowboolean required -
bookIdsarray of string required -
scopesarray of "finance:read" | "finance:write" required
Answer (200, JSON)
-
redirectTostring 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
/connections/list List your live agent connections and personal access tokens, newest first connections.list Answer (200, JSON)
-
availableboolean required -
tokensboolean required -
connectionsarray of object required
POST /connections/revoke Disconnect an agent or revoke a personal access token at once connections.revoke
/connections/revoke Disconnect an agent or revoke a personal access token at once connections.revoke Body (JSON)
-
idstring required
POST /connections/tokens/create Create a personal access token for chosen books, shown only once connections.tokens.create
/connections/tokens/create Create a personal access token for chosen books, shown only once connections.tokens.create Body (JSON)
-
namestring required -
scopesarray of "finance:read" | "finance:write" required -
bookIdsarray of string required -
reauthobject required -
expiresInDaysinteger optional
Answer (200, JSON)
-
idstring required -
tokenstring required -
expiresAtstring (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
/connections/tokens/revoke Revoke one of your personal access tokens at once connections.tokens.revoke Body (JSON)
-
idstring required
Ledger
GET /ledger/assets/list List a book’s currencies, coins and securities with their decimal places ledger.assets.list
/ledger/assets/list List a book’s currencies, coins and securities with their decimal places ledger.assets.list Parameters
-
bookIdstring query, required
Answer (200, JSON list of objects)
-
codestring required -
kind"fiat" | "crypto" | "security" required -
precisioninteger required -
namestring | null required
POST /ledger/assets/create Add a currency, coin or security to a book; adding it again changes nothing ledger.assets.create
/ledger/assets/create Add a currency, coin or security to a book; adding it again changes nothing ledger.assets.create Body (JSON)
-
bookIdstring required -
codestring required -
kind"fiat" | "crypto" | "security" optional -
precisioninteger optional -
namestring optional
Answer (200, JSON)
-
codestring required -
kind"fiat" | "crypto" | "security" required -
precisioninteger required -
namestring | 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
/ledger/persons/list List the people of a book who own pockets, archived ones too, in the book’s order ledger.persons.list Parameters
-
bookIdstring query, required
Answer (200, JSON list of objects)
-
idstring required -
namestring required -
archivedAtstring (date-time) | null required -
updatedAtstring (date-time) required
POST /ledger/persons/create Add a person who owns pockets to a book ledger.persons.create
/ledger/persons/create Add a person who owns pockets to a book ledger.persons.create Body (JSON)
-
bookIdstring required -
namestring required -
idstring (uuid) optional -
requestIdstring (uuid) optional
Answer (200, JSON)
-
idstring required -
namestring required -
archivedAtstring (date-time) | null required -
updatedAtstring (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
/ledger/persons/rename Rename a person of a book ledger.persons.rename Body (JSON)
-
bookIdstring required -
personIdstring required -
expectedUpdatedAtstring (date-time) required -
namestring required
Answer (200, JSON)
-
idstring required -
namestring required -
archivedAtstring (date-time) | null required -
updatedAtstring (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
/ledger/persons/archive Archive a person, keeping them and their pockets but hiding them from pickers ledger.persons.archive Body (JSON)
-
bookIdstring required -
personIdstring required -
expectedUpdatedAtstring (date-time) required
Answer (200, JSON)
-
idstring required -
namestring required -
archivedAtstring (date-time) | null required -
updatedAtstring (date-time) required
Refusals
- 409: BOOK_ARCHIVED, PERSON_CHANGED
POST /ledger/persons/unarchive Bring an archived person back into the pickers ledger.persons.unarchive
/ledger/persons/unarchive Bring an archived person back into the pickers ledger.persons.unarchive Body (JSON)
-
bookIdstring required -
personIdstring required -
expectedUpdatedAtstring (date-time) required
Answer (200, JSON)
-
idstring required -
namestring required -
archivedAtstring (date-time) | null required -
updatedAtstring (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
/ledger/persons/reorder Set the order of a book’s active people ledger.persons.reorder Body (JSON)
-
bookIdstring required -
idsarray of string required
Answer (200, JSON list of objects)
-
idstring required -
namestring required -
archivedAtstring (date-time) | null required -
updatedAtstring (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
/ledger/pockets/list List a book’s pockets, closed ones too, with each one’s balance per asset ledger.pockets.list Parameters
-
bookIdstring query, required
Answer (200, JSON list of objects)
-
idstring required -
namestring required -
type"asset" | "liability" required -
pocketKind"bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" | "contact" | "book" required -
personIdstring | null required -
institutionstring | null required -
externalRefsarray of string required -
status"active" | "closed" required -
enamel"jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" required -
balancesarray of object required -
lastActiveOnstring (date) required -
updatedAtstring (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
/ledger/pockets/create Create a pocket in a book, owned by a person or shared ledger.pockets.create Body (JSON)
-
bookIdstring required -
namestring required -
pocketKind"bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" required -
requestIdstring (uuid) required -
idstring (uuid) optional -
type"asset" | "liability" optional -
personIdstring optional -
institutionstring optional -
externalRefsarray of string optional -
enamel"jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" optional
Answer (200, JSON)
-
idstring required -
namestring required -
type"asset" | "liability" required -
pocketKind"bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" | "contact" | "book" required -
personIdstring | null required -
institutionstring | null required -
externalRefsarray of string required -
status"active" | "closed" required -
enamel"jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" required -
balancesarray of object required -
lastActiveOnstring (date) required -
updatedAtstring (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
/ledger/pockets/update Change a pocket’s name, kind, owner, institution, identifiers or colour ledger.pockets.update Body (JSON)
-
bookIdstring required -
pocketIdstring required -
expectedUpdatedAtstring (date-time) required -
requestIdstring (uuid) optional -
namestring optional -
pocketKind"bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" optional -
personIdstring | null optional -
institutionstring | null optional -
externalRefsarray of string optional -
enamel"jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" optional
Answer (200, JSON)
-
idstring required -
namestring required -
type"asset" | "liability" required -
pocketKind"bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" | "contact" | "book" required -
personIdstring | null required -
institutionstring | null required -
externalRefsarray of string required -
status"active" | "closed" required -
enamel"jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" required -
balancesarray of object required -
lastActiveOnstring (date) required -
updatedAtstring (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
/ledger/pockets/close Close a pocket, only once it holds nothing in any asset ledger.pockets.close Body (JSON)
-
bookIdstring required -
pocketIdstring required -
expectedUpdatedAtstring (date-time) required
Answer (200, JSON)
-
idstring required -
namestring required -
type"asset" | "liability" required -
pocketKind"bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" | "contact" | "book" required -
personIdstring | null required -
institutionstring | null required -
externalRefsarray of string required -
status"active" | "closed" required -
enamel"jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" required -
balancesarray of object required -
lastActiveOnstring (date) required -
updatedAtstring (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
/ledger/pockets/reopen Reopen a closed pocket ledger.pockets.reopen Body (JSON)
-
bookIdstring required -
pocketIdstring required -
expectedUpdatedAtstring (date-time) required
Answer (200, JSON)
-
idstring required -
namestring required -
type"asset" | "liability" required -
pocketKind"bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" | "contact" | "book" required -
personIdstring | null required -
institutionstring | null required -
externalRefsarray of string required -
status"active" | "closed" required -
enamel"jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" required -
balancesarray of object required -
lastActiveOnstring (date) required -
updatedAtstring (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
/ledger/pockets/reorder Set the order of a group’s open pockets in the book’s pocket list ledger.pockets.reorder Body (JSON)
-
bookIdstring required -
group"bank" | "card" | "cash" | "crypto" | "broker" | "loan" | "other" | "contact" required -
idsarray of string required
Answer (200, JSON list of objects)
-
idstring required -
namestring required -
type"asset" | "liability" required -
pocketKind"bank" | "card" | "cash" | "wallet" | "exchange" | "broker" | "loan" | "other" | "contact" | "book" required -
personIdstring | null required -
institutionstring | null required -
externalRefsarray of string required -
status"active" | "closed" required -
enamel"jade" | "cobalt" | "rose" | "marine" | "sky" | "marigold" | "stone" | "tangerine" | "graphite" | "crimson" | "plum" required -
balancesarray of object required -
lastActiveOnstring (date) required -
updatedAtstring (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
/ledger/pockets/merge Merge one pocket into another, as one change that can be undone ledger.pockets.merge Body (JSON)
-
bookIdstring required -
fromPocketIdstring required -
intoPocketIdstring required -
dryRunboolean required -
previewTokenstring optional -
checkBalancesboolean optional -
requestIdstring (uuid) optional
Answer (200, JSON)
-
changeSetIdstring | null required -
previewTokenstring required -
movesobject required -
balanceChecksarray 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
/ledger/categories/list List a book’s categories, archived ones too, each followed by its subcategories ledger.categories.list Parameters
-
bookIdstring query, required
Answer (200, JSON list of objects)
-
idstring required -
namestring required -
type"income" | "expense" required -
parentIdstring | null required -
systemKeystring | null required -
seedKeystring | 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 -
positioninteger required -
budgetobject | null required -
archivedAtstring (date-time) | null required -
updatedAtstring (date-time) required
GET /ledger/categories/usage Count the live transactions in each category, with and without its subcategories ledger.categories.usage
/ledger/categories/usage Count the live transactions in each category, with and without its subcategories ledger.categories.usage Parameters
-
bookIdstring query, required -
categoryIdsarray of string query, optional
Answer (200, JSON list of objects)
-
categoryIdstring required -
transactionCountinteger required -
subtreeTransactionCountinteger required
POST /ledger/categories/create Create a category, at the top level or under a top-level one ledger.categories.create
/ledger/categories/create Create a category, at the top level or under a top-level one ledger.categories.create Body (JSON)
-
bookIdstring required -
namestring required -
type"income" | "expense" required -
requestIdstring (uuid) optional -
idstring (uuid) optional -
parentIdstring | 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)
-
idstring required -
namestring required -
type"income" | "expense" required -
parentIdstring | null required -
systemKeystring | null required -
seedKeystring | 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 -
positioninteger required -
budgetobject | null required -
archivedAtstring (date-time) | null required -
updatedAtstring (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
/ledger/categories/update Change a category’s name, colour or icon ledger.categories.update Body (JSON)
-
bookIdstring required -
categoryIdstring required -
expectedUpdatedAtstring (date-time) required -
requestIdstring (uuid) optional -
namestring 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)
-
idstring required -
namestring required -
type"income" | "expense" required -
parentIdstring | null required -
systemKeystring | null required -
seedKeystring | 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 -
positioninteger required -
budgetobject | null required -
archivedAtstring (date-time) | null required -
updatedAtstring (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
/ledger/categories/move Move a category under another top-level one of its type, or to the top ledger.categories.move Body (JSON)
-
bookIdstring required -
categoryIdstring required -
expectedUpdatedAtstring (date-time) required -
parentIdstring | null required -
requestIdstring (uuid) optional
Answer (200, JSON)
-
idstring required -
namestring required -
type"income" | "expense" required -
parentIdstring | null required -
systemKeystring | null required -
seedKeystring | 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 -
positioninteger required -
budgetobject | null required -
archivedAtstring (date-time) | null required -
updatedAtstring (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
/ledger/categories/setBudget Set or clear an expense category’s monthly budget ledger.categories.setBudget Body (JSON)
-
bookIdstring required -
categoryIdstring required -
expectedUpdatedAtstring (date-time) required -
budgetstring | null required -
requestIdstring (uuid) optional
Answer (200, JSON)
-
idstring required -
namestring required -
type"income" | "expense" required -
parentIdstring | null required -
systemKeystring | null required -
seedKeystring | 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 -
positioninteger required -
budgetobject | null required -
archivedAtstring (date-time) | null required -
updatedAtstring (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
/ledger/categories/archive Archive a category and its subcategories, hiding them from pickers ledger.categories.archive Body (JSON)
-
bookIdstring required -
categoryIdstring required -
expectedUpdatedAtstring (date-time) required
Answer (200, JSON)
-
idstring required -
namestring required -
type"income" | "expense" required -
parentIdstring | null required -
systemKeystring | null required -
seedKeystring | 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 -
positioninteger required -
budgetobject | null required -
archivedAtstring (date-time) | null required -
updatedAtstring (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
/ledger/categories/unarchive Bring an archived category back, with the subcategories archived with it ledger.categories.unarchive Body (JSON)
-
bookIdstring required -
categoryIdstring required -
expectedUpdatedAtstring (date-time) required
Answer (200, JSON)
-
idstring required -
namestring required -
type"income" | "expense" required -
parentIdstring | null required -
systemKeystring | null required -
seedKeystring | 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 -
positioninteger required -
budgetobject | null required -
archivedAtstring (date-time) | null required -
updatedAtstring (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
/ledger/categories/reorder Set the order of a category’s subcategories, or of the top-level categories ledger.categories.reorder Body (JSON)
-
bookIdstring required -
parentIdstring | null required -
idsarray of string required
Answer (200, JSON list of objects)
-
idstring required -
namestring required -
type"income" | "expense" required -
parentIdstring | null required -
systemKeystring | null required -
seedKeystring | 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 -
positioninteger required -
budgetobject | null required -
archivedAtstring (date-time) | null required -
updatedAtstring (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
/ledger/transactions/createDryRun Check what creating a transaction would do to bank balances ledger.transactions.createDryRun Body (JSON)
-
bookIdstring required -
transactionobject required
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/transactions/updateDryRun Check what editing a transaction would do to bank balances ledger.transactions.updateDryRun Body (JSON)
-
bookIdstring required -
transactionIdstring required -
changesobject required
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/transactions/deleteDryRun Check what deleting a transaction would do to bank balances ledger.transactions.deleteDryRun Body (JSON)
-
bookIdstring required -
transactionIdstring required -
ifChangeSetIdstring required
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/transactions/joinTransferDryRun Check what joining two rows as a transfer would do to bank balances ledger.transactions.joinTransferDryRun Body (JSON)
-
bookIdstring required -
transactionIdstring required -
ifChangeSetIdstring required -
withIdstring required -
withIfChangeSetIdstring required
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/transactions/list List a book’s transactions, filtered, newest first, a page at a time ledger.transactions.list Parameters
-
bookIdstring query, required -
fromstring (date) query, optional -
tostring (date) query, optional -
pocketIdsarray of string query, optional -
categoryIdsarray of string query, optional -
personIdsarray of "shared" | string query, optional -
assetsarray of string query, optional -
kindsarray of "expense" | "income" | "transfer" | "exchange" | "adjustment" | "opening" | "book-transfer" | "other" query, optional -
exchangeSidesarray of "invested" | "divested" | "other" query, optional -
spendingtrue query, optional -
searchstring query, optional -
needsReviewboolean query, optional -
tagsarray of string query, optional -
learnedobject query, optional -
merchantobject query, optional -
guessesobject query, optional -
contactAsarray of "loan" | "repayment" query, optional -
movesarray of "loan" | "repayment" | "contribution" query, optional -
cursorstring query, optional -
limitinteger query, optional
Answer (200, JSON)
-
itemsarray of object required -
nextCursorstring | null required
GET /ledger/transactions/get Read one transaction with its canonical input ledger.transactions.get
/ledger/transactions/get Read one transaction with its canonical input ledger.transactions.get Parameters
-
bookIdstring query, required -
transactionIdstring query, required
Answer (200, JSON)
-
idstring required -
bookingDatestring (date) required -
occurredAtstring (date-time) | null required -
payeestring | null required -
descriptionstring | null required -
notesstring | null required -
tagsarray of string required -
status"pending" | "posted" required -
kind"expense" | "income" | "transfer" | "exchange" | "adjustment" | "opening" | "book-transfer" | "other" required -
needsReviewboolean required -
pocketsarray of object required -
categoriesarray of object required -
basestring | null required -
originalobject | null required -
relatedAssetstring | null required -
attachmentCountinteger required -
labelledobject required -
lastChangeSetIdstring required -
pairobject | null required -
contactAs"loan" | "repayment" | null required -
inputobject required -
refundOfstring | null required -
refundedByarray of string required -
refundablearray of object required -
enteredboolean | null required -
fundedobject | null required -
merchantNamestring optional
Refusals
- 404: TRANSACTION_MERGED
POST /ledger/transactions/create Create a payment, income, refund, transfer or exchange ledger.transactions.create
/ledger/transactions/create Create a payment, income, refund, transfer or exchange ledger.transactions.create Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
transactionobject required -
idstring (uuid) optional
Answer (200, JSON)
-
transactionobject required -
changeSetIdstring 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
/ledger/transactions/update Edit a transaction field by field, refused where someone changed it since ledger.transactions.update Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
transactionIdstring required -
changesobject required
Answer (200, JSON)
-
transactionobject required -
changeSetIdstring 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
/ledger/transactions/toTransferDryRun Check what turning a transaction into a transfer would do to bank balances ledger.transactions.toTransferDryRun Body (JSON)
-
bookIdstring required -
transactionIdstring required -
ifChangeSetIdstring required -
toPocketIdstring required -
receivedobject optional -
feeobject optional -
contactAs"loan" | "repayment" optional
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/transactions/toTransfer Turn a payment or income into a transfer, joining a matching other side ledger.transactions.toTransfer Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
transactionIdstring required -
ifChangeSetIdstring required -
toPocketIdstring required -
receivedobject optional -
feeobject optional -
contactAs"loan" | "repayment" optional
Answer (200, JSON)
-
transactionobject required -
changeSetIdstring required -
mergedboolean 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
/ledger/transactions/toPaymentDryRun Check what turning a transfer into a payment would do to bank balances ledger.transactions.toPaymentDryRun Body (JSON)
-
bookIdstring required -
transactionIdstring required -
ifChangeSetIdstring required
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/transactions/toPayment Turn a transfer back into one payment or income in its own pocket ledger.transactions.toPayment Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
transactionIdstring required -
ifChangeSetIdstring required
Answer (200, JSON)
-
transactionobject required -
changeSetIdstring 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
/ledger/transactions/transferPreview Preview what turning a transaction into a transfer would join, writing nothing ledger.transactions.transferPreview Parameters
-
bookIdstring query, required -
transactionIdstring query, required -
otherBookIdstring query, optional -
toPocketIdstring query, required -
receivedobject query, optional -
feeobject query, optional
Answer (200, JSON)
-
joinsobject | null required -
feeCategoryIdstring 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
/ledger/transactions/transferCandidates List the rows a payment or income could be joined with as one transfer ledger.transactions.transferCandidates Parameters
-
bookIdstring query, required -
transactionIdstring query, required -
otherBookIdstring query, optional -
pocketIdstring query, required -
searchstring query, optional
Answer (200, JSON)
-
candidatesarray 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
/ledger/transactions/refundCandidates List the payments a refund could give back, or the refunds of a payment ledger.transactions.refundCandidates Parameters
-
bookIdstring query, required -
transactionIdstring query, required -
searchstring query, optional -
refundsIncomeboolean query, optional
Answer (200, JSON)
-
candidatesarray 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
/ledger/transactions/joinTransfer Join a payment and an income of two pockets as one transfer, by hand ledger.transactions.joinTransfer Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
transactionIdstring required -
ifChangeSetIdstring required -
withIdstring required -
withIfChangeSetIdstring required
Answer (200, JSON)
-
transactionobject required -
changeSetIdstring 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
/ledger/transactions/paymentPreview Preview the payment or income a transfer would become, writing nothing ledger.transactions.paymentPreview Parameters
-
bookIdstring query, required -
transactionIdstring query, required
Answer (200, JSON)
-
outboolean required -
pocketIdstring required -
amountstring required -
assetstring 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
/ledger/transactions/relabel Set the category, payee or tags of up to 100 transactions, or preview it ledger.transactions.relabel Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
idsarray of string required -
ifChangeSetIdsobject required -
categoryobject optional -
payeestring optional -
addTagsarray of string optional -
dryRunboolean optional
Answer (200, JSON)
-
changeSetIdstring | null required -
changedarray of string required -
unchangedarray of string required -
skippedarray of object required -
categoriesobject 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
/ledger/transactions/delete Delete a transaction; undo brings it back with the same id ledger.transactions.delete Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
transactionIdstring required -
ifChangeSetIdstring required
Answer (200, JSON)
-
transactionIdstring required -
changeSetIdstring 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
/ledger/balances/at Read each pocket’s and category’s balance per asset at the end of a day ledger.balances.at Parameters
-
bookIdstring query, required -
datestring (date) query, required -
accountIdsarray of string query, optional
Answer (200, JSON list of objects)
-
accountIdstring required -
assetstring required -
amountstring 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
/ledger/history/list List a book’s change sets, newest first, a page at a time ledger.history.list Parameters
-
bookIdstring query, required -
transactionIdstring query, optional -
via"user" | "rule" | "import" | "agent" | "system" query, optional -
cursorstring query, optional -
limitinteger query, optional
Answer (200, JSON)
-
itemsarray of object required -
nextCursorstring | null required
GET /ledger/history/get Read one change set and a page of the revisions it made ledger.history.get
/ledger/history/get Read one change set and a page of the revisions it made ledger.history.get Parameters
-
bookIdstring query, required -
changeSetIdstring query, required -
cursorstring query, optional -
limitinteger query, optional
Answer (200, JSON)
-
idstring required -
via"user" | "rule" | "import" | "agent" | "system" required -
summarystring required -
actorIdstring | null required -
createdAtstring (date-time) required -
undoneByIdstring | null required -
undoesIdstring | null required -
transactionCountinteger required -
transactionIdsarray of string required -
undoableByYouboolean required -
revisionsarray of object required -
nextCursorstring | null required
GET /ledger/history/forTransaction Read one transaction’s history, newest revision first, a page at a time ledger.history.forTransaction
/ledger/history/forTransaction Read one transaction’s history, newest revision first, a page at a time ledger.history.forTransaction Parameters
-
bookIdstring query, required -
transactionIdstring query, required -
cursorstring query, optional -
limitinteger query, optional
Answer (200, JSON)
-
itemsarray of object required -
nextCursorstring | null required
POST /ledger/history/undoDryRun Check what undoing a change set would do to the bank balances ledger.history.undoDryRun
/ledger/history/undoDryRun Check what undoing a change set would do to the bank balances ledger.history.undoDryRun Body (JSON)
-
bookIdstring required -
changeSetIdstring required
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/history/undo Undo a change set by writing one that reverses it; undoing an undo redoes it ledger.history.undo Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
changeSetIdstring required
Answer (200, JSON)
-
idstring required -
via"user" | "rule" | "import" | "agent" | "system" required -
summarystring required -
actorIdstring | null required -
createdAtstring (date-time) required -
undoneByIdstring | null required -
undoesIdstring | null required -
transactionCountinteger required -
transactionIdsarray 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
/ledger/assertions/list List a book’s recorded balances, newest date first, a page at a time ledger.assertions.list Parameters
-
bookIdstring query, required -
pocketIdstring query, optional -
assetstring query, optional -
fromstring (date) query, optional -
tostring (date) query, optional -
latestboolean query, optional -
cursorstring query, optional -
limitinteger query, optional
Answer (200, JSON)
-
itemsarray of object required -
nextCursorstring | null required
POST /ledger/assertions/create Record a pocket’s balance on a day, posting an adjustment for any difference ledger.assertions.create
/ledger/assertions/create Record a pocket’s balance on a day, posting an adjustment for any difference ledger.assertions.create Body (JSON)
-
bookIdstring required -
pocketIdstring required -
datestring (date) required -
amountobject required -
replacesstring | null required -
requestIdstring (uuid) required
Answer (200, JSON)
-
assertionobject required -
changeSetIdstring | 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
/ledger/assertions/createMany Record a pocket’s balance in several assets on one day, all or nothing ledger.assertions.createMany Body (JSON)
-
bookIdstring required -
pocketIdstring required -
datestring (date) required -
balancesarray of object required -
requestIdstring (uuid) required
Answer (200, JSON)
-
assertionsarray of object required -
changeSetIdstring | 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
/ledger/assertions/preview Preview the adjustment recording a pocket’s balances on a day would post ledger.assertions.preview Parameters
-
bookIdstring query, required -
pocketIdstring query, required -
datestring (date) query, required -
amountsarray of object query, required
Answer (200, JSON)
-
balancesarray 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
/ledger/assertions/delete Delete a recorded balance and its adjustment ledger.assertions.delete Body (JSON)
-
bookIdstring required -
assertionIdstring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
assertionIdstring required -
changeSetIdstring 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
/ledger/bookTransfers/createDryRun Check what moving money between books would do to bank balances ledger.bookTransfers.createDryRun Body (JSON)
-
bookIdstring required -
toBookIdstring required -
bookingDatestring (date) required -
fromPocketIdstring required -
toPocketIdstring required -
amountstring required -
assetstring required -
as"contribution" | "loan" required -
idstring (uuid) optional -
toIdstring (uuid) optional -
occurredAtstring (date-time) optional -
payeestring optional -
descriptionstring optional -
notesstring optional -
tagsarray of string optional -
status"pending" | "posted" optional -
receivedobject optional
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/bookTransfers/create Move money from a pocket in one book to a pocket in another ledger.bookTransfers.create Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
toBookIdstring required -
bookingDatestring (date) required -
fromPocketIdstring required -
toPocketIdstring required -
amountstring required -
assetstring required -
as"contribution" | "loan" required -
idstring (uuid) optional -
toIdstring (uuid) optional -
occurredAtstring (date-time) optional -
payeestring optional -
descriptionstring optional -
notesstring optional -
tagsarray of string optional -
status"pending" | "posted" optional -
receivedobject optional
Answer (200, JSON)
-
fromobject required -
toobject 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
/ledger/bookTransfers/updateDryRun Check what changing a transfer between books would do to bank balances ledger.bookTransfers.updateDryRun Body (JSON)
-
bookIdstring required -
transactionIdstring required -
ifChangeSetIdstring required -
transferobject required
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/bookTransfers/update Change both sides of a transfer between books ledger.bookTransfers.update Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
transactionIdstring required -
ifChangeSetIdstring required -
transferobject required
Answer (200, JSON)
-
fromobject required -
toobject 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
/ledger/bookTransfers/fromTransactionDryRun Check what turning a payment into a transfer between books would do to balances ledger.bookTransfers.fromTransactionDryRun Body (JSON)
-
bookIdstring required -
transactionIdstring required -
ifChangeSetIdstring required -
otherBookIdstring required -
otherPocketIdstring required -
as"contribution" | "loan" required -
receivedobject optional
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/bookTransfers/fromTransaction Turn a payment or income into a transfer with another book ledger.bookTransfers.fromTransaction Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
transactionIdstring required -
ifChangeSetIdstring required -
otherBookIdstring required -
otherPocketIdstring required -
as"contribution" | "loan" required -
receivedobject optional
Answer (200, JSON)
-
fromobject required -
toobject required -
joinedboolean 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
/ledger/bookTransfers/joinDryRun Check what joining rows of two books would do to bank balances ledger.bookTransfers.joinDryRun Body (JSON)
-
bookIdstring required -
transactionIdstring required -
ifChangeSetIdstring required -
otherBookIdstring required -
otherTransactionIdstring required -
otherIfChangeSetIdstring required -
as"contribution" | "loan" required
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/bookTransfers/join Join a row of this book and one of another as a transfer, by hand ledger.bookTransfers.join Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
transactionIdstring required -
ifChangeSetIdstring required -
otherBookIdstring required -
otherTransactionIdstring required -
otherIfChangeSetIdstring required -
as"contribution" | "loan" required
Answer (200, JSON)
-
fromobject required -
toobject 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
/ledger/bookTransfers/deleteDryRun Check what deleting a transfer between books would do to bank balances ledger.bookTransfers.deleteDryRun Body (JSON)
-
bookIdstring required -
transactionIdstring required -
ifChangeSetIdstring required
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/bookTransfers/delete Delete both sides of a transfer between books ledger.bookTransfers.delete Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
transactionIdstring required -
ifChangeSetIdstring required
Answer (200, JSON)
-
fromobject required -
toobject 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
/ledger/bookTransfers/between Sum what a book put into another, took back and is owed, per asset ledger.bookTransfers.between Parameters
-
bookIdstring query, required -
otherBookIdstring query, required
Answer (200, JSON list of objects)
-
assetstring required -
putInstring required -
takenBackstring required -
owedstring required
GET /ledger/contacts/list List a book’s contacts, the most owed first, then settled and archived ones ledger.contacts.list
/ledger/contacts/list List a book’s contacts, the most owed first, then settled and archived ones ledger.contacts.list Parameters
-
bookIdstring query, required
Answer (200, JSON list of objects)
-
idstring required -
namestring required -
status"open" | "settled" | "archived" required -
balancesarray of object required -
totalstring | null required -
lastActiveOnstring (date) required -
updatedAtstring (date-time) required
GET /ledger/contacts/get Get one contact and what is owed with them ledger.contacts.get
/ledger/contacts/get Get one contact and what is owed with them ledger.contacts.get Parameters
-
bookIdstring query, required -
contactIdstring query, required
Answer (200, JSON)
-
idstring required -
namestring required -
status"open" | "settled" | "archived" required -
balancesarray of object required -
totalstring | null required -
lastActiveOnstring (date) required -
updatedAtstring (date-time) required
POST /ledger/contacts/lend Record money lent to or borrowed from a contact ledger.contacts.lend
/ledger/contacts/lend Record money lent to or borrowed from a contact ledger.contacts.lend Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
bookingDatestring (date) required -
contactobject required -
pocketIdstring required -
amountstring required -
assetstring required -
direction"lent" | "borrowed" required -
occurredAtstring (date-time) optional -
payeestring optional -
descriptionstring optional -
notesstring optional -
tagsarray of string optional -
status"pending" | "posted" optional -
receivedobject optional
Answer (200, JSON)
-
transactionobject required -
changeSetIdstring required -
contactobject 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
/ledger/contacts/settle Record money paid back to or by a contact, all that is open by default ledger.contacts.settle Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
contactIdstring required -
assetstring required -
bookingDatestring (date) required -
wayobject required -
amountstring optional -
direction"to-you" | "by-you" optional
Answer (200, JSON)
-
transactionobject required -
changeSetIdstring required -
contactobject 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
/ledger/contacts/forgive Write off what a contact owes you, or what you owe them ledger.contacts.forgive Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
contactIdstring required -
assetstring required -
bookingDatestring (date) required -
amountstring optional
Answer (200, JSON)
-
transactionobject required -
changeSetIdstring required -
contactobject 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
/ledger/contacts/rename Rename a contact ledger.contacts.rename Body (JSON)
-
bookIdstring required -
contactIdstring required -
expectedUpdatedAtstring (date-time) required -
contactNamestring required
Answer (200, JSON)
-
idstring required -
namestring required -
status"open" | "settled" | "archived" required -
balancesarray of object required -
totalstring | null required -
lastActiveOnstring (date) required -
updatedAtstring (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
/ledger/contacts/archive Archive a settled contact, hiding it from the open ones ledger.contacts.archive Body (JSON)
-
bookIdstring required -
contactIdstring required -
expectedUpdatedAtstring (date-time) required
Answer (200, JSON)
-
idstring required -
namestring required -
status"open" | "settled" | "archived" required -
balancesarray of object required -
totalstring | null required -
lastActiveOnstring (date) required -
updatedAtstring (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
/ledger/contacts/linkDryRun Check what turning payments into transfers with a contact would do to bank balances ledger.contacts.linkDryRun Body (JSON)
-
bookIdstring required -
contactobject required -
as"loan" | "repayment" required -
itemsarray of object required
Answer (200, JSON)
-
balanceChecksarray 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/link Turn up to 1,000 payments and income into transfers with a contact at once ledger.contacts.link
/ledger/contacts/link Turn up to 1,000 payments and income into transfers with a contact at once ledger.contacts.link Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
contactobject required -
as"loan" | "repayment" required -
itemsarray of object required
Answer (200, JSON)
-
changeSetIdstring required -
changedarray of string required -
contactobject 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
/ledger/contacts/merge Merge one contact into another, moving all its transactions ledger.contacts.merge Body (JSON)
-
bookIdstring required -
contactIdstring required -
expectedUpdatedAtstring (date-time) required -
intoIdstring required -
intoExpectedUpdatedAtstring (date-time) required
Answer (200, JSON)
-
changeSetIdstring | null required -
contactobject required
Refusals
- 409: BOOK_ARCHIVED, CONTACT_CHANGED
- 422: CONTACT_TOO_LARGE
POST /ledger/contacts/unarchive Show an archived contact again ledger.contacts.unarchive
/ledger/contacts/unarchive Show an archived contact again ledger.contacts.unarchive Body (JSON)
-
bookIdstring required -
contactIdstring required -
expectedUpdatedAtstring (date-time) required
Answer (200, JSON)
-
idstring required -
namestring required -
status"open" | "settled" | "archived" required -
balancesarray of object required -
totalstring | null required -
lastActiveOnstring (date) required -
updatedAtstring (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
/ledger/owed/list List the people and other books money is owed with, books first ledger.owed.list Parameters
-
bookIdstring query, required
Answer (200, JSON list of objects)
-
counterpartyobject required -
pocketIdstring required -
status"open" | "settled" | "archived" required -
balancesarray of object required -
totalstring | null required -
lastActiveOnstring (date) required -
updatedAtstring (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
/ledger/owed/get Get what is owed with a person or another book, and its balance over time ledger.owed.get Parameters
-
bookIdstring query, required -
contactIdstring query, optional -
otherBookIdstring query, optional
Answer (200, JSON)
-
counterpartyobject required -
pocketIdstring required -
status"open" | "settled" | "archived" required -
balancesarray of object required -
totalstring | null required -
lastActiveOnstring (date) required -
updatedAtstring (date-time) required -
overarray of object required
POST /ledger/owed/lendDryRun Check what lending or borrowing would do to bank balances ledger.owed.lendDryRun
/ledger/owed/lendDryRun Check what lending or borrowing would do to bank balances ledger.owed.lendDryRun Body (JSON)
-
bookIdstring required -
bookingDatestring (date) required -
counterpartyobject required -
pocketIdstring required -
amountstring required -
assetstring required -
direction"lent" | "borrowed" required -
occurredAtstring (date-time) optional -
payeestring optional -
descriptionstring optional -
notesstring optional -
tagsarray of string optional -
status"pending" | "posted" optional -
otherPocketIdstring optional -
receivedobject optional
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/owed/lend Record money lent to or borrowed from a person or another book ledger.owed.lend Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
bookingDatestring (date) required -
counterpartyobject required -
pocketIdstring required -
amountstring required -
assetstring required -
direction"lent" | "borrowed" required -
occurredAtstring (date-time) optional -
payeestring optional -
descriptionstring optional -
notesstring optional -
tagsarray of string optional -
status"pending" | "posted" optional -
otherPocketIdstring optional -
receivedobject optional
Answer (200, JSON)
-
transactionobject required -
changeSetIdstring required -
owedobject 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
/ledger/owed/settleDryRun Check what settling up would do to bank balances ledger.owed.settleDryRun Body (JSON)
-
bookIdstring required -
counterpartyobject required -
assetstring required -
bookingDatestring (date) required -
wayobject required -
amountstring optional -
direction"to-you" | "by-you" optional -
otherPocketIdstring optional
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/owed/settle Record money paid back to or by a person or another book ledger.owed.settle Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
counterpartyobject required -
assetstring required -
bookingDatestring (date) required -
wayobject required -
amountstring optional -
direction"to-you" | "by-you" optional -
otherPocketIdstring optional
Answer (200, JSON)
-
transactionobject required -
changeSetIdstring required -
owedobject 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
/ledger/owed/forgiveDryRun Check what writing off what is owed would do to bank balances ledger.owed.forgiveDryRun Body (JSON)
-
bookIdstring required -
counterpartyobject required -
assetstring required -
bookingDatestring (date) required -
amountstring optional
Answer (200, JSON)
-
balanceChecksarray 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
/ledger/owed/forgive Write off what is owed with a person or another book ledger.owed.forgive Body (JSON)
-
bookIdstring required -
requestIdstring (uuid) required -
counterpartyobject required -
assetstring required -
bookingDatestring (date) required -
amountstring optional
Answer (200, JSON)
-
transactionobject required -
changeSetIdstring required -
owedobject 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
Rates
GET /rates/list List market rates and a book’s own rates over a period, newest first rates.list
/rates/list List market rates and a book’s own rates over a period, newest first rates.list Parameters
-
bookIdstring query, required -
basestring query, optional -
quotestring query, optional -
source"manual" query, optional -
fromstring (date) query, required -
tostring (date) query, required
Answer (200, JSON list of objects)
-
basestring required -
quotestring required -
datestring (date) required -
ratestring required -
sourcestring required -
unusedboolean required
POST /rates/setManual Set a book’s own rate for a pair and day the market has no rate for rates.setManual
/rates/setManual Set a book’s own rate for a pair and day the market has no rate for rates.setManual Body (JSON)
-
bookIdstring required -
basestring required -
quotestring required -
datestring (date) required -
ratestring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
basestring required -
quotestring required -
datestring (date) required -
ratestring required -
sourcestring 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
/rates/removeManual Remove a book’s own rate for a pair and day rates.removeManual Body (JSON)
-
bookIdstring required -
basestring required -
quotestring required -
datestring (date) required
Answer (200, JSON)
-
removedboolean required
Refusals
- 409: BOOK_ARCHIVED
POST /rates/coins List the coins each crypto ticker could be and the one the book prices rates.coins
/rates/coins List the coins each crypto ticker could be and the one the book prices rates.coins Body (JSON)
-
bookIdstring required -
assetsarray of string required
Answer (200, JSON list of objects)
-
assetstring required -
coinIdstring | null required -
pinnedBy"auto" | "venue" | "chosen" | "unpriced" | null required -
candidatesarray of object required
POST /rates/pinCoin Choose which coin a book prices a crypto ticker as, or none, and re-price it rates.pinCoin
/rates/pinCoin Choose which coin a book prices a crypto ticker as, or none, and re-price it rates.pinCoin Body (JSON)
-
bookIdstring required -
assetstring required -
coinIdstring | null required
Answer (200, JSON)
-
assetstring required -
coinIdstring | 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
/holdings/list List what each pocket holds of each investment, valued on a date holdings.list Parameters
-
bookIdstring query, required -
datestring (date) query, optional
Answer (200, JSON)
-
baseCurrencystring required -
datestring (date) required -
holdingsarray of object required -
byAssetarray of object required -
totalsobject required
GET /holdings/lots List an asset’s lots, oldest first holdings.lots
/holdings/lots List an asset’s lots, oldest first holdings.lots Parameters
-
bookIdstring query, required -
assetstring query, required -
pocketIdstring query, optional -
cursorstring query, optional -
limitinteger query, optional
Answer (200, JSON)
-
baseCurrencystring required -
itemsarray of object required -
nextCursorstring | null required -
unknownobject required -
priceDatestring (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
/holdings/realised List sales between two dates with their realised gain or loss holdings.realised Parameters
-
bookIdstring query, required -
fromstring (date) query, required -
tostring (date) query, required -
cursorstring query, optional -
limitinteger query, optional
Answer (200, JSON)
-
baseCurrencystring required -
itemsarray of object required -
nextCursorstring | null required -
firstOnstring (date) | null required -
totalsobject required
GET /holdings/income List dividends, interest and staking rewards between two dates holdings.income
/holdings/income List dividends, interest and staking rewards between two dates holdings.income Parameters
-
bookIdstring query, required -
fromstring (date) query, required -
tostring (date) query, required -
cursorstring query, optional -
limitinteger query, optional -
assetstring query, optional -
pocketIdstring query, optional
Answer (200, JSON)
-
baseCurrencystring required -
itemsarray of object required -
nextCursorstring | null required -
firstOnstring (date) | null required -
totalsobject required
Refusals
- 409: NOT_AN_INVESTMENT_ASSET
POST /holdings/setLotCost State or clear the cost of an acquisition the ledger cannot price holdings.setLotCost
/holdings/setLotCost State or clear the cost of an acquisition the ledger cannot price holdings.setLotCost Body (JSON)
-
bookIdstring required -
transactionIdstring required -
assetstring required -
costVersionstring | null required -
requestIdstring (uuid) required -
costobject optional -
costBaseobject | null optional -
feesobject optional
Answer (200, JSON)
-
baseCurrencystring required -
lotsarray 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
/holdings/statePurchase State a known purchase inside a lot of unknown cost, or change one holdings.statePurchase Body (JSON)
-
bookIdstring required -
assetstring required -
versionstring | null required -
quantitystring required -
boughtOnstring (date) required -
costobject required -
requestIdstring (uuid) required -
lotIdstring optional -
purchaseIdstring optional -
costBaseobject optional -
feesobject optional
Answer (200, JSON)
-
purchaseIdstring 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
/holdings/removePurchase Remove a known purchase: its quantity is of unknown cost again holdings.removePurchase Body (JSON)
-
bookIdstring required -
assetstring required -
purchaseIdstring required -
versionstring required -
requestIdstring (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
/reports/flows Sum a book’s spending and income over a period, split up to three ways reports.flows Parameters
-
bookIdstring query, required -
fromstring (date) query, required -
tostring (date) query, required -
groupByarray of "category" | "parentCategory" | "pocket" | "person" | "month" | "day" | "asset" query, optional -
filtersobject query, optional -
includePendingboolean query, optional
Answer (200, JSON)
-
baseCurrencystring required -
rowsarray of object required -
totalsobject required -
unconvertedarray 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
/reports/netWorth Value every pocket’s balances at the end of a day in the base currency reports.netWorth Parameters
-
bookIdstring query, required -
datestring (date) query, required -
owner"shared" | string query, optional
Answer (200, JSON)
-
baseCurrencystring required -
datestring (date) required -
holdingsarray of object required -
pocketsarray of object required -
byKindobject required -
totalstring required -
owedToYoustring required -
youOwestring required -
unconvertedarray of object required -
ratesarray of object required
GET /reports/netWorthSeries List net worth at each day, week or month end of a period reports.netWorthSeries
/reports/netWorthSeries List net worth at each day, week or month end of a period reports.netWorthSeries Parameters
-
bookIdstring query, required -
fromstring (date) query, required -
tostring (date) query, required -
step"month" | "week" | "day" query, optional -
owner"shared" | string query, optional
Answer (200, JSON)
-
baseCurrencystring required -
pointsarray of object required
GET /reports/usual Work out a month’s usual spending: the median of the 12 months before reports.usual
/reports/usual Work out a month’s usual spending: the median of the 12 months before reports.usual Parameters
-
bookIdstring query, required -
monthstring query, required -
throughinteger query, optional -
sincestring query, optional -
groupByarray of "parentCategory" | "category" | "pocket" | "person" query, optional -
filtersobject query, optional -
includePendingboolean query, optional
Answer (200, JSON)
-
baseCurrencystring required -
monthsinteger required -
windowobject | null required -
firstSpendingstring (date) | null required -
rowsarray of object required -
totalstring required -
meanstring required -
unconvertedinteger required
Refusals
- 422: REPORT_TOO_LARGE
GET /reports/moved Total a period’s transfers, exchanges, investments, loans and repayments reports.moved
/reports/moved Total a period’s transfers, exchanges, investments, loans and repayments reports.moved Parameters
-
bookIdstring query, required -
fromstring (date) query, required -
tostring (date) query, required -
includePendingboolean query, optional
Answer (200, JSON)
-
baseCurrencystring required -
transfersobject required -
exchangesobject required -
investedobject required -
divestedobject required -
toOtherBooksobject required -
fromOtherBooksobject required -
contributionsobject required -
loansobject required -
repaymentsobject required
GET /reports/year Get a year’s figures by month, category, pocket and owner, with changes reports.year
/reports/year Get a year’s figures by month, category, pocket and owner, with changes reports.year Parameters
-
bookIdstring query, required -
yearinteger query, required -
todaystring (date) query, optional -
includePendingboolean query, optional
Answer (200, JSON)
-
baseCurrencystring required -
yearinteger required -
gridsobject required -
comparableMonthsarray of integer required -
categoriesarray of object required -
moversarray of object required -
toparray of object required -
topTwoHalfboolean required -
topThreeHalfboolean required -
averagestring | null required -
lastYearobject | null required
Refusals
- 422: REPORT_TOO_LARGE
GET /reports/trends Get which categories are rising or falling and the new recurring payments reports.trends
/reports/trends Get which categories are rising or falling and the new recurring payments reports.trends Parameters
-
bookIdstring query, required -
todaystring (date) query, optional -
includePendingboolean query, optional
Answer (200, JSON)
-
baseCurrencystring required -
todaystring (date) required -
monthsobject required -
categoriesarray of object required -
usualMonthsinteger required -
thisMontharray of object required -
newRecurringarray 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
/reports/budgets Get each budgeted category’s spending this month and a suggested budget reports.budgets Parameters
-
bookIdstring query, required -
monthstring query, required -
todaystring (date) query, optional -
includePendingboolean query, optional
Answer (200, JSON)
-
baseCurrencystring required -
monthstring required -
daysobject required -
budgetsarray of object required -
suggestionsarray of object required -
usualMonthsinteger required -
unconvertedinteger 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
/reports/merchant Get what one merchant cost over all time, by its key or one of its transactions reports.merchant Parameters
-
bookIdstring query, required -
keystring query, optional -
transactionIdstring query, optional -
todaystring (date) query, required
Answer (200, JSON)
-
baseCurrencystring required -
merchantobject | null required
GET /reports/unusual List a period’s payments over three times their merchant’s usual reports.unusual
/reports/unusual List a period’s payments over three times their merchant’s usual reports.unusual Parameters
-
bookIdstring query, required -
fromstring (date) query, required -
tostring (date) query, required
Answer (200, JSON)
-
baseCurrencystring required -
paymentsarray of object required
Attachments
POST /attachments/startUpload Start adding a photo or PDF to a transaction and get where to upload it attachments.startUpload
/attachments/startUpload Start adding a photo or PDF to a transaction and get where to upload it attachments.startUpload Body (JSON)
-
bookIdstring required -
transactionIdstring required -
fileNamestring required -
mediaType"image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif" | "image/avif" | "image/tiff" | "application/pdf" required -
sizeinteger required -
sha256string required -
requestIdstring (uuid) required
Answer (200, JSON)
-
attachmentIdstring required -
uploadobject | 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
/attachments/completeUpload Finish an upload and have the file checked in the background attachments.completeUpload Body (JSON)
-
bookIdstring required -
attachmentIdstring required
Answer (200, JSON)
-
idstring required -
transactionIdstring required -
fileNamestring required -
mediaType"image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif" | "image/avif" | "image/tiff" | "application/pdf" required -
sizeBytesinteger required -
sha256string required -
status"awaiting-upload" | "processing" | "ready" | "rejected" required -
rejection"size" | "hash" | "type-mismatch" | "not-allowed" | "malware" | "expired" | "failed" | null required -
captionstring | null required -
hasThumbnailboolean required -
uploadedBystring | null required -
createdAtstring (date-time) required -
readyAtstring (date-time) | null required -
deletedAtstring (date-time) | null required -
purgeAfterstring (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
/attachments/list List the attachments a transaction shows, oldest first attachments.list Parameters
-
bookIdstring query, required -
transactionIdstring query, required
Answer (200, JSON list of objects)
-
idstring required -
transactionIdstring required -
fileNamestring required -
mediaType"image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif" | "image/avif" | "image/tiff" | "application/pdf" required -
sizeBytesinteger required -
sha256string required -
status"awaiting-upload" | "processing" | "ready" | "rejected" required -
rejection"size" | "hash" | "type-mismatch" | "not-allowed" | "malware" | "expired" | "failed" | null required -
captionstring | null required -
hasThumbnailboolean required -
uploadedBystring | null required -
createdAtstring (date-time) required -
readyAtstring (date-time) | null required -
deletedAtstring (date-time) | null required -
purgeAfterstring (date-time) | null required
GET /attachments/get Get one attachment, deleted ones too until they are purged attachments.get
/attachments/get Get one attachment, deleted ones too until they are purged attachments.get Parameters
-
bookIdstring query, required -
attachmentIdstring query, required
Answer (200, JSON)
-
idstring required -
transactionIdstring required -
fileNamestring required -
mediaType"image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif" | "image/avif" | "image/tiff" | "application/pdf" required -
sizeBytesinteger required -
sha256string required -
status"awaiting-upload" | "processing" | "ready" | "rejected" required -
rejection"size" | "hash" | "type-mismatch" | "not-allowed" | "malware" | "expired" | "failed" | null required -
captionstring | null required -
hasThumbnailboolean required -
uploadedBystring | null required -
createdAtstring (date-time) required -
readyAtstring (date-time) | null required -
deletedAtstring (date-time) | null required -
purgeAfterstring (date-time) | null required
POST /attachments/updateCaption Set or clear an attachment’s caption attachments.updateCaption
/attachments/updateCaption Set or clear an attachment’s caption attachments.updateCaption Body (JSON)
-
bookIdstring required -
attachmentIdstring required -
captionstring | null required
Answer (200, JSON)
-
idstring required -
transactionIdstring required -
fileNamestring required -
mediaType"image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif" | "image/avif" | "image/tiff" | "application/pdf" required -
sizeBytesinteger required -
sha256string required -
status"awaiting-upload" | "processing" | "ready" | "rejected" required -
rejection"size" | "hash" | "type-mismatch" | "not-allowed" | "malware" | "expired" | "failed" | null required -
captionstring | null required -
hasThumbnailboolean required -
uploadedBystring | null required -
createdAtstring (date-time) required -
readyAtstring (date-time) | null required -
deletedAtstring (date-time) | null required -
purgeAfterstring (date-time) | null required
Refusals
- 409: BOOK_ARCHIVED, REQUEST_IN_PROGRESS
POST /attachments/delete Delete an attachment, restorable for 30 days attachments.delete
/attachments/delete Delete an attachment, restorable for 30 days attachments.delete Body (JSON)
-
bookIdstring required -
attachmentIdstring required
Answer (200, JSON)
-
idstring required -
transactionIdstring required -
fileNamestring required -
mediaType"image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif" | "image/avif" | "image/tiff" | "application/pdf" required -
sizeBytesinteger required -
sha256string required -
status"awaiting-upload" | "processing" | "ready" | "rejected" required -
rejection"size" | "hash" | "type-mismatch" | "not-allowed" | "malware" | "expired" | "failed" | null required -
captionstring | null required -
hasThumbnailboolean required -
uploadedBystring | null required -
createdAtstring (date-time) required -
readyAtstring (date-time) | null required -
deletedAtstring (date-time) | null required -
purgeAfterstring (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
/attachments/restore Restore a deleted attachment within 30 days of deleting it attachments.restore Body (JSON)
-
bookIdstring required -
attachmentIdstring required
Answer (200, JSON)
-
idstring required -
transactionIdstring required -
fileNamestring required -
mediaType"image/jpeg" | "image/png" | "image/webp" | "image/gif" | "image/heic" | "image/heif" | "image/avif" | "image/tiff" | "application/pdf" required -
sizeBytesinteger required -
sha256string required -
status"awaiting-upload" | "processing" | "ready" | "rejected" required -
rejection"size" | "hash" | "type-mismatch" | "not-allowed" | "malware" | "expired" | "failed" | null required -
captionstring | null required -
hasThumbnailboolean required -
uploadedBystring | null required -
createdAtstring (date-time) required -
readyAtstring (date-time) | null required -
deletedAtstring (date-time) | null required -
purgeAfterstring (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
/attachments/download Download an attachment’s file, or its thumbnail, decrypted attachments.download Parameters
-
bookIdstring query, required -
attachmentIdstring 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
/imports/startUpload Start uploading a statement and get a presigned address to PUT its bytes imports.startUpload Body (JSON)
-
bookIdstring required -
fileNamestring required -
mediaTypestring required -
sizeinteger required -
sha256string required -
requestIdstring (uuid) required
Answer (200, JSON)
-
uploadIdstring required -
uploadobject | 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
/imports/putUpload Send an upload’s bytes in the request, in place of the presigned PUT imports.putUpload Body (JSON)
-
bookIdstring required -
uploadIdstring required -
contentstring required
Answer (200, JSON)
-
uploadIdstring 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
/imports/detect Detect who wrote an uploaded statement and its accounts; poll until ready imports.detect Body (JSON)
-
bookIdstring required -
uploadIdstring required -
passwordstring optional -
accountstring optional
Answer (200, JSON)
-
status"detecting" | "ready" | "refused" required -
detectionsarray of object required -
accountsarray of object required -
linksarray of object required -
skippedarray of string required -
needsPasswordboolean 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
/imports/suggestMapping Read the column-mapping suggestion for a CSV or XLSX no importer claims; poll imports.suggestMapping Body (JSON)
-
bookIdstring required -
uploadIdstring required -
encoding"windows-1252" | "iso-8859-8" | "windows-1255" | "iso-8859-7" | "windows-1253" optional
Answer (200, JSON)
-
status"detecting" | "ready" | "refused" required -
suggestionobject | 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
/imports/mappings/list List a book’s saved column mappings imports.mappings.list Parameters
-
bookIdstring query, required
Answer (200, JSON list of objects)
-
idstring required -
namestring required -
version1 required -
fileobject required -
matchobject required -
dateobject required -
amountobject required -
numberobject required -
assetobject required -
descriptionobject required -
accountobject required -
valueDateobject optional -
counterpartyobject optional -
externalIdobject optional -
balanceobject optional -
categoryobject optional
POST /imports/mappings/save Save a column mapping, and detect the statement it was made for again imports.mappings.save
/imports/mappings/save Save a column mapping, and detect the statement it was made for again imports.mappings.save Body (JSON)
-
bookIdstring required -
mappingobject required -
requestIdstring (uuid) required -
uploadIdstring optional
Answer (200, JSON)
-
idstring required -
namestring required -
version1 required -
fileobject required -
matchobject required -
dateobject required -
amountobject required -
numberobject required -
assetobject required -
descriptionobject required -
accountobject required -
valueDateobject optional -
counterpartyobject optional -
externalIdobject optional -
balanceobject optional -
categoryobject 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
/imports/mappings/delete Delete a saved column mapping; imports that used it stay imports.mappings.delete Body (JSON)
-
bookIdstring required -
mappingIdstring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
mappingIdstring 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
/imports/start Import a detected statement, a pocket or a skip for each account, as a job imports.start Body (JSON)
-
bookIdstring required -
uploadIdstring required -
providerstring required -
accountsarray of object required -
requestIdstring (uuid) required -
passwordstring optional -
accountstring optional
Answer (200, JSON)
-
runIdstring 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
/imports/statementsByPocket List each pocket’s last import and the newest statement day it posted imports.statementsByPocket Parameters
-
bookIdstring query, required
Answer (200, JSON)
-
itemsarray of object required
GET /imports/waiting List the uploaded statements waiting to be finished in the wizard, newest first imports.waiting
/imports/waiting List the uploaded statements waiting to be finished in the wizard, newest first imports.waiting Parameters
-
bookIdstring query, required
Answer (200, JSON)
-
itemsarray of object required
GET /imports/runs/list List a book’s imports, newest first, a page at a time imports.runs.list
/imports/runs/list List a book’s imports, newest first, a page at a time imports.runs.list Parameters
-
bookIdstring query, required -
cursorstring query, optional -
limitinteger query, required
Answer (200, JSON)
-
itemsarray of object required -
nextCursorstring | null required
GET /imports/runs/get Get one import with its counts and warnings imports.runs.get
/imports/runs/get Get one import with its counts and warnings imports.runs.get Parameters
-
bookIdstring query, required -
runIdstring query, required
Answer (200, JSON)
-
idstring required -
status"queued" | "running" | "done" | "failed" required -
providerstring required -
source"file" | "mail" | "bank" required -
fileobject required -
startedAtstring (date-time) | null required -
finishedAtstring (date-time) | null required -
countsobject required -
warningsarray of object required -
balancesobject required -
changeSetIdstring | null required -
undoableByYouboolean required -
undoneAtstring (date-time) optional
POST /imports/runs/undo Undo an import’s transactions, and the later changes built on them if asked imports.runs.undo
/imports/runs/undo Undo an import’s transactions, and the later changes built on them if asked imports.runs.undo Body (JSON)
-
bookIdstring required -
runIdstring required -
requestIdstring (uuid) required -
withDependantsboolean optional
Answer (200, JSON)
-
idstring required -
status"queued" | "running" | "done" | "failed" required -
providerstring required -
source"file" | "mail" | "bank" required -
fileobject required -
startedAtstring (date-time) | null required -
finishedAtstring (date-time) | null required -
countsobject required -
warningsarray of object required -
balancesobject required -
changeSetIdstring | null required -
undoableByYouboolean required -
undoneAtstring (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
/emailIn/get Get the book’s email-in address and allowed senders, creating the address once emailIn.get Body (JSON)
-
bookIdstring required
Answer (200, JSON)
-
addressstring (email) required -
allowedSendersarray 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
/emailIn/rotate Replace the book’s email-in address; the old one stops accepting mail at once emailIn.rotate Body (JSON)
-
bookIdstring required -
addressstring (email) required -
requestIdstring (uuid) required
Answer (200, JSON)
-
addressstring (email) required -
allowedSendersarray 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
/emailIn/allow Allow a sender whose forwarded statements import into the book emailIn.allow Body (JSON)
-
bookIdstring required -
senderstring (email) required -
requestIdstring (uuid) required
Answer (200, JSON)
-
addressstring (email) required -
allowedSendersarray 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
/emailIn/history List the book’s mail of the last 30 days and what came of each emailIn.history Parameters
-
bookIdstring query, required
Answer (200, JSON)
-
mailsarray of object required
Refusals
- 503: EMAIL_IN_UNAVAILABLE
POST /emailIn/disallow Stop importing a sender’s mail; it is ignored from now emailIn.disallow
/emailIn/disallow Stop importing a sender’s mail; it is ignored from now emailIn.disallow Body (JSON)
-
bookIdstring required -
senderstring (email) required -
requestIdstring (uuid) required
Answer (200, JSON)
-
addressstring (email) required -
allowedSendersarray of string (email) required
Refusals
- 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED
- 503: EMAIL_IN_UNAVAILABLE
Banklinks
GET /banklinks/connectors List the bank connectors and whether you need a setup of your own for each banklinks.connectors
/banklinks/connectors List the bank connectors and whether you need a setup of your own for each banklinks.connectors Answer (200, JSON)
-
connectorsarray of object required
POST /banklinks/saveSetup Check and save your own setup of a bank connector, then list a country’s banks banklinks.saveSetup
/banklinks/saveSetup Check and save your own setup of a bank connector, then list a country’s banks banklinks.saveSetup Body (JSON)
-
connectorIdstring required -
countrystring required -
fieldsobject required -
requestIdstring (uuid) required
Answer (200, JSON)
-
institutionsarray of object required
Refusals
- 403: SESSION_NOT_FRESH
- 409: REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED
- 422: SETUP_REFUSED
- 503: BANK_UNAVAILABLE
POST /banklinks/removeSetup Remove your connector setup and the bank links made with it, keeping transactions banklinks.removeSetup
/banklinks/removeSetup Remove your connector setup and the bank links made with it, keeping transactions banklinks.removeSetup Body (JSON)
-
connectorIdstring required -
requestIdstring (uuid) required
Refusals
- 403: SESSION_NOT_FRESH
- 409: REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED
GET /banklinks/institutions List a country’s banks a connector reaches, through Allmoni’s setup or yours banklinks.institutions
/banklinks/institutions List a country’s banks a connector reaches, through Allmoni’s setup or yours banklinks.institutions Parameters
-
bookIdstring query, required -
connectorIdstring query, required -
countrystring query, required
Answer (200, JSON)
-
institutionsarray of object required
Refusals
- 409: NO_SETUP
- 422: SETUP_REFUSED
- 503: BANK_UNAVAILABLE
GET /banklinks/logo Get a bank’s logo, as its connector’s list of banks names it banklinks.logo
/banklinks/logo Get a bank’s logo, as its connector’s list of banks names it banklinks.logo Parameters
-
bookIdstring query, required -
connectorIdstring query, required -
logostring query, required
GET /banklinks/offers List the banks of a country’s region and the ways each can be connected banklinks.offers
/banklinks/offers List the banks of a country’s region and the ways each can be connected banklinks.offers Parameters
-
countrystring query, required -
accountKind"personal" | "business" query, required
Answer (200, JSON)
-
institutionsarray of object required
POST /banklinks/begin Start connecting a bank, or approve a link again, and get the bank’s address banklinks.begin
/banklinks/begin Start connecting a bank, or approve a link again, and get the bank’s address banklinks.begin Body (JSON)
-
bookIdstring required -
connectorIdstring required -
institutionobject required -
requestIdstring (uuid) required -
routeIdstring optional -
accountKind"personal" | "business" optional -
linkIdstring optional -
nicknamestring optional
Answer (200, JSON)
-
linkIdstring required -
urlstring (uri) required
Refusals
- 403: NOT_LINK_OWNER
- 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, NO_SETUP, LINK_BUSY, ROUTE_NOT_OFFERED, PLAN_LIMIT
- 422: SETUP_REFUSED
- 503: BANK_UNAVAILABLE
POST /banklinks/connect Connect a wallet or a broker by what its grant asks for; its history is fetched at once banklinks.connect
/banklinks/connect Connect a wallet or a broker by what its grant asks for; its history is fetched at once banklinks.connect Body (JSON)
-
bookIdstring required -
institutionIdstring required -
requestIdstring (uuid) required -
fieldsobject optional -
addressstring optional -
nicknamestring optional
Answer (200, JSON)
-
idstring required -
connectorIdstring required -
institutionobject required -
institutionIdstring required -
nicknamestring | null required -
accountKind"personal" | "business" required -
routesarray of object required -
sourceAccountsarray of object required -
state"connecting" | "active" | "needs-approval" | "failing" | "paused" required -
mineboolean required -
validUntilstring (date-time) | null required -
lastSyncobject | null required -
accountsarray of object required -
asksarray of object required -
createdAtstring (date-time) required
Refusals
- 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, ROUTE_NOT_OFFERED, ALREADY_LINKED, PLAN_LIMIT
- 422: SETUP_REFUSED
- 503: BANK_UNAVAILABLE
POST /banklinks/complete Finish a bank’s approval, then fetch its accounts’ history or sync it banklinks.complete
/banklinks/complete Finish a bank’s approval, then fetch its accounts’ history or sync it banklinks.complete Body (JSON)
-
bookIdstring required -
statestring required -
codestring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
idstring required -
connectorIdstring required -
institutionobject required -
institutionIdstring required -
nicknamestring | null required -
accountKind"personal" | "business" required -
routesarray of object required -
sourceAccountsarray of object required -
state"connecting" | "active" | "needs-approval" | "failing" | "paused" required -
mineboolean required -
validUntilstring (date-time) | null required -
lastSyncobject | null required -
accountsarray of object required -
asksarray of object required -
createdAtstring (date-time) required
Refusals
- 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, STATE_UNKNOWN
GET /banklinks/list List a book’s bank links with their accounts, balances and what each asks banklinks.list
/banklinks/list List a book’s bank links with their accounts, balances and what each asks banklinks.list Parameters
-
bookIdstring query, required
Answer (200, JSON)
-
linksarray of object required
GET /banklinks/pocketRoutes List how each pocket stays current and when it last did banklinks.pocketRoutes
/banklinks/pocketRoutes List how each pocket stays current and when it last did banklinks.pocketRoutes Parameters
-
bookIdstring query, required
Answer (200, JSON)
-
itemsarray of object required
GET /banklinks/get Get one bank link with its accounts, balances and what it asks banklinks.get
/banklinks/get Get one bank link with its accounts, balances and what it asks banklinks.get Parameters
-
bookIdstring query, required -
linkIdstring query, required
Answer (200, JSON)
-
idstring required -
connectorIdstring required -
institutionobject required -
institutionIdstring required -
nicknamestring | null required -
accountKind"personal" | "business" required -
routesarray of object required -
sourceAccountsarray of object required -
state"connecting" | "active" | "needs-approval" | "failing" | "paused" required -
mineboolean required -
validUntilstring (date-time) | null required -
lastSyncobject | null required -
accountsarray of object required -
asksarray of object required -
createdAtstring (date-time) required
POST /banklinks/map Choose a pocket and first day for each bank account and import its history banklinks.map
/banklinks/map Choose a pocket and first day for each bank account and import its history banklinks.map Body (JSON)
-
bookIdstring required -
linkIdstring required -
accountsarray of object required -
fromobject required -
requestIdstring (uuid) required -
routeIdstring optional -
matchesobject optional
Answer (200, JSON)
-
runIdstring required
Refusals
- 403: NOT_LINK_OWNER
- 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, LINK_BUSY, ALREADY_MAPPED, ACCOUNT_UNMATCHED, POCKET_CLOSED, PERSON_ARCHIVED, PLAN_LIMIT
- 410: HISTORY_GONE
- 422: ACCOUNTS_UNMAPPED
POST /banklinks/addRoute Add a statement or token route to your bank link; a token route fetches at once banklinks.addRoute
/banklinks/addRoute Add a statement or token route to your bank link; a token route fetches at once banklinks.addRoute Body (JSON)
-
bookIdstring required -
linkIdstring required -
routeIdstring required -
requestIdstring (uuid) required -
fieldsobject optional -
secretstring optional
Answer (200, JSON)
-
idstring required -
connectorIdstring required -
institutionobject required -
institutionIdstring required -
nicknamestring | null required -
accountKind"personal" | "business" required -
routesarray of object required -
sourceAccountsarray of object required -
state"connecting" | "active" | "needs-approval" | "failing" | "paused" required -
mineboolean required -
validUntilstring (date-time) | null required -
lastSyncobject | null required -
accountsarray of object required -
asksarray of object required -
createdAtstring (date-time) required
Refusals
- 403: SESSION_NOT_FRESH, NOT_LINK_OWNER
- 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, ROUTE_NOT_OFFERED, NO_SETUP
- 422: SETUP_REFUSED, OTHER_LOGIN
- 503: BANK_UNAVAILABLE
POST /banklinks/removeRoute Remove one route of a bank link; removing its main route removes the link banklinks.removeRoute
/banklinks/removeRoute Remove one route of a bank link; removing its main route removes the link banklinks.removeRoute Body (JSON)
-
bookIdstring required -
linkIdstring required -
routeIdstring required -
requestIdstring (uuid) required
Refusals
- 403: NOT_LINK_OWNER
- 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, ROUTE_NOT_OFFERED
POST /banklinks/rename Give a bank link you connected its own short name, or clear it banklinks.rename
/banklinks/rename Give a bank link you connected its own short name, or clear it banklinks.rename Body (JSON)
-
bookIdstring required -
linkIdstring required -
nicknamestring | null required -
requestIdstring (uuid) required
Answer (200, JSON)
-
idstring required -
connectorIdstring required -
institutionobject required -
institutionIdstring required -
nicknamestring | null required -
accountKind"personal" | "business" required -
routesarray of object required -
sourceAccountsarray of object required -
state"connecting" | "active" | "needs-approval" | "failing" | "paused" required -
mineboolean required -
validUntilstring (date-time) | null required -
lastSyncobject | null required -
accountsarray of object required -
asksarray of object required -
createdAtstring (date-time) required
Refusals
- 403: NOT_LINK_OWNER
- 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED
POST /banklinks/pause Pause the syncs of a bank link you connected banklinks.pause
/banklinks/pause Pause the syncs of a bank link you connected banklinks.pause Body (JSON)
-
bookIdstring required -
linkIdstring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
idstring required -
connectorIdstring required -
institutionobject required -
institutionIdstring required -
nicknamestring | null required -
accountKind"personal" | "business" required -
routesarray of object required -
sourceAccountsarray of object required -
state"connecting" | "active" | "needs-approval" | "failing" | "paused" required -
mineboolean required -
validUntilstring (date-time) | null required -
lastSyncobject | null required -
accountsarray of object required -
asksarray of object required -
createdAtstring (date-time) required
Refusals
- 403: NOT_LINK_OWNER
- 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED
POST /banklinks/resume Resume the syncs of a paused bank link you connected banklinks.resume
/banklinks/resume Resume the syncs of a paused bank link you connected banklinks.resume Body (JSON)
-
bookIdstring required -
linkIdstring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
idstring required -
connectorIdstring required -
institutionobject required -
institutionIdstring required -
nicknamestring | null required -
accountKind"personal" | "business" required -
routesarray of object required -
sourceAccountsarray of object required -
state"connecting" | "active" | "needs-approval" | "failing" | "paused" required -
mineboolean required -
validUntilstring (date-time) | null required -
lastSyncobject | null required -
accountsarray of object required -
asksarray of object required -
createdAtstring (date-time) required
Refusals
- 403: NOT_LINK_OWNER
- 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED
POST /banklinks/syncNow Sync a bank link you connected now, within the fetches its bank allows a day banklinks.syncNow
/banklinks/syncNow Sync a bank link you connected now, within the fetches its bank allows a day banklinks.syncNow Body (JSON)
-
bookIdstring required -
linkIdstring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
idstring required -
connectorIdstring required -
institutionobject required -
institutionIdstring required -
nicknamestring | null required -
accountKind"personal" | "business" required -
routesarray of object required -
sourceAccountsarray of object required -
state"connecting" | "active" | "needs-approval" | "failing" | "paused" required -
mineboolean required -
validUntilstring (date-time) | null required -
lastSyncobject | null required -
accountsarray of object required -
asksarray of object required -
createdAtstring (date-time) required
Refusals
- 403: NOT_LINK_OWNER
- 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, FETCHES_USED_TODAY
POST /banklinks/follow Follow a skipped account of a link (a wallet’s hidden coin): import it into a pocket and sync it from now on banklinks.follow
/banklinks/follow Follow a skipped account of a link (a wallet’s hidden coin): import it into a pocket and sync it from now on banklinks.follow Body (JSON)
-
bookIdstring required -
linkIdstring required -
accountobject required -
requestIdstring (uuid) required
Answer (200, JSON)
-
runIdstring required
Refusals
- 403: NOT_LINK_OWNER
- 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED, ALREADY_FOLLOWED, NOT_SKIPPED, POCKET_CLOSED, PERSON_ARCHIVED, PLAN_LIMIT
- 410: HISTORY_GONE
POST /banklinks/remove Remove a bank link and end its consent at the bank; its transactions stay banklinks.remove
/banklinks/remove Remove a bank link and end its consent at the bank; its transactions stay banklinks.remove Body (JSON)
-
bookIdstring required -
linkIdstring required -
requestIdstring (uuid) required
Refusals
- 403: NOT_LINK_OWNER
- 409: BOOK_ARCHIVED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED
Inbox
GET /inbox/summary Count a book’s inbox items to check and what changed since your last visit inbox.summary
/inbox/summary Count a book’s inbox items to check and what changed since your last visit inbox.summary Parameters
-
bookIdstring query, required -
bankLinksboolean query, optional -
quietboolean query, optional -
refundsboolean query, optional
Answer (200, JSON)
-
toCheckinteger required -
lastVisitAtstring (date-time) | null required -
sinceLastVisitobject required -
olderThan60integer required
GET /inbox/list List the open items of a book’s inbox, a page at a time, biggest first inbox.list
/inbox/list List the open items of a book’s inbox, a page at a time, biggest first inbox.list Parameters
-
bookIdstring query, required -
bankLinksboolean query, optional -
quietboolean query, optional -
refundsboolean query, optional -
guessesobject query, optional -
order"impact" | "least-sure" query, optional -
runIdstring query, optional -
cursorstring query, optional -
limitinteger query, required -
visitboolean query, optional
Answer (200, JSON)
-
itemsarray of object required -
nextCursorstring | null required
POST /inbox/resolve Resolve an inbox item, and if asked every open item like it, as one change inbox.resolve
/inbox/resolve Resolve an inbox item, and if asked every open item like it, as one change inbox.resolve Body (JSON)
-
bookIdstring required -
itemIdstring required -
actionobject required -
applyToSimilarboolean required -
requestIdstring (uuid) required -
rememberboolean optional -
previewTokenstring optional
Answer (200, JSON)
-
appliedinteger required -
changeSetIdstring required -
learnedobject 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
/inbox/resolveDryRun Check what resolving an inbox item would do, changing nothing inbox.resolveDryRun Body (JSON)
-
bookIdstring required -
itemIdstring required -
actionobject required -
applyToSimilarboolean required -
rememberboolean optional -
previewTokenstring optional
Answer (200, JSON)
-
appliedinteger required -
balanceChecksarray of object required -
learnedobject 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
/inbox/similar Preview which open inbox items are like this one inbox.similar Parameters
-
bookIdstring query, required -
itemIdstring query, required -
categoryIdstring query, optional -
newCategoryType"income" | "expense" query, optional -
withContactboolean query, optional
Answer (200, JSON)
-
countinteger required -
samplearray of object required -
previewTokenstring required -
ruleobject required -
optionsarray of object required -
futureobject | null required
GET /inbox/similarRows List every payment of a previewed similar set, newest first, a page at a time inbox.similarRows
/inbox/similarRows List every payment of a previewed similar set, newest first, a page at a time inbox.similarRows Parameters
-
bookIdstring query, required -
itemIdstring query, required -
categoryIdstring query, optional -
newCategoryType"income" | "expense" query, optional -
withContactboolean query, optional -
previewTokenstring query, required -
cursorstring query, optional -
limitinteger query, required
Answer (200, JSON)
-
rowsarray of object required -
nextCursorstring | 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
/inbox/guesses Preview the open AI guesses in a range that confirming them all would confirm inbox.guesses Parameters
-
bookIdstring query, required -
guessesobject query, required
Answer (200, JSON)
-
countinteger required -
previewTokenstring required
POST /inbox/confirmGuesses Confirm every previewed AI guess in a range with its category, as one change inbox.confirmGuesses
/inbox/confirmGuesses Confirm every previewed AI guess in a range with its category, as one change inbox.confirmGuesses Body (JSON)
-
bookIdstring required -
guessesobject required -
previewTokenstring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
changeSetIdstring | null required -
confirmedinteger 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
/inbox/oldItems Preview the open inbox items older than a number of days, to mark reviewed inbox.oldItems Parameters
-
bookIdstring query, required -
olderThanDaysinteger query, required
Answer (200, JSON)
-
countinteger required -
firstIdsarray of string required -
previewTokenstring required
POST /inbox/markReviewed Mark open inbox items older than a number of days as reviewed, as they are inbox.markReviewed
/inbox/markReviewed Mark open inbox items older than a number of days as reviewed, as they are inbox.markReviewed Body (JSON)
-
bookIdstring required -
olderThanDaysinteger required -
requestIdstring (uuid) required -
previewTokenstring optional
Answer (200, JSON)
-
changeSetIdstring | null required -
markedinteger 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
/rules/list List the book’s rules in priority order rules.list Parameters
-
bookIdstring query, required
Answer (200, JSON list of objects)
-
idstring required -
namestring required -
positioninteger required -
enabledboolean required -
match"all" | "any" required -
conditionsarray of object required -
actionsarray of object required -
origin"user" | "similar" | "seed" required -
matchesobject required -
createdAtstring (date-time) required -
updatedAtstring (date-time) required
POST /rules/create Create a rule, and label matching past transactions unless told not to rules.create
/rules/create Create a rule, and label matching past transactions unless told not to rules.create Body (JSON)
-
bookIdstring required -
namestring required -
conditionsarray of object required -
actionsarray of object required -
requestIdstring (uuid) required -
match"all" | "any" optional -
enabledboolean optional -
positioninteger optional -
applyToPastboolean optional -
previewTokenstring optional -
fromLearnedobject optional
Answer (200, JSON)
-
relabellingboolean required -
changeSetIdstring required -
labelledinteger required -
ruleobject 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
/rules/update Change a rule, and label the past again by it unless told not to rules.update Body (JSON)
-
bookIdstring required -
ruleIdstring required -
expectedUpdatedAtstring (date-time) required -
requestIdstring (uuid) required -
namestring optional -
match"all" | "any" optional -
conditionsarray of object optional -
actionsarray of object optional -
enabledboolean optional -
applyToPastboolean optional -
previewTokenstring optional
Answer (200, JSON)
-
relabellingboolean required -
changeSetIdstring | null required -
ruleobject 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
/rules/delete Delete a rule; its transactions keep their category or are labelled again rules.delete Body (JSON)
-
bookIdstring required -
ruleIdstring required -
expectedUpdatedAtstring (date-time) required -
bankNamesboolean required -
requestIdstring (uuid) required -
relabelboolean optional
Answer (200, JSON)
-
relabellingboolean required -
changeSetIdstring 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
/rules/reorder Set the order in which the book’s rules apply rules.reorder Body (JSON)
-
bookIdstring required -
idsarray of string required -
requestIdstring (uuid) required
Answer (200, JSON)
-
relabellingboolean required -
changeSetIdstring | null required -
rulesarray 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
/rules/planFromPayment Preview the rule a payment’s new payee or transfer would make, writing nothing rules.planFromPayment Parameters
-
bookIdstring query, required -
transactionIdstring query, required -
changeobject query, required -
conditionobject query, optional
Refusals
- 409: TARGET_ARCHIVED
POST /rules/preview Preview what a draft rule would change, without changing anything rules.preview
/rules/preview Preview what a draft rule would change, without changing anything rules.preview Body (JSON)
-
bookIdstring required -
conditionsarray of object required -
actionsarray of object required -
ruleIdstring optional -
positioninteger optional -
match"all" | "any" optional -
enabledboolean optional -
fromLearnedobject optional -
limitinteger optional
Answer (200, JSON)
-
matchedinteger required -
changesinteger required -
keptobject required -
samplearray of object required -
previewTokenstring required -
takesOverLearnedboolean required -
clashesarray of object required
Recurring
GET /recurring/summary Total the book’s monthly recurring payments and what changed this month recurring.summary
/recurring/summary Total the book’s monthly recurring payments and what changed this month recurring.summary Parameters
-
bookIdstring query, required
Answer (200, JSON)
-
baseCurrencystring required -
monthlystring required -
yearlystring required -
countinteger required -
suggestedobject required -
unconvertedarray of object required -
changesarray of object required
GET /recurring/payments List a recurring series’ payments, newest first, a page at a time recurring.payments
/recurring/payments List a recurring series’ payments, newest first, a page at a time recurring.payments Parameters
-
bookIdstring query, required -
seriesIdstring query, required -
cursorstring query, optional -
limitinteger query, optional
Answer (200, JSON)
-
itemsarray of object required -
nextCursorstring | null required
GET /recurring/list List the book’s recurring series by next expected date recurring.list
/recurring/list List the book’s recurring series by next expected date recurring.list Parameters
-
bookIdstring query, required -
show"current" | "dismissed" | "all" query, optional
Answer (200, JSON list of objects)
-
idstring required -
merchantKeystring required -
namestring required -
status"suggested" | "confirmed" | "dismissed" required -
state"active" | "changed" | "missed" | "stopped" required -
direction"in" | "out" required -
cadence"weekly" | "biweekly" | "monthly" | "quarterly" | "yearly" required -
pocketIdstring required -
categoryIdstring | null required -
assetstring required -
usualAmountstring required -
expectedobject | null required -
lastarray of object required -
priceChangeobject | null required -
missedarray of string (date) required -
occurrencesinteger required -
firstDatestring (date) required -
lastDatestring (date) required -
confidencenumber required -
yearlyCoststring required -
monthlyCoststring required -
monthlyBasestring | null required -
yearlyBasestring | null required -
stillPayingboolean required -
updatedAtstring (date-time) required
POST /recurring/confirm Confirm a suggested or dismissed recurring series recurring.confirm
/recurring/confirm Confirm a suggested or dismissed recurring series recurring.confirm Body (JSON)
-
bookIdstring required -
seriesIdstring required -
expectedStatus"suggested" | "confirmed" | "dismissed" required -
requestIdstring (uuid) required
Answer (200, JSON)
-
idstring required -
merchantKeystring required -
namestring required -
status"suggested" | "confirmed" | "dismissed" required -
state"active" | "changed" | "missed" | "stopped" required -
direction"in" | "out" required -
cadence"weekly" | "biweekly" | "monthly" | "quarterly" | "yearly" required -
pocketIdstring required -
categoryIdstring | null required -
assetstring required -
usualAmountstring required -
expectedobject | null required -
lastarray of object required -
priceChangeobject | null required -
missedarray of string (date) required -
occurrencesinteger required -
firstDatestring (date) required -
lastDatestring (date) required -
confidencenumber required -
yearlyCoststring required -
monthlyCoststring required -
monthlyBasestring | null required -
yearlyBasestring | null required -
stillPayingboolean required -
updatedAtstring (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
/recurring/dismiss Dismiss a recurring series and stop suggesting it again recurring.dismiss Body (JSON)
-
bookIdstring required -
seriesIdstring required -
expectedStatus"suggested" | "confirmed" | "dismissed" required -
requestIdstring (uuid) required
Answer (200, JSON)
-
idstring required -
merchantKeystring required -
namestring required -
status"suggested" | "confirmed" | "dismissed" required -
state"active" | "changed" | "missed" | "stopped" required -
direction"in" | "out" required -
cadence"weekly" | "biweekly" | "monthly" | "quarterly" | "yearly" required -
pocketIdstring required -
categoryIdstring | null required -
assetstring required -
usualAmountstring required -
expectedobject | null required -
lastarray of object required -
priceChangeobject | null required -
missedarray of string (date) required -
occurrencesinteger required -
firstDatestring (date) required -
lastDatestring (date) required -
confidencenumber required -
yearlyCoststring required -
monthlyCoststring required -
monthlyBasestring | null required -
yearlyBasestring | null required -
stillPayingboolean required -
updatedAtstring (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
/recurring/restore Undo a recurring series’ dismissal recurring.restore Body (JSON)
-
bookIdstring required -
seriesIdstring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
idstring required -
merchantKeystring required -
namestring required -
status"suggested" | "confirmed" | "dismissed" required -
state"active" | "changed" | "missed" | "stopped" required -
direction"in" | "out" required -
cadence"weekly" | "biweekly" | "monthly" | "quarterly" | "yearly" required -
pocketIdstring required -
categoryIdstring | null required -
assetstring required -
usualAmountstring required -
expectedobject | null required -
lastarray of object required -
priceChangeobject | null required -
missedarray of string (date) required -
occurrencesinteger required -
firstDatestring (date) required -
lastDatestring (date) required -
confidencenumber required -
yearlyCoststring required -
monthlyCoststring required -
monthlyBasestring | null required -
yearlyBasestring | null required -
stillPayingboolean required -
updatedAtstring (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
/recurring/update Edit, stop or resume a recurring series, confirming it recurring.update Body (JSON)
-
bookIdstring required -
seriesIdstring required -
expectedUpdatedAtstring (date-time) required -
requestIdstring (uuid) required -
namestring optional -
cadence"weekly" | "biweekly" | "monthly" | "quarterly" | "yearly" optional -
usualAmountstring optional -
categoryIdstring | null optional -
stoppedboolean optional
Answer (200, JSON)
-
idstring required -
merchantKeystring required -
namestring required -
status"suggested" | "confirmed" | "dismissed" required -
state"active" | "changed" | "missed" | "stopped" required -
direction"in" | "out" required -
cadence"weekly" | "biweekly" | "monthly" | "quarterly" | "yearly" required -
pocketIdstring required -
categoryIdstring | null required -
assetstring required -
usualAmountstring required -
expectedobject | null required -
lastarray of object required -
priceChangeobject | null required -
missedarray of string (date) required -
occurrencesinteger required -
firstDatestring (date) required -
lastDatestring (date) required -
confidencenumber required -
yearlyCoststring required -
monthlyCoststring required -
monthlyBasestring | null required -
yearlyBasestring | null required -
stillPayingboolean required -
updatedAtstring (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
/labelling/learned/list List what memory learned per merchant, most used first, a page at a time labelling.learned.list Parameters
-
bookIdstring query, required -
qstring query, optional -
keystring query, optional -
direction"in" | "out" query, optional -
cursorstring query, optional -
limitinteger query, optional
Answer (200, JSON)
-
entriesarray of object required -
nextstring | null required
GET /labelling/learned/taught Say what one change’s category choices taught memory, as it labels with now labelling.learned.taught
/labelling/learned/taught Say what one change’s category choices taught memory, as it labels with now labelling.learned.taught Parameters
-
bookIdstring query, required -
changeSetIdstring query, required
Answer (200, JSON)
-
entriesarray of object required
POST /labelling/learned/forget Forget what memory learned for a merchant, keeping or re-labelling its payments labelling.learned.forget
/labelling/learned/forget Forget what memory learned for a merchant, keeping or re-labelling its payments labelling.learned.forget Body (JSON)
-
bookIdstring required -
keystring required -
direction"in" | "out" required -
requestIdstring (uuid) required -
relabelboolean optional
Answer (200, JSON)
-
changeSetIdstring required -
keptinteger required -
relabelledinteger 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
/labelling/automation Get the share of recent transactions labelled that no person changed labelling.automation Parameters
-
bookIdstring query, required -
weeksnumber | string query, optional
Answer (200, JSON)
-
ratenumber | null required -
labelledinteger required -
totalinteger required -
firstMonthRatenumber | null required -
rulesLearnedThisWeekinteger required -
byHowobject required
GET /labelling/explain Explain why a transaction has its category labelling.explain
/labelling/explain Explain why a transaction has its category labelling.explain Parameters
-
bookIdstring query, required -
transactionIdstring query, required
Answer (200, JSON)
-
transactionIdstring required -
categoryIdstring | null required -
how"rule" | "memory" | "ai" | "manual" | "import" | "none" required -
confidencenumber required -
reasonobject required -
alternativesarray of object required -
needsReviewboolean required -
labelledAtstring (date-time) required -
transferSkippedobject optional -
cashWithdrawalobject optional -
likelyRightinteger optional -
sourcesobject optional
GET /labelling/similar Preview what applying a category to all similar transactions would change labelling.similar
/labelling/similar Preview what applying a category to all similar transactions would change labelling.similar Parameters
-
bookIdstring query, required -
transactionIdstring query, required -
categoryIdstring query, required
Answer (200, JSON)
-
countinteger required -
samplearray of object required -
learnobject required -
previewTokenstring required -
optionsarray of object required -
matchstring 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
/labelling/applyToSimilar Categorise a transaction and all similar ones, and learn it for future ones labelling.applyToSimilar Body (JSON)
-
bookIdstring required -
transactionIdstring required -
categoryIdstring required -
previewTokenstring required -
requestIdstring (uuid) required -
pastboolean optional
Answer (200, JSON)
-
changeSetIdstring required -
appliedinteger required -
learnedany 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
/labelling/settings/get Get whether AI labelling is on for the book, and what it did today labelling.settings.get Parameters
-
bookIdstring query, required
Answer (200, JSON)
-
aiLabellingobject required
GET /labelling/settings/accuracy Count how the book’s AI guesses fared over the last 30 days labelling.settings.accuracy
/labelling/settings/accuracy Count how the book’s AI guesses fared over the last 30 days labelling.settings.accuracy Parameters
-
bookIdstring query, required
Answer (200, JSON)
-
sincestring (date-time) required -
rowsarray of object required
POST /labelling/settings/update Turn AI labelling on (agreeing to the disclosure) or off for the book labelling.settings.update
/labelling/settings/update Turn AI labelling on (agreeing to the disclosure) or off for the book labelling.settings.update Body (JSON)
-
bookIdstring required -
aiLabellingboolean required -
requestIdstring (uuid) required -
disclosureVersionstring optional
Answer (200, JSON)
-
aiLabellingobject 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
/labelling/merchants/list List a book’s merchants, most payments first, searchable, a page at a time labelling.merchants.list Parameters
-
bookIdstring query, required -
qstring query, optional -
cursorstring query, optional -
limitinteger query, optional
Answer (200, JSON)
-
merchantsarray of object required -
nextCursorstring | null required
GET /labelling/merchants/get Get a merchant’s branches and the merchants that look like it labelling.merchants.get
/labelling/merchants/get Get a merchant’s branches and the merchants that look like it labelling.merchants.get Parameters
-
bookIdstring query, required -
keystring query, required
Answer (200, JSON)
-
branchesarray of object required -
lookAlikesarray of object required
GET /labelling/merchants/alike List groups of a book’s merchants that look like one shop labelling.merchants.alike
/labelling/merchants/alike List groups of a book’s merchants that look like one shop labelling.merchants.alike Parameters
-
bookIdstring query, required
Answer (200, JSON)
-
groupsarray of object required
POST /labelling/merchants/combine Combine merchants that are one place into one merchant labelling.merchants.combine
/labelling/merchants/combine Combine merchants that are one place into one merchant labelling.merchants.combine Body (JSON)
-
bookIdstring required -
keystring required -
othersarray of string required -
requestIdstring (uuid) required -
renameobject optional
Answer (200, JSON)
-
changeSetIdstring required -
keystring 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
/labelling/merchants/rename Give a merchant its own name labelling.merchants.rename Body (JSON)
-
bookIdstring required -
keystring required -
fromstring required -
namestring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
changeSetIdstring required -
keystring 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
/labelling/merchants/split Split one branch off a combined merchant labelling.merchants.split Body (JSON)
-
bookIdstring required -
keystring required -
branchstring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
changeSetIdstring 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
/labelling/merchants/dismiss Stop suggesting a merchant as a look-alike of another labelling.merchants.dismiss Body (JSON)
-
bookIdstring required -
keystring required -
othersarray of string required -
requestIdstring (uuid) required
Answer (200, JSON)
-
changeSetIdstring 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
/labelling/contactLinks/list List the payees remembered with a person, by key labelling.contactLinks.list Parameters
-
bookIdstring query, required
Answer (200, JSON list of objects)
-
keystring required -
contactIdstring required -
linkedAtstring (date-time) required
POST /labelling/contactLinks/remove Stop remembering a payee with a person labelling.contactLinks.remove
/labelling/contactLinks/remove Stop remembering a payee with a person labelling.contactLinks.remove Body (JSON)
-
bookIdstring required -
keystring required -
contactIdstring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
removedinteger 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
/checkin/preferences/get Get the caller’s own check-in and notification preferences checkin.preferences.get Parameters
-
bookIdstring query, required
Answer (200, JSON)
-
dayinteger required -
timestring required -
timeZonestring required -
quietFromstring required -
quietTostring required -
notifyobject required -
digestboolean required -
amountsOnLockScreenboolean required -
seenNotesarray of string required -
savedboolean required
POST /checkin/preferences/update Change the caller’s own check-in and notification preferences checkin.preferences.update
/checkin/preferences/update Change the caller’s own check-in and notification preferences checkin.preferences.update Body (JSON)
-
bookIdstring required -
dayinteger optional -
timestring optional -
timeZonestring optional -
quietFromstring optional -
quietTostring optional -
notifyobject optional -
digestboolean optional -
amountsOnLockScreenboolean optional
Answer (200, JSON)
-
dayinteger required -
timestring required -
timeZonestring required -
quietFromstring required -
quietTostring required -
notifyobject required -
digestboolean required -
amountsOnLockScreenboolean required -
seenNotesarray of string required -
savedboolean required
POST /checkin/state Get the caller’s check-in as it stands now, recording the visit checkin.state
/checkin/state Get the caller’s check-in as it stands now, recording the visit checkin.state Body (JSON)
-
bookIdstring required -
timeZonestring optional
Answer (200, JSON)
-
weekstring required -
daystring (date) required -
todaystring (date) required -
completedboolean required -
cairnShownboolean required -
lastVisitAtstring (date-time) | null required -
daysAwayinteger required -
timeZonestring required
POST /checkin/complete Mark the week’s check-in done checkin.complete
/checkin/complete Mark the week’s check-in done checkin.complete Body (JSON)
-
bookIdstring required -
weekstring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
weekstring required -
daystring (date) required -
todaystring (date) required -
completedboolean required -
cairnShownboolean required -
lastVisitAtstring (date-time) | null required -
daysAwayinteger required -
timeZonestring 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
/checkin/markCairnShown Record that the week’s cairn has settled, so it never settles again checkin.markCairnShown Body (JSON)
-
bookIdstring required -
weekstring required
Answer (200, JSON)
-
weekstring required -
daystring (date) required -
todaystring (date) required -
completedboolean required -
cairnShownboolean required -
lastVisitAtstring (date-time) | null required -
daysAwayinteger required -
timeZonestring required
GET /checkin/insight Get the week’s one insight, if something stands out checkin.insight
/checkin/insight Get the week’s one insight, if something stands out checkin.insight Parameters
-
bookIdstring query, required -
weekstring query, required
POST /checkin/insightFeedback Hide an insight for 90 days as not useful, or dismiss it for this check-in checkin.insightFeedback
/checkin/insightFeedback Hide an insight for 90 days as not useful, or dismiss it for this check-in checkin.insightFeedback Body (JSON)
-
bookIdstring required -
weekstring required -
keystring required -
verdict"not-useful" | "dismissed" required
Answer (200, JSON)
-
oktrue required
POST /checkin/noteSeen Record that the caller saw a first-time note, so it never shows again checkin.noteSeen
/checkin/noteSeen Record that the caller saw a first-time note, so it never shows again checkin.noteSeen Body (JSON)
-
bookIdstring required -
keystring required
Answer (200, JSON)
-
seenNotesarray of string required
GET /checkin/story Tell a week or a month in one sentence, every figure linked to its transactions checkin.story
/checkin/story Tell a week or a month in one sentence, every figure linked to its transactions checkin.story Parameters
-
bookIdstring query, required -
weekstring query, optional -
monthstring query, optional
Answer (200, JSON)
-
partsarray of string | object required -
enoughHistoryboolean required
GET /checkin/toCount List the by-hand pockets whose balance the week’s check-in asks to count again checkin.toCount
/checkin/toCount List the by-hand pockets whose balance the week’s check-in asks to count again checkin.toCount Parameters
-
bookIdstring query, required -
weekstring query, required
Answer (200, JSON)
-
pocketsarray of object required
POST /checkin/countLater Stop asking to count a by-hand pocket until next week’s check-in checkin.countLater
/checkin/countLater Stop asking to count a by-hand pocket until next week’s check-in checkin.countLater Body (JSON)
-
bookIdstring required -
weekstring required -
pocketIdstring required
Answer (200, JSON)
-
oktrue required
GET /checkin/month Get whether the caller closed a month checkin.month
/checkin/month Get whether the caller closed a month checkin.month Parameters
-
bookIdstring query, required -
monthstring query, required
Answer (200, JSON)
-
monthstring required -
closedAtstring (date-time) | null required
POST /checkin/closeMonth Close a month that is over, once checkin.closeMonth
/checkin/closeMonth Close a month that is over, once checkin.closeMonth Body (JSON)
-
bookIdstring required -
monthstring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
monthstring required -
closedAtstring (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
/exports/start Start an export of every book you can read, or get the one under way exports.start Answer (200, JSON)
-
idstring required -
status"queued" | "building" | "ready" | "failed" | "expired" required -
booksinteger required -
partsarray of object required -
failure"TOO_LARGE" | "FAILED" | null required -
createdAtstring (date-time) required -
readyAtstring (date-time) | null required -
expiresAtstring (date-time) | null required
Refusals
- 503: EXPORTS_UNAVAILABLE
GET /exports/latest Get your newest export and where it is exports.latest
/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
/exports/download Download one zip part of your export, decrypted exports.download Parameters
-
exportIdstring query, required -
partinteger 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
/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
/account/deletion/schedule Schedule your account’s deletion in 30 days and end every agent’s access account.deletion.schedule Body (JSON)
-
requestIdstring (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
/account/deletion/cancel Keep your account: call off its scheduled deletion account.deletion.cancel Body (JSON)
-
requestIdstring (uuid) required
Refusals
- 409: DELETION_STARTED, REQUEST_REUSED, REQUEST_IN_PROGRESS, REQUEST_APPLIED
POST /account/profile/rename Change your name account.profile.rename
/account/profile/rename Change your name account.profile.rename Body (JSON)
-
namestring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
namestring 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
/account/email/confirm Confirm a new email with the link sent to it account.email.confirm Body (JSON)
-
tokenstring required -
requestIdstring (uuid) required
Answer (200, JSON)
-
emailstring 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
/account/email/change Ask to change your email: a link to confirm it goes to the new address account.email.change Body (JSON)
-
emailstring (email) required -
requestIdstring (uuid) required
Answer (200, JSON)
-
pendingEmailstring 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
/billing/status Get your household’s plan, its subscription and the prices billing.status Answer (200, JSON)
-
plan"free" | "plus" | "pro" | "owner" required -
subscriptionobject | null required -
appAccountTokenstring (uuid) required -
canManageboolean required -
offersarray of object | null required
POST /billing/checkout Start a checkout for a plan billing.checkout
/billing/checkout Start a checkout for a plan billing.checkout Body (JSON)
-
priceIdstring required
Answer (200, JSON)
-
transactionIdstring required -
clientTokenstring 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
/billing/portal Open the page to manage your subscription: card, invoices, cancel billing.portal Answer (200, JSON)
-
urlstring (uri) required
Refusals
- 409: NO_SUBSCRIPTION
- 503: BILLING_UNAVAILABLE
POST /billing/apple Record a plan bought in the App Store billing.apple
/billing/apple Record a plan bought in the App Store billing.apple Body (JSON)
-
signedTransactionstring required
Answer (200, JSON)
-
plan"free" | "plus" | "pro" | "owner" required -
subscriptionobject | null required -
appAccountTokenstring (uuid) required -
canManageboolean required -
offersarray 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