Three staff controllers cover cash in a branch: the teller window (/banking/teller/*), branch cash (/banking/vault/*), and cash reporting (/banking/cash-reporting/*). They are all staff routes: a signed-in staff person, or an org API key whose scopes cover the call. A person also needs a role that opens the area named after staff ·. Cash reporting is a compliance area, so it always needs the grant, even for someone whose roles have no saved menu. See Staff access.
Money and notes. Amounts are whole cents. Cash is counted by denomination: a count is an object of note counts { n100, n50, n20, n10, n5, n2, n1 } plus coin in cents. Each count must be a whole number, 0 or more. A drawer's notes and its ledger book move in the same step.
Datatypes: banking_drawer, banking_teller_session, banking_instrument_sale, banking_ctr, banking_ctr_exemption. Window postings are banking_transaction records with a cash block (business date, branch, drawer, session, cash in/out, cash type, denominations, the people the cash counts for).
Drawers and stock
/banking/vault/overviewSTAFF/banking/vault/drawersSTAFF/banking/vault/drawersSTAFF/banking/vault/drawers/:idSTAFF/banking/vault/drawers/:id/stockSTAFF/banking/vault/drawers/:id/countSTAFFA drawer is a till or a vault at a branch, which is a platform location. POST vault/drawers takes { title, kind: till|vault, location, assignee? (email), limits? { minimum, maximum } }. The server gives each drawer its own cash book. That book is an internal bank account with system code teller_cash or vault_cash, in USD. A drawer starts available, becomes in_use while a session is open on it, and ends retired.
PATCH vault/drawers/:id takes { title?, assignee? (null clears), limits?, retire? }:
- You can't reassign a drawer while it is in use. The teller balances and closes it first.
- You can retire a drawer only when no session is open on it and its book balance is 0.
- A body that changes nothing is refused.
Limits are whole cents, and minimum must not be more than maximum. When a drawer has no limits of its own, it uses Banking Config cash.drawerMinimum and cash.drawerMaximum. A till above its maximum shows the prompt sell; a till below its minimum shows buy.
A drawer's view gives denominations, total, bookBalance and balanced (true when the notes equal the book), plus its limits, its open session, its instrument stock, lastCountedAt and lastBalancedAt. GET vault/drawers takes location, kind, status, assignee, q, page and pageSize (default 50). Retired drawers are left out unless you ask for status=retired.
Stock. POST vault/drawers/:id/stock loads blank official checks or money orders as a serial range: { kind: cashiers_check|teller_check|bank_draft|money_order, prefix?, from, to }. A range that overlaps stock already in any drawer is refused with 409. Each instrument sale takes the next serial once, as an atomic step. When a till runs out of a kind, the sale is refused.
Vault count. POST vault/drawers/:id/count takes { counted, note? } and counts a vault only. Tills are counted when their session balances. The answer is { status, counted, expected, difference }. If the difference is within cash.overShortTolerance, it posts to cash over/short and the vault's notes become the count. A bigger difference waits for a supervisor: the answer is { status: 'pending', approvalId }.
Overview. GET vault/overview?location= returns the branches that have drawers, then for the chosen branch (the first one by default):
- its drawers by denomination;
- open and balancing sessions, with
staleset when a session's business date is before today; - cash waiting to move;
- today's over and short;
- an end-of-day checklist.
The checklist covers seven points:
- every till is balanced and closed;
- each vault was counted today and balanced;
- no cash is waiting to move;
- no teller override is waiting;
- today's CTRs are identified;
- over/short has been reviewed;
- check items have been sent to the sponsor bank.
Sessions and balancing
/banking/teller/meSTAFF/banking/teller/sessionsSTAFF/banking/teller/sessions/:id/balanceSTAFF/banking/vault/sessionsSTAFFGET teller/me is the window's start screen. It returns:
- the business date and the bank's time zone;
- the teller's open session, or the tills assigned to them that they may open;
- cash waiting for them;
- overrides they asked for that are still pending;
- the limits (
cashOut,ctrThreshold,milMin,milMax,overShortTolerance), the fees (checkCashing,officialCheck,moneyOrder) and the check item classes.
Opening. POST teller/sessions takes { drawer, counted, note? }. It is refused when:
- the drawer is not a till (400: a vault is worked from Branch cash);
- the till is not assigned to the caller (403);
- the till is not
available(409); - the caller already has a session open or balancing (409).
The opening count is checked against the till's book. If the difference is past cash.overShortTolerance, the opening waits for a supervisor ({ status: 'pending', approvalId, counted, expected, difference }). A retry while that request is pending returns the same pending request; it never opens a second session. Within the tolerance, any difference posts to cash over/short and the session opens.
Balancing is a blind count. POST teller/sessions/:id/balance takes { counted, note? }. Only the teller who opened the session can balance it. While the session is open, the session view never shows what the system expects. The expected figure and the difference come back only once the count is in: { status, counted, expected, difference, session }.
- Balancing is refused while cash is still waiting to move in or out of the till.
- Within the tolerance, the difference posts to cash over/short, the session closes, and the till goes back to
availablewith the count as its notes. - Past the tolerance, the session goes to
balancingand a head teller signs off through an override. If the teller counts again, only the newer count can be signed off.
GET vault/sessions lists sessions for vault staff. It takes location, status: open|balancing|closed|all, date, page and pageSize. A session's difference stays empty while it is open.
The customer at the window
/banking/teller/customers/:idSTAFF/banking/teller/accounts/lookupSTAFFteller/customers/:id takes a customer id or email. It returns the customer's accounts that are not closed, each with:
- the masked number and last 4;
- posted, available and held balances;
- the customer's role on the account;
- a CTR exemption if one is in force.
It also returns open loans, and today: the person's cash in and out bank-wide (ATM cash included) and the cash they spent today on official checks and money orders, against threshold.
The status a teller sees is neutral: it never gives the reason an account is restricted. It is one of:
Open;Restricted, orRestricted — no withdrawals;Restricted — see a supervisor(frozen);Dormant — needs reactivation;Not open yet;Closed.
teller/accounts/lookup?number= finds an account by its full number, 4 to 20 digits. Use it for a check drawn on this bank, or a deposit into someone else's account. It returns the masked number, a holder name to confirm (a business's legal name, or the primary holder's first name and last initial) and the neutral status. The bank's own accounts are never returned.
Quote, then post
/banking/teller/quoteSTAFF/banking/teller/transactionsSTAFF/banking/teller/transactions/:id/receiptSTAFF/banking/teller/journalSTAFF/banking/teller/overrides/:idSTAFFteller/quote takes the same body as teller/transactions and posts nothing. It returns what the transaction needs:
amount,cashIn,cashOutandfee;- the proposed notes to pay out (
denominations); - the overrides it needs;
ctr:{ required, persons, missing, banner, prefill };availabilityfor a check deposit: the holds, the notice and the exceptions;blockedwhen the Monetary Instrument Log or an ID is still needed.
A transfer quote runs the same checks the transfer runs on post, so a refusal shows before posting. Both routes need the caller's open session. While the session is balancing, they answer 409.
POST teller/transactions takes { kind, customer? (the conductor), identity? (a walk-in), ctr? { conductor }, memo?, idempotencyKey? } plus the fields for each kind:
kind | Body | What it does |
|---|---|---|
cash_deposit | account, denominations | The till's book is debited and the account credited. If amount is also sent, it must match the notes counted. |
cash_withdrawal | account, amount, denominations? | Paid only to a holder or authorized user of the account (403 otherwise). Without notes, the server makes change from what the till holds. |
check_deposit | account, items[], exception?, waive?, cashBack? | Each item is { amount, itemClass, checkNumber?, drawnOn?, redeposit? }. Up to 50 checks in one deposit. |
check_cashing | amount, drawnOn, checkNumber?, denominations? | One check at a time, and only a check drawn on this bank. |
transfer | from, to, amount | A book transfer through the payments service. The conductor must be a holder of from. |
loan_payment | loan, paidWith: cash|account, denominations | account + amount | Applied through the lending service's payment rules. |
instrument_sale | instrumentKind, amount, payee, paidWith: cash|account|mixed, cashAmount?, account?, denominations, purchaser? | Issues a cashier's check, teller's check, bank draft or money order from the till's stock. |
The answer is one of:
{ status: 'posted', receipt };{ status: 'pending', approvalId, reasons }when a supervisor must approve it;- 422
{ code: 'CTR_REQUIRED' | 'MIL_REQUIRED' | 'ID_REQUIRED', missing: [...] }when identification is missing.
Rules every window posting follows:
- One teller per session. Only the teller who opened the session posts to it. A posting approved after the till was balanced is refused: post it again in a new session.
- Till currency. A till holds one currency. Cash can go in or out only for an account in that currency; for any other account, take a check or a transfer.
- Monitoring screens it first. Deposits, withdrawals and check deposits are screened before money moves. If monitoring blocks it, or holds a transaction that pays cash out, the transaction is marked failed and the teller is told This can't be done at the window. Ask your supervisor. If monitoring is unavailable, nothing posts (503).
- Notes and money move together. Notes come out of the till first, then the ledger posts, then notes go in. If the posting is refused, the notes go back.
- Replays. A repeat with the same
idempotencyKeyin the same session returns the original receipt. A check deposit must carry a stableidempotencyKeyof 1–200 characters, and its retries must send the exact same body, from the same teller, in the same session. A key reused for another kind or another request is refused with 409. A replayed deposit never repeats its cash-back withdrawal.
Cash out. A withdrawal fails when the account isn't open, and when the account doesn't have enough available. Two cases need a supervisor's override instead of failing:
- cash out over the teller limit (
cash.cashOutLimit); - cash that the account covers only with funds that are still held (cash against uncollected funds). The account's posted balance, plus the credit being made now, plus its overdraft limit must cover the amount.
Check deposits and holds. On a check deposit, the server works out the Regulation CC holds from Banking Config regcc and the deposit's facts:
- the item class:
on_us,treasury,postal_money_order,federal_reserve_fhlb,state_local_government,cashiers_certified_tellerorother; - the customer's other check deposits that banking day, across every account they own;
- whether every owner already had an account here for 30 days or more;
- the days the account ended overdrawn in the look-back period.
The bank applies some exceptions automatically: new_account, large_deposit, redeposit and repeated_overdraft. A supervisor can waive them with waive; a waiver needs an override. The teller can choose an exception with exception: { reason: reasonable_cause|emergency, note }, and the note must state the facts. Check-deposit holds are written in the same step as the deposit's credit, and the hold notice goes on the receipt.
A check drawn on this bank (on_us) needs the account number printed on it, and it is debited from that account. A check drawn on the same account it is deposited to is refused. If the writer's account can't pay the check, the teller is told to hand the check back; the account's restriction is not named. Checks drawn on other banks go to the check settlement book. No check image exchange is connected: deposited items are recorded, held and listed for the sponsor bank, which clears them.
Cash back on a deposit. cashBack: { amount, denominations? } pays out a withdrawal after the deposit posts. It is paid only to a holder of the account, and it counts the deposit's credit, less what the deposit holds. If the deposit posts but the cash back doesn't, the answer is still posted, with a warning to review the linked transaction. The cash back is never retried automatically.
Check cashing. A person who has no open account at the bank pays the check cashing fee (cash.checkCashingFee). A check worth no more than the fee is refused. Paying out over the teller limit needs an override.
Official checks and money orders. The fee is cash.moneyOrderFee for a money order and cash.officialCheckFee for the others. The total is the amount plus the fee. With paidWith: mixed, the cash part (cashAmount) can't be more than the total. An instrument paid from an account must be bought by a holder of that account. After the sale posts, the server takes the next serial from the till's stock and writes a banking_instrument_sale. The receipt carries the serial.
Who the cash is for. The conductor is a customer (customer), or a walk-in identified by identity: { firstName, lastName, idType, idNumber, idIssuer }. A walk-in must be identified for:
- a cash deposit or withdrawal;
- check cashing;
- a loan payment in cash;
- an instrument bought with cash.
The cash counts toward the conductor. It also counts toward the person it was done for: a business account's business, or the primary holder when the conductor doesn't hold the account. A walk-in's ID is stored with its tax id encrypted.
Receipt and journal. teller/transactions/:id/receipt is the printable receipt. It carries:
- the bank, branch, teller and session;
- the masked account, the amounts, the fee and the notes;
- the check items with their holds, and the balances after;
- the Reg CC hold notice, with its exception wording when an exception applies;
- the instrument's serial;
- the transaction it reverses, if any, and the cash back, if any.
teller/journal takes session or date (default today), plus page and pageSize. It lists the caller's window transactions newest first, with reversible and override flags.
Overrides. teller/overrides/:id shows an override the caller asked for, or is allowed to decide: { status: pending|approved|rejected|failed|done, approvers, decidedBy, decidedAt, note, result, error }. When the override posted something, result holds the receipt. Anyone else gets 404.
Reversals
/banking/teller/transactions/:id/reverseSTAFF{ reason } is required. A reversal at the window always needs a supervisor's override. These rules apply:
- Only a posted window transaction from today can be reversed here. Older ones are corrected by deposit operations.
- Only the teller who posted it can ask for its reversal.
- It must be reversed from an open session on the same till.
- Cash moves, over/short entries and reversals are never reversed at the window.
When the override is approved:
- cash that came in goes back out of the till, and cash that went out comes back in;
- the ledger posts the reversal; a loan payment is reversed through lending;
- the deposit's active holds are released;
- an instrument sale's record is set to
void; - the day's CTRs are recalculated for the people involved: an unfiled CTR whose cash no longer passes the threshold is removed.
Moving cash
/banking/teller/cash-movesSTAFF/banking/teller/tillsSTAFF/banking/cash-moves/:id/acceptSTAFF/banking/cash-moves/:id/cancelSTAFF/banking/vault/movesSTAFF/banking/vault/movesSTAFFEvery cash move is dual control: one person hands the cash over, and a different person counts it and takes it. Until then the move is a pending cash_movement transaction, and nothing has moved.
teller/cash-movestakes{ kind: buy|sell|transfer, denominations, vault?, toDrawer? (transfer), memo? }. Abuycomes from the vault into my till, asellgoes from my till to the vault, and atransfergoes to another teller's open till. When the branch has more than one vault, name it. The answer is{ status: 'waiting', move }.teller/tillslists the other tills at my branch that have an open session, so I can hand cash to one.vault/movesmoves cash between a vault and a till:{ from, to, denominations, memo? }. Both drawers must be at the same branch; between branches, the cash is shipped. A till can receive cash only while it has an open session. A shipment in or out of a vault is{ shipment: { direction: in|out, counterparty: federal_reserve|correspondent|armored_carrier, reference }, to|from: vault, denominations }, and it posts against the bank's funding book.- Before a move is offered, the sending drawer must hold every note in it.
Accept. cash-moves/:id/accept takes { counted }, and the count must match the notes handed over exactly. A different count is refused: count it again together, or cancel the move and have the sender recount. These rules apply:
- The person who handed the cash over can't take it.
- A till's cash is taken only by the teller working it, in an open session.
- Cash going into a vault, or a shipment, is taken only by someone who can open Branch cash (
/banking/vault).
On accept, the ledger and both drawers move together, and the tills' session totals record what each bought or sold.
Cancel. cash-moves/:id/cancel takes { reason? }. Only the sender or the receiver can cancel, and only before the cash is taken.
vault/moves lists moves with location, drawer, status: pending|posted|cancelled|all, shipments=true, page and pageSize.
Over/short and override reports
/banking/vault/reports/over-shortSTAFF/banking/vault/reports/overridesSTAFFover-short takes from, to (default the last 30 days), location, page and pageSize. It returns each over/short entry with its date, teller, drawer, signed difference and note, plus byTeller totals for over, short and count.
overrides lists teller overrides in the period, filtered by status when given. Each row has the summary, amount, status, who decided and when, the note and any error. byApprover counts the overrides by approver and teller.
Who approves. Teller overrides go through maker-checker as the action teller_override. It covers opening, posting, balancing, reversing and a vault count. By default it is required, for the roles HeadTeller, BranchManager or Owner. The teller who asked can never approve their own override.
Currency Transaction Reports
/banking/cash-reporting/summarySTAFF/banking/cash-reporting/ctrsSTAFF/banking/cash-reporting/ctrs/:idSTAFF/banking/cash-reporting/ctrs/:idSTAFF/banking/cash-reporting/ctrs/:id/filedSTAFF/banking/cash-reporting/ctrs/:id/amendSTAFFHow cash adds up. For each person, cash in and cash out are totalled separately, never netted, for the BSA business day. The totals cover every branch, drawer and account. They include cash out at the bank's ATMs (card withdrawals through the network) and cash someone else handled for the person. A person is keyed as a customer, a business (by its EIN, otherwise by its account) or an ID document. Cash that is exempt is left out of the totals.
At the window. A CTR is needed when a transaction would take either total past cash.ctrThreshold (default 1,000,000 cents, $10,000). The quote carries a banner that a Currency Transaction Report will be filed. It also carries a prefill: someone already identified on an earlier CTR that day, or what the bank knows about the customer from CRM and KYC. Posting waits until the conductor's identification is complete, and answers 422 CTR_REQUIRED with the list of what is missing. A complete identification has:
- first and last name (for a business, its legal name);
- street address, city, state and ZIP;
- date of birth, or why it is unknown;
- SSN or TIN (for a business, its EIN), or why it is unknown;
- occupation (for a business, its type of business);
- the ID examined: type, number, and issuing state or country.
After the cash posts, the server drafts or updates a banking_ctr for everyone the day's cash took past the threshold. Each CTR records:
- the day's cash in and cash out, with their cash types;
- the transactions and accounts involved, and whether it was
aggregated(more than one transaction); - the conductor, and whether the cash was conducted for
selforanother.
dueBy is the business date plus 15 calendar days. If the day's new cash changes a CTR that is already filed, the server creates an amending CTR, which carries the prior BSA ID.
The queue. A CTR is draft until the person (and, when conducted for another, the conductor) is fully identified, then ready, then filed. GET ctrs takes:
status:open(draft and ready; the default),draft,ready,filed,overdueorall;q: the CTR number, the person's name or the BSA ID;from,to;sort:dueBy,bsaDate,cashIn,cashOutorstatus, withdir;page,pageSize.
Each row adds daysLeft, overdue and missing. Tax ids are shown only as their last 4. GET ctrs/:id adds the CTR's transactions, each with its channel (Teller or ATM), and the masked accounts.
PATCH ctrs/:idcompletes the CTR:{ person?, conductor?, conductedFor?, cashInTypes?, cashOutTypes?, note? }. The TIN is stored encrypted; a masked TIN sent back unchanged keeps the stored one. When the identification is complete, the status moves toready. A filed CTR can't be edited: amend it instead.ctrs/:id/filedrecords the filing:{ bsaId, filedAt? }. The CTR must beready. ThebsaIdis FinCEN's acknowledgement number, 6–40 letters, digits or hyphens.filedAtcan't be in the future. FinCEN BSA E-Filing is not connected: staff file there and record the BSA ID here.ctrs/:id/amendstarts an amending draft of a filed CTR. It carries everything over and links to the CTR it amends.
summary returns CTR counts (draft, ready, overdue, dueIn5, filedLast30Days), exemption counts (active, reviewsDue within 30 days, doepDue within 7 days) and today's MIL entries.
The daily sweep. A scheduled daily job, banking-ctr-sweep, runs at 23:30 for orgs that have customer accounts. It drafts any CTR the window didn't, such as cash taken at the bank's ATMs. It also lapses exemptions whose annual review is overdue. A home clock counts CTRs still unfiled 10 days or more after their business date.
Exemptions
/banking/cash-reporting/exemptionsSTAFF/banking/cash-reporting/exemptions/:idSTAFF/banking/cash-reporting/eligibility/:customerSTAFF/banking/cash-reporting/exemptionsSTAFF/banking/cash-reporting/exemptions/:id/doepSTAFF/banking/cash-reporting/exemptions/:id/reviewSTAFF/banking/cash-reporting/exemptions/:id/revokeSTAFFAn exemption leaves an exempt person's own exempt accounts out of the CTR totals once it is in force. There are two phases of categories:
- Phase I:
bank,government,governmental_authority,listed_companyandlisted_subsidiary. - Phase II:
non_listed_businessandpayroll_customer.
The exemption covers only the accounts it names, held by the exempt customer. A payrollOnly exemption covers withdrawals only. On a business account it applies to all the account's cash; on a personal account, only when a holder conducts the cash themselves.
Designating goes through maker-checker as the action ctr_exemption. By default it is required, for BSAOfficer or Owner. The body is { customer, category, accounts[], payrollOnly?, firstReportableAt?, eligibility? { riskAssessment, ineligibleRevenuePercent, usOrganized }, note? }, and the answer is { status: 'pending', approvalId } or { status: 'done' }. The request is checked before it is kept:
- the category must be one of the seven above;
- the customer must exist;
- at least one account must be named, and the customer must hold every account named.
A Phase II request also needs:
- 2 months of account history, or a documented
riskAssessmentto skip the wait; ineligibleRevenuePercentof 50 or less;usOrganized: true.
When the request is approved:
bank,governmentandgovernmental_authorityare exempt from that day. No DOEP is filed for them.- Every other category starts
pending, withdoepDueBy30 days after the first reportable transaction. CTRs are still filed until the DOEP is recorded.
eligibility/:customer returns the Phase II facts:
- the customer's accounts;
- the date the first account opened,
monthsOpenandtwoMonths; reportableLast12Months, the count of CTRs in the last 365 days;frequent, which is 5 or more.
Lifecycle:
exemptions/:id/doeprecords the DOEP (FinCEN 110) filing while the exemption ispending:{ bsaId, filedAt? }. The exemption becomesactivefrom the filing date, with its next review one year later.exemptions/:id/reviewis the annual review. It applies to anactiveorlapsedexemption and needsstillEligible: true. For Phase II, the review is refused when more than 50% of revenue comes from ineligible business, or when the business isn't organized in the US. A passed review sets the next review one year from today.exemptions/:id/revokeneeds{ reason }.
GET exemptions takes status: active|pending|review_due|lapsed|revoked|all (review_due means active with a review due within 30 days), plus q, page and pageSize. Each row adds the category label, the phase, the masked accounts, reviewOverdue and doepOverdue.
Monetary Instrument Log
/banking/cash-reporting/milSTAFFA sale of an official check or money order goes on the Monetary Instrument Log when cash is part of the payment and the purchaser's instrument cash for the day reaches cash.milMin (default $3,000). A purchase that brings the day's total to that amount also puts the same person's earlier sales that day on the log.
Before the instrument is issued, the server checks the buyer's details. If any are missing, it answers 422 MIL_REQUIRED, with missing, the day's cash and a prefill. It needs:
- always: the buyer's name, and the ID type and number;
- for a buyer who holds no account: also the address, SSN or alien ID number, date of birth and the ID issuer.
GET mil takes from, to, q (serial, purchaser or payee), all=true (every sale, not only logged ones), page and pageSize. The purchaser's tax id is shown as its last 4.