docs
/
AppEngine API

Overview

AppMint Banking — a full bank sold as API services. The three tiers, who may call what, setting up the bank, maker-checker approvals, and how the rest of the platform is kept away from bank records.

AppMint Banking is a bank run entirely through the API: deposit accounts, a double-entry ledger, payments, cards, disputes, tellers and cash, lending, monitoring and regulatory reporting. It is its own vertical with its own banking_* records and its own banking setting.

This is not BusinessMade's bank linking. BusinessMade connects a business's own bank accounts through Plaid and reconciles them against its books, using the bank_* records under /business-made/bank — see Bank linking. The two never share records or code.

The bank's staff work in the Banking staff app, which calls these routes; its screens are documented in Banking staff app.

The three tiers

TierRoutesWho calls it
Admin/banking/*The bank operator: a signed-in staff person, or an org API key
Monitoring/banking/monitoring/*Risk and compliance staff
Client/client/banking/*The bank's customers, each seeing only their own records

Every request carries the orgid header, as everywhere in AppEngine. Money is whole cents and rates are basis points throughout: 1250 is $12.50. A route that takes an amount refuses anything else with Send amount in cents, as a whole number (1250 = $12.50).

Auth labels on these pages:

  • staff — a person signed in to the business, or an org API key whose scopes cover the call. The site's app token and customers are refused. After staff comes the part of the bank the caller's role must open (see Staff access), e.g. staff · payments.
  • client — the signed-in customer and nobody else. Customers sign in through the ordinary customer routes (/profile/customer/*). A staff or app session gets 401 Sign in to your bank account. Another customer's record answers 404, and the bank's side of a record (monitoring's review, holds and files behind a payment, staff notes) is never in the answer.

Errors are a JSON body with a message written for the person reading it: 400 unless another status fits, such as 404 … not found. or 409 for a conflict. Some add a code. A posting that may already have reached the ledger answers 503 with code: POSTING_RECOVERY_REQUIRED and the transaction: This bank posting needs recovery. Check the existing transaction with the bank before sending a replacement. A payment answers PAYMENT_RECOVERY_REQUIRED and a loan posting LOAN_EFFECT_RECOVERY_REQUIRED the same way. Never send a replacement: read the existing transaction, or retry with the same idempotency key.

The pages

Staff access

Every staff route names the part of the bank it belongs to — a module path such as /banking/payments. A route's own module replaces its controller's; some routes accept any of several (a hold can be released from Accounts, Deposit operations, the teller line or the Customer 360).

Who may open a module:

  • Owner, ConfigAdmin and the root roles open everything.
  • Anyone else needs a role — their own, or one carried by a group they belong to — whose saved menu (permissions.menuInclude) names the module path, a path above it (/banking), or all.
  • A person none of whose roles has a saved menu is let in, with one exception: KYC, Monitoring, Cash reporting and Sanctions always need the grant. SAR confidentiality is law (31 CFR 1020.320(e)), so these modules, their counts, their home clocks and their search hits never reach someone whose role does not name them.
  • API keys are not judged by module: the key's own scopes decide.

A refusal is a 403:

{ "message": "Your role does not include this part of the bank. Ask an admin to add it to your role.", "code": "BANKING_AREA_FORBIDDEN", "area": "/banking/payments" }

The decision is cached for up to 15 seconds per person and dropped when any user, group or role in the org is saved.

Conflicts on the compliance desks. Inside KYC, Monitoring and Sanctions, a reviewer is also kept away from records about themselves or anyone linked to them, whatever their role: their own customer records (same email), the accounts those customers hold or are named on, and the other people on those accounts. Such records are left out of lists, and opening one by id answers 403 with code: BANKING_CONFLICT: You can't open this record: it concerns you or someone linked to you. Another reviewer must work it. See Monitoring, compliance and reporting.

The modules are customers, accounts, teller, vault, loans, collections, payments, cards, disputes, deposit-ops, kyc, monitoring, cash-reporting, sanctions, ledger, products, reports, regulatory, crm, complaints, documents, workspace, esign, dashboards, approvals, users, roles, workflow, automations, audit, jobs, settings and forms, each at /banking/<module>.

The bank's roles

GET/banking/setup/rolesSTAFF
POST/banking/setup/rolesSTAFF

GET returns the role catalogue: for each role its name, title, modules, the menuInclude paths they become, readOnly, and exists (a role record of that name is already in the org). POST creates the missing ones as ordinary role records — content read, create, update and their module menu (the Auditor gets read and view only) — and answers { created, skipped }. Roles that already exist by name are left as they are.

RoleOpens
Tellerteller, customers, documents, approvals, workspace
HeadTellervault, teller, reports, customers, approvals, workspace
BranchManagercustomers, accounts, teller, vault, loans, reports, complaints, documents, approvals, workspace
PersonalBankercustomers, accounts, loans, documents, crm, esign, approvals, workspace
CallCentercustomers, accounts, disputes, cards, complaints, approvals, workspace
LoanOfficerloans, customers, collections, documents, esign, approvals, workspace
Underwriterloans, customers, reports, approvals, workspace
LoanProcessorloans, documents, esign, approvals, workspace
LoanServicerloans, customers, documents, reports, approvals, workspace
Collectorcollections, loans, customers, approvals, workspace
DepositOpsdeposit-ops, accounts, customers, documents, reports, approvals, workspace
PaymentsOpspayments, customers, approvals, workspace
CardOpscards, disputes, customers, approvals, workspace
DisputeAnalystdisputes, customers, cards, approvals, workspace
KYCAnalystkyc, sanctions, customers, approvals, workspace
AMLAnalystmonitoring, cash-reporting, sanctions, customers, approvals, workspace
BSAOfficermonitoring, cash-reporting, sanctions, kyc, customers, complaints, reports, regulatory, approvals, workspace
ComplianceOfficercomplaints, reports, documents, audit, products, regulatory, approvals, workspace
Controllerledger, reports, products, approvals, workspace
Auditorevery module except settings, users and roles — read only

Setting up the bank

GET/banking/configSTAFF
POST/banking/configSTAFF
GET/banking/setupSTAFF
GET/banking/overviewSTAFF

Banking Config is the banking bucket on the org's settings. GET /banking/config returns it with defaults filled in. POST /banking/config saves only the fields sent: top-level fields are replaced, and each section (ach, wire, cash, regcc, lending, collections, callReport, escheat, customerVerification) is merged one level down, so saving one figure keeps the rest. Each approval rule is merged over its own default.

FieldDefaultWhat it is
bankName—The name customers see
sponsorBank—The bank that holds the deposits
routingNumber—Checked as a real 9-digit routing number
accountNumberPrefix—Start of new account numbers
timezoneAmerica/New_YorkThe bank's day: business date, cutoffs and end of day
achcutoffs 10:30, 14:30, 17:30; incomingHoldDays 0originatorId and originatorName (the ACH company from the sponsor bank), cutoffs, hold days on incoming ACH
wire.cutoff17:00
checkHoldDays2
dormantAfterDays365
disputeDecideDays, disputeResolveDays10, 45Reg E clocks
approvalssee ApprovalsMaker-checker rule per action
cash, regcc, lending, collectionsthe SDK's BANKING_*_DEFAULTSCash limits and CTR figures, Reg CC, lending and collections figures — see the pages that use them
callReport.formnullFFIEC 031, FFIEC 041 or FFIEC 051
escheat.rules[]Reviewed unclaimed-property rules per jurisdiction
customerVerification.moneyoffoff or authenticator: whether customers confirm money movement with an authenticator code
autopaynullThe reviewed loan autopay authorization policy

Saving refuses, with the reason in words: a routing number that fails the check digit (… is not a valid routing number. Check the 9 digits the sponsor bank gave you.), a time zone that is not a real zone name, a call report form outside the three, an unknown approval action, approver roles that are not a list of names, an over that is not whole cents. Escheat rules and the autopay policy must each be attested reviewed: true by a signed-in person, who is recorded as reviewedBy with reviewedAt. Changing timezone moves the end-of-day jobs to the new zone.

GET /banking/setup makes the bank's own books on its first call and answers { ready, gaps }: what is still missing before accounts can open — the bank name, the sponsor bank, the routing number, the ACH company ID and name, and at least one active account product.

GET /banking/overview is the bank at a glance: customer accounts by status (pending, open, frozen, dormant, closed), deposits (posted, held), what is waiting (pendingPayments, inReview, achFilesToSend, cardsToMake, openDisputes) and the same setupGaps.

Two scheduled jobs run for every org that banks: end of day (lapsed holds, the day's interest, statement-day fees, interest and statements, dormancy, maturing certificates) in the bank's time zone, and the ACH cutoff job every 15 minutes, which cuts the ACH file once a configured cutoff has passed. A re-run never repeats an effect: interest accrues once per day, fees and interest payments carry a key per period, and a statement exists once per period.

Staff home, search and Customer 360

GET/banking/homeSTAFF
GET/banking/launcher/:moduleSTAFF
GET/banking/search?q=STAFF
GET/banking/customers/:id/360STAFF

home gives the business date and time zone, the end-of-day state, whether the ledger balances (ledgerBalanced, with a ledgerNote when some days could not be counted), the next ACH cutoff, files sent today, and the regulatory clocks for the modules this person may open: Reg E claims due within 2 business days, SARs due within 7 days, CTRs unfiled for 10 days or more, adverse action notices due, 314(a) requests due within 3 days, OFAC reports due within 3 business days, and the clocks other modules add. Each clock has count and dueSoon. A part that cannot be read is null and named in unavailable — never shown as 0.

launcher/:module is one tile's live badge, { badge, tone, kpis? } with tone one of neutral, warn, danger, ok. An unknown module is 404; one the caller can't open is the 403 above.

search needs at least 2 characters and returns up to 10 each of customers, accounts, cards and transactions. Every typed word must appear somewhere in a customer's name, email, username or company; 4 or more digits also match phone numbers and account numbers (the last digits, or anywhere for 8 or more); exactly 4 digits match a card's last four; a reference, ACH trace number or wire IMAD finds a transaction. Account numbers come back masked (••••1234). Unless the caller may open Monitoring, a transaction monitoring holds reads as pending and its review is left out.

Customer 360 takes a customer's id or email and returns customer (name, contact, individual or business, customer since), flags, kyc, relationships (co-holders on each account), accounts, loans, applications, cards, recentTransactions, pendingPayments, disputes (each with its Reg E clock), pendingApprovals and totals. Money in different currencies is never added together: totals carries one sum per currency, USD first. What is shown depends on the caller's modules:

  • KYC risk level, next review date and PEP status only with KYC or Monitoring.
  • A sanctions-hits flag only with Sanctions.
  • An aml block (open alerts, cases, filed SARs) only with Monitoring.
  • Pending approvals of a compliance module the caller can't open are left out.

Approvals

Protected actions are maker-checker: one person asks, a second person approves, and only then does the bank act.

GET/banking/approvalsSTAFF
GET/banking/approvals/:idSTAFF
POST/banking/approvals/:id/cancelSTAFF

How a request runs

A route that does a protected action answers in one of two ways:

{ "status": "done", "result": { } }
{ "status": "pending", "approvalId": "…", "approvers": ["…"] }

done means no approval was needed and the action ran. pending means a banking_approval record now keeps the action with everything it needs (params), and a task on the banking-approval workflow sits in the approvers' trays. Nothing changes until it is approved. Approvers decide in the platform Approvals tray; the decision runs the action and keeps its outcome on the record (status done with result, or failed with error), and the maker is notified.

Whether an action waits is set per action in Banking Config approvals:

FieldMeaning
requiredTurns the check on
rolesWho may approve (the maker never can)
overCents: amounts at or under it run at once
levelsFurther levels after the first, each { roles, over?, name? }; at most three levels in all

A level with no over always applies; one with an amount applies only above it. The levels' stages on the workflow are Waiting on approver, Second approval and Third approval. When nobody but the maker holds the first level's roles, it falls back to the org's Owners and ConfigAdmins (not for customer_authenticator or loan_autopay).

Some actions decide for themselves that they don't need a second person: lowering a card limit or switching a channel, lifting a freeze (as opposed to reactivating a dormant account). These run at once.

The actions and their defaults

ActionWhat it isDefault approversRuns at once at or under
adjustmentCredit or debit a customer account by handDepositOps, BranchManager, Controller, Owner
fee_waiverRefund a posted feeBranchManager, DepositOps, Owner$25.00
holder_changeAdd, change or remove an account holderBranchManager, DepositOps, Owner
wire_releaseRelease a pending outgoing wire or instant paymentPaymentsOps, BranchManager, Owner
limit_changeRaise or remove a card limitBranchManager, DepositOps, CardOps, Owner
product_changeChange a product, including making it activeComplianceOfficer, Controller, Owner
journal_entryA manual journal entryController, Owner
rule_changeChange a monitoring ruleBSAOfficer, Owner
sar_decisionRecord a SAR filing or close a caseBSAOfficer, Owner
risk_ratingChange a customer's risk ratingBSAOfficer, ComplianceOfficer, Owner
check_stopStop payment on a checkHeadTeller, BranchManager, Owner
customer_authenticatorTrust a customer's authenticatorOwner, BSAOfficer (fixed)always waits
loan_autopayTurn on a loan autopayOwner, BranchManager (fixed)always waits
ctr_exemptionGrant a CTR exemptionBSAOfficer, Owner
teller_overrideA teller overrideHeadTeller, BranchManager, Owner
loan_decisionDecide a loan applicationUnderwriter, BranchManager, Owner
loan_bookingBook a loanLoanProcessor, Underwriter, BranchManager, Owner
loan_disbursementDisburse a loanLoanProcessor, BranchManager, Owner$25,000.00
loan_fee_waiverWaive a loan feeLoanServicer, BranchManager, Owner$25.00
loan_modificationModify a loanUnderwriter, BranchManager, Owner
charge_offCharge off a loanController, BranchManager, Owner
dormancy_resetReactivate a dormant accountDepositOps, BranchManager, Owner
hold_waiverRelease a hold earlyHeadTeller, BranchManager, DepositOps, Owner$25.00

customer_authenticator and loan_autopay always wait for a second person, whatever Banking Config says. Their approver roles are fixed: saving a different rule for them is refused (Customer authenticator trust requires independent Owner/BSAOfficer approval without an amount threshold. and Reviewed autopay activation requires independent Owner/BranchManager approval without an amount threshold.).

Who may approve

  • Never the maker: You cannot approve your own request (403, reason: own-request). The maker declining their own request withdraws it.
  • Never someone excluded — for a wire, whoever started it: You started this, so someone else must approve it. (reason: excluded).
  • A different person at each level: You approved an earlier level, so someone else must approve this one. (reason: earlier-level).
  • A request already decided answers 409 This was already ….

A task moved on a workflow board instead of the tray follows the same rules. A move that skips a level, or that nobody but the maker made, cancels the request: It was moved past a level nobody approved. Ask again. or It was moved on without a second person approving it. Ask again.

A request is refused (409) when nobody else could approve it — Nobody else can approve this — add an approver role. or Nobody can approve level 2 (…) — give someone its role (…). — and, with the request marked cancelled, when the banking-approval workflow is turned off: Approvals are turned off: turn on the "Banking approval" workflow in Workflows, then ask again. The same product change asked again by the same person while one is waiting returns the waiting request instead of a second one.

Listing and withdrawing

GET /banking/approvals takes view — waiting (waiting on me), mine (I asked), pending (everything waiting, the default) or history (done, failed, rejected, cancelled) — plus action, status, about (the record's id), page and pageSize. Each row adds approverNames, waitingOnMe, mine and the action's label.

Approvals that belong to a compliance module — sar_decision and rule_change (Monitoring), risk_rating and customer_authenticator (KYC), ctr_exemption (Cash reporting), loan_autopay (Loans) — are left out of every list for someone who can't open that module, and reading one by id answers 404.

POST /banking/approvals/:id/cancel with { reason? } withdraws a request nobody has decided. Only the person who asked may: Only the person who asked can withdraw it. (403).

Bank records outside the Banking API

Bank records change only through the Banking routes — money moves through the ledger, with its approvals. The rest of the platform is kept away from them.

Protected records. Every banking_* datatype, plus customer_kyc, user_security and two_factor_backup. Protected files are any path with a banking, client-account, signed-documents or form-signatures folder in it.

Generic repository and forms

On the generic /repository/* routes:

CallerReadWrite
Customer, site app tokenRefused: Use the bank account API for banking records. (403)Refused, the same
Staff, org API keyAllowed, maskedRefused: Bank records change only through the Banking screens and API: money moves through the ledger, with its approvals. (403)
  • Customers and app tokens are refused whatever names a bank record: the datatype, a collection header, a lookup target, a collection's schema by name, the banking setting, or a protected file path. A response that would carry bank records is refused too. Customer documents go through the customer file upload API, not a generic multipart upload.
  • Staff may read bank records on the read routes (get, find, search, query, aggregate and the like) and get them masked, as below. Every other route that names a bank record is a write and is refused. That covers create, update, delete, move, import and restoring a bank record from trash.
  • A query that would read a full number another way — filtering on an account number, tax id or posting field, or using $objectToArray, $function, $accumulator or $where — is refused: Full account numbers and tax ids are not read through generic queries. Use Show number on the account, which is logged.
  • Forms. A form bound to a banking collection is not a way to write bank records, for anyone.

The masked view is what the Banking module itself shows:

  • Account, card and document numbers and tax ids (accountNumber, iban, ein, taxId, tin, documentNumber, cardNumber, pan) appear as their last four: ••••1234, an EIN as ••-•••1234, or On file when no last four can be shown.
  • The bank's own books keep their GL-… numbers.
  • The ledger's internal bookkeeping (appliedKeys, postingReceipts, holdEffects, initialHeldCredits, checkStops) is removed.
  • Stored records are never changed by masking.

The AI agent and MCP

The in-app AI agent, its tools and MCP call_service follow the same line:

  • Customers and public app identities can't reach bank records through generic tools at all. The tool answers BANKING_GENERIC_FORBIDDEN: Use the customer banking API. Generic tools cannot read or change bank records for customers or public app identities.
  • Staff may read bank records through the read tools (repo_find, repo_find_one, find_records, get_record, aggregate) and through service methods whose names read (find…, get…, search…, list…, count… and the like). Anything else that names a bank record answers BANKING_GENERIC_WRITE_FORBIDDEN. A read that would get at a full number answers BANKING_NUMBER_NOT_SHOWN. Both tell the model to send the person to Banking.
  • Every tool result that carries bank records reaches the model in the masked view above.
  • Service calls. A direct service call is refused with the same messages (403). A form service call into a form bound to a bank collection is refused: Banking records cannot be written or read through a generic form service call.

Automations

Automation steps that create, update, delete or move records cannot write bank records. That holds whether the step names the banking collection or uses a placeholder that resolves to the bank record that started the run. The run fails with Banking records change only through the Banking module; an automation cannot write them. See Automation.

Datatypes

DatatypeWhat it is
banking_productAn account product: interest, fees, overdraft, limits
banking_accountA deposit or loan account, or one of the bank's own books (holderType: bank, numbered GL-…)
banking_entryOne ledger line; every posted transaction writes two or more and debits equal credits
banking_transactionOne movement of money: transfer, ACH, wire, card purchase, fee, interest
banking_holdMoney kept back on an account
banking_statementAn account's statement for one period
banking_fileA file handed to the sponsor bank (an ACH/NACHA file)
banking_counterpartyAn account at another bank a customer sends to or pulls from
banking_cardA debit card (the processor keeps the number; the bank keeps a token and the last four)
banking_disputeA customer saying a transaction is wrong
banking_money_requestA request for money between members
banking_approvalA maker-checker request
banking_teller_session, banking_drawer, banking_instrument_saleA teller's day on a till; a till or vault; an official check or money order sold
banking_ctr, banking_ctr_exemptionCurrency transaction reports and exemptions
banking_loan_product, banking_loan_application, banking_loan, banking_collection_activityLending and collections
banking_rule, banking_alert, banking_case, banking_screening, banking_314a_requestMonitoring, sanctions and 314(a)

The models are in the SDK under models/banking. Customers are ordinary CRM customer records; their identity check is customer_kyc.