Treasury accounts

A bank, cash, card, credit, or loan account with its own currency and balance.

Fields

The API name is what the API, MCP and the CLI use.

NameAPI nameTypeRequiredDescription
IDidRecord IDYes
NamelabelTextYes
CodecodeTextYesInternal code. This is not the bank account number.
Ledger accountaccountingledgeraccountIdReference
Quote currencycurrencyConstantYesCurrency of this account. Cannot change after create.
TypekindConstantYesAccount type. Bank, cash, wallet, and payment processor hold funds. Credit card, credit line, and term loan are amounts owed.
Account numberaccountNumberTextAccount number assigned by the institution when applicable. Optional for Mexican bank accounts when CLABE alone is used.
Bank identifier typebankIdentifierSchemeConstantFixed option from the allowed set for this field.
Bank identifierbankIdentifierText
IBANibanTextInternational bank account identifier when applicable. Not used on Mexican bank accounts.
Last four digitscardLast4TextLast four digits of the card. Do not store the full card number.
Start datedateStartDateCredit line effective date or start of the loan term.
End datedateEndDateOptional credit line expiration; required term loan maturity. When both dates are set, the end date must be on or after the start date.
Nominal annual rateinterestRatePercentNominal annual reference rate on credit card, credit line, or loan. Does not post charges by itself.
Loan principalamountPrincipalCurrencyOriginal loan amount in account currency. The installment schedule must add up to this amount.
Effective annual rateeffectiveRatePercentAnnual rate with monthly compounding. This is not CAT.
Credit limitcreditLimitCurrencyContract limit in account currency. Required on credit card and credit line.
BalancebalanceSigned amountYesBalance in the account currency. On a credit card, credit line, or loan, a negative balance is the amount owed.
Available creditcreditAvailableSigned amountCredit limit minus the amount owed. It does not go below zero.
TagstagIdsTags
DatadataData
Created bycreatedByUser
Created atcreatedAtDate and TimeYes
Updated byupdatedByUser
Updated atupdatedAtDate and TimeYes
Published bypublishedByUser
Published atpublishedAtDate and Time
Disabled bydisabledByUser
Disabled atdisabledAtDate and Time
Blocked byblockedByUser
Blocked atblockedAtDate and Time
Archived byarchivedByUser
Archived atarchivedAtDate and Time

Relations

Owned records (solid line) are deleted with their owner. Grouped records (dashed line) can exist alone.

Treasury accountsLoan installments
FieldPoints toKind
Ledger account accountingledgeraccountIdChart of accountsreference
Tags tagIdsTagsreference

Actions

What you can do with a record. Every action also sends the webhook event treasuryaccounts.<action>. Reads (find, get, count) work on every table.

NameAPI nameDescriptionWhere
CreatecreateAdd a new treasury account.App · WebMCP · API · MCP · CLI
EditupdateSave changes to this treasury account.App · WebMCP · API · MCP · CLI
DisabledisableTurn this treasury account off for new use. Existing references stay. Enable it again to use it.App · WebMCP · API · MCP · CLI
EnableundisableTurn this treasury account back on for new use.App · WebMCP · API · MCP · CLI
PublishpublishMake this treasury account available for use.App · WebMCP · API · MCP · CLI
BlockblockStop edits and deletion of this treasury account. It stays visible and can still appear on existing documents. Unblock to edit again.App · WebMCP · API · MCP · CLI
UnblockunblockAllow edits and deletion of this treasury account again.App · WebMCP · API · MCP · CLI
ArchivearchiveRetire this treasury account from daily use. It leaves active lists and pickers, and most actions stop. Unarchive to restore it.App · WebMCP · API · MCP · CLI
RestoreunarchiveReturn this treasury account to active lists and actions.App · WebMCP · API · MCP · CLI
DeletedeleteDelete this treasury account and the data that belongs with it. This cannot be undone.App · WebMCP · API · MCP · CLI

States

How a record moves from state to state. Archive and block can happen in any state.

PublishCreatedPublished