Payments: configuration
Everything Payments reads, what each does and what to set it to.
The app
Payments (payments) is switched on from Settings → Apps. It needs
Banking: a processor's payments wait in a bank account of kind processor
clearing until they are paid out. Switched off, its screens, API and the
processor's notices are refused, the buttons on invoices and customers go, and
the data stays.
Merchant accounts — Settings → Payments
A merchant account is what your processor gave you. Add one with:
| Field | What it is |
|---|---|
| Label | Your name for it, shown to staff. |
| Processor | NMI, Authorize.net, GrailPay or Stripe (Stripe). Chosen when the merchant is added and fixed after: saved cards and bank accounts stay at the processor they were saved at. |
| Takes | Card, ACH debit, or both — what the processor can take. GrailPay takes ACH debit only. |
| Clearing account | The bank account (kind processor clearing) a payment is recorded into until the processor pays it out. |
| Payout account | The bank account the processor pays into. |
| Fees | Taken out of each payout (the bank's deposit is the batch less the fees) or billed once a month (the deposit is the whole batch; the fees come as a debit of their own). Changeable later. |
| Fees kept from each payout, about | Only where fees come out of each payout. Authorize.net does not report the fees its acquirer keeps, so a deposit lower than the batch would never be proposed against it. Enter about what share the fees come to (2.9 for 2.9%): a deposit lower than a batch by no more than that is proposed against it, and the difference goes to Payment processing fees. Empty or 0: only exact payouts are proposed. The drawer warns when an Authorize.net merchant needs one. |
| American Express pays its cards on a deposit of its own | Tick it where your Amex agreement is with Amex directly, not through your acquirer. A batch is then expected on two deposits, its other cards and its Amex, and each is proposed as it arrives. |
| Default | One merchant per kind is the default; a company may have several. |
Keys are typed into the drawer and go straight to the credentials vault. They are never shown again; an empty box keeps the stored key. The drawer asks for the chosen processor's own keys:
| Processor | Key | Where it is |
|---|---|---|
| NMI | Security key | Merchant portal → Settings → Security Keys (private, API). |
| NMI | Tokenization key | Same page (public, for NMI's card fields). |
| NMI | Webhook signing key | Settings → Webhooks. |
| Authorize.net | API login ID, Transaction key | Account → Security Settings → API Credentials & Keys. |
| Authorize.net | Public client key | Account → Security Settings → Manage Public Client Key (public, for AcceptUI). |
| Authorize.net | Signature key | Same page as the API login ID; checks notices. |
| GrailPay | API key | From GrailPay; server only. |
| GrailPay | Merchant ID (MID) | From GrailPay: the payee of every debit. |
| Stripe | Secret key, Publishable key | Stripe Dashboard → Developers → API keys, both from the same mode. See Stripe. |
| Stripe | Webhook signing secret | Developers → Webhooks → the endpoint → Signing secret (whsec_…). |
| GrailPay | Bank Link token | From GrailPay: the token its Bank Link window opens with. It is shown to the browser, so it must not be the API key. Without one, customers' bank accounts cannot be linked here; existing links still work. |
Sandbox or live is the server's: a production installation talks to each
processor's live service, every other installation to its sandbox. Use sandbox
keys on a test server and live keys in production. At Stripe the key decides
instead (sk_test_… or sk_live_…), and a live key is refused on any server but
production.
Test connection asks the processor with the stored keys, says whether it answered, and shows Test mode or Live beside the merchant.
Several processors. A company may have, say, cards at NMI and bank debits at GrailPay, or cards at two processors. Each kind of method has one default merchant; Take payment uses it for a new card or bank account. Moving the card default to another processor leaves saved cards where they were saved — they are charged through their own processor — and new cards go to the new default. Nothing is moved between processors: their tokens only work where they were made.
Webhook URL. Each merchant's row shows its notice URL. Paste it into the processor's webhook settings (NMI: transaction events; Authorize.net: Webhooks in the merchant interface; GrailPay: registered with its webhook API). A notice is checked against that processor's own signature — NMI's and Authorize.net's sign the body; GrailPay's proves the sender holds the API key — refused if forged, ignored if repeated, and never believed: it only prompts Payments to ask the processor what happened.
Surcharge and fee rules — Settings → Payments
The rules decide whether a payment carries a card surcharge or a convenience fee, and how much. Each rule is evidence: it says what one state's law, one card network or bank debits allow, and cites its source (a link) and the day somebody checked it. A rule without both is refused. The product ships rules for the states and networks it knows of — Connecticut, Massachusetts, Maine and Puerto Rico banning card surcharges; Colorado and Oklahoma capping them at 2%; Visa, Mastercard, American Express and Discover at 3%; no convenience fee on a bank debit — each with its source, checked on 23 October 2026. The law moves: check the rules that apply to you, and change one with its new source.
How they apply:
- A card surcharge is only on a credit card — never a debit or prepaid card,
and never one whose type the processor did not report. The rate is the lowest
of your company's (
payments.card_surcharge_percent), the card network's limit, and the payer's and your state's caps. If either state bans it, there is none. The card's type comes from the processor's own card boxes (NMI reports it; Authorize.net's form does not, so its cards are never surcharged). If the processor then says a surcharged card was debit or prepaid, the payment is flagged on Payments taken for somebody to refund the surcharge. - A convenience fee (
payments.convenience_fee_amount) applies on the pay page only, one per payment, never with a surcharge, and only where both states' rules allow one. A state with no rule sets no limit. A bank debit carries one only if the bank debit rule allows it. - The payer's state is the customer's default billing address; yours is the company's registered address. Either missing means that state's rule is not consulted.
- Both are booked as their own income — Card surcharge income and Convenience fee income, accounts 4450 and 4460 in the starter chart. A company whose chart does not map them is never charged either. A void or refund hands back the surcharge in proportion.
- Tax on a card surcharge follows the Card surcharge charge code's tax category (Settings → Charge codes). With none, which is how it ships, a surcharge is not taxed and is booked as it always was. Give the code a tax category your tax pack taxes in a state, and for a payer there the surcharge's sales tax is shown before the card is charged ("Sales tax of USD 0.18 applies to the surcharge in your state"). The card is charged the surcharge plus its tax. The surcharge is then its own invoice, paid by the same payment, so its tax is on your sales tax report and return with every other invoice's. A void credits that invoice in full; a refund credits its share and hands it back against the credit. Tax goes by where the customer's goods land, as on every invoice: their shipping address. A convenience fee is not taxed.
A customer of your own choosing
Add a rule about a customer to treat one customer differently, for example a key account whose contract says it pays no surcharge. Name the customer by number, say whether they are charged a card surcharge and whether a convenience fee, and say why. This is your company's decision rather than a law, so it needs a reason instead of a source and a date.
A customer rule only takes a surcharge or a fee away. It never allows one that the payer's or the company's state bans.
Bank debit authorisation
Before a customer's bank account is debited, they agree to the company's
authorisation — payments.ach_authorisation_text under Settings → Accounting
(below), with {company} for your company's name. Staff taking a debit on the
phone read it and tick that the customer agreed; on the pay page and the portal
the customer ticks it themselves. Each saved bank account and each debit
records which version of the words was agreed to, by whom and how, so changing
the wording never rewrites what an earlier customer agreed to. Keep the
wording your bank or processor requires (Nacha's rules ask for an authorisation
the customer can keep, and an online (WEB) debit one the customer accepts on the page).
Payment links
A link's address is signed: it names your company and the link, and allows
nothing but paying it. Anything else — a forged link, a cancelled or deleted
one, Payments switched off — gets the same not valid page. A link that fails
payments.link_attempts_per_hour payments in an hour is closed and its sender
told. Links are emailed through the company's connected email account; without
one, the link is still made and can be copied.
A link is for a customer's invoices, or for one sales order that has no invoice yet. The storefront makes an order's link when a buyer presses Pay now on their order; it asks for what the order still owes, and the Payment links list names the order in place of invoices. If the order is cancelled, closed or invoiced before the link is paid, the link is cancelled and opens the same not valid page: what the order owes is on its invoice from then on.
Settings — Settings → Accounting, and the payment controls under Approvals
The seven payment controls are filed under Settings → Approvals, not
Accounting (R19 automation): payments.refund_approval_amount,
payments.run_approval_amount, payments.new_payee_account_hold_days,
payments.cheque_signature_max_amount, payments.ach_credit_adjustment_code,
payments.ach_credit_route and, since R21 automation, payments.nacha_balanced
(an offsetting debit in every batch changes what the bank moves). They are changed with approval_settings.manage
(Manager and Admin by default) or setting.manage, never with
accounting_settings.manage: the person who builds and releases payment runs
cannot raise the threshold their own run is checked against, shorten the hold on
a changed supplier account, or move the signed-cheque limit. Every change, and
every reset, is audited as payments.control_setting_changed with the setting,
its value before and after, and who changed it; filter the audit log by that
event, or by the person. A company that copied the Accounting role and wants
its controller to set these gives that role approval_settings.manage.
| Setting | Default | What it does |
|---|---|---|
payments.refund_approval_amount (Approvals) | 500.00 | A refund above this waits for a second person (workflow payment_refund, approver role accounting by default). |
payments.ach_authorisation_text | Nacha-style wording | What a customer agrees to before a bank debit. Changing the words makes a new version; each saved bank account and each debit records the version agreed to. {company} is your company name. |
payments.webhook_rate_per_minute | 60 | Processor notices accepted per minute; over it they get 429 and the processor retries. |
payments.card_surcharge_percent | 0 (off) | Your card surcharge, at most what the surcharge rules allow. |
payments.convenience_fee_amount | 0 (off) | A flat fee for paying on the pay page, where the rules allow one. |
payments.links_allow_partial | off | Whether a link may ask for part of its invoices' balance. |
payments.link_expiry_days | 30 | How long a new link can be paid for. |
payments.link_attempts_per_hour | 10 | Failed payments a link takes in an hour before it is closed. |
payments.dispute_reminder_days | 5 | How many days before a chargeback's evidence is due its handlers are reminded. |
payments.bank_debit_release | Settled | When a bank debit (ACH) taken for a sales order counts as paid. Settled: the order waits until the processor reports the debit settled, usually a few working days; nothing leaves on a debit that may come back. Accepted: the order is paid as soon as the processor accepts the debit; if the payer's bank later returns it, the deposit is reversed and whoever took the payment is told, but the goods may already have left. Cards are approved or declined on the spot and are not affected, and neither is a bank debit that pays an invoice. |
payments.ach_credit_route (Approvals) | NACHA file | How supplier ACH payments leave: in a NACHA file for your bank, or through a processor that pays suppliers (GrailPay). |
payments.nacha_balanced (Approvals) | off | Whether your bank wants balanced files: each batch carries a debit to your own account for what it pays out. Set on Settings → Payments, under the NACHA details; All settings links there. |
payments.ach_credit_adjustment_code (Approvals) | CS | The adjustment reason code a supplier credit is remitted under in CCD+ and CTX addenda (RMR*IV*<bill>**<paid>*<total>**CS*<credit>, RMR07). Two capital letters or digits; what is typed is saved in capitals (cs saves as CS). CS (X12 code list 426, adjustment) is the standard; change it only when your bank asks. A file generated and not yet sent before a change no longer matches its hash: downloading or sending it is refused, naming the code's change (from and to), and it is cancelled and generated again. |
payments.new_payee_account_hold_days (Approvals) | 3 | A supplier's bank account added or changed this recently is not paid by ACH or wire — by a run, Record payment, Release, or an approval releasing a held payment. An account not verified yet is never paid by ACH or wire. |
payments.run_approval_amount (Approvals) | 0 | A payment run over this waits for a second person; at 0, every run does. Nobody approves their own. |
Payments for a sales order
A card or bank payment can be taken for a sales order that has not been invoiced yet: a sale at the desk, an order placed on the website. What the processor approves is recorded as a deposit on that order. It counts toward an order or an account that must be paid before release, and it is put against the order's invoice by itself when the invoice posts.
- An order type that wants payment before release (the starter ECOM type)
holds its orders until they are paid. When the payment that covers one is
approved, the order is confirmed without anybody touching it; the audit log
records
sales.order_released_on_payment. If something else also holds it (a credit limit, a lapsed licence), it stays held and says only that. - An order is paid for through the processor until it has a posted invoice. After that, the payment is taken against the invoice.
- A payment for an order that is refunded before the order is invoiced must be refunded in full: the deposit is reversed, so the order no longer counts as paid. Refund part of it once the order has been invoiced.
- Taking one needs
payment.charge, as a payment on an invoice does. - On the storefront, a buyer pays for their own order from its page (Pay now), on your pay page. It is offered while the order is open, not yet invoiced, not waiting for your approval, and still owes something. A web order you hold until it is paid is shown to its buyer as On hold so that they can pay for it.
- At the sales desk, Card or bank takes the payment for the sale in the
basket, and the sale is settled once what has been received covers its
total: the goods are handed over and the invoice it raises is paid from the
deposit. A walk-in and an account that pays in advance buy this way at a
desk with no till. The audit log records
sales.counter_settled_paid. Which methods the desk offers is Settings → Payment methods, Offered at the desk; the starter list offers cards there and not bank debits. - A bank debit at the desk follows A bank debit pays for an order when it
is (
payments.bank_debit_release). Left at settled, the sale is parked until the bank has paid the debit, and the goods leave after that. Set to accepted, the sale is settled at once; if the debit later comes back, the deposit is reversed and the person who took it is told, and the goods have already gone.
The hourly job
payments.sweep runs every hour. It asks the processor about payments whose
answer was lost, checks bank debits still waiting to settle, sends approved
refunds and finishes notices whose work never started. payments.link_expiry
runs daily and marks links past their date as expired.
payments.settlements runs each morning and fetches the last week's
settlements from every processor that reports them (NMI and Authorize.net;
GrailPay reports none); a batch already stored is not stored again, except
that one still held (it does not tie, or has lines to resolve) is read again
from the processor and tied out afresh. A posted batch is never touched.
payments.dispute_reminders reminds the holders of payment_dispute.manage
of chargebacks whose evidence is due within payments.dispute_reminder_days,
once each.
payments.supplier_credits runs every hour and asks the processor about
supplier ACH payments sent through it that have not settled or come back.
Settlement accounts
Two accounts are added to the chart when the app is installed: Payment processing fees (6470, an operating expense) and Chargebacks receivable (1250, another current asset). Settlement fees and chargeback fees post to the first; the money a chargeback takes waits in the second until it is won or lost. Map either role to another account under Settings → Accounting.
A merchant account whose fees are billed monthly gets a bank rule, {merchant} monthly fees, on its payout bank account: a debit naming the processor is proposed as a payment fee. It ships Propose; change it under Banking → Rules like any other.
A batch whose processor reports fees taken from it, at a merchant account set to billed once a month, is held and says so: posting it would leave those fees in clearing and book them again when the monthly debit came. Set the merchant's fees to Taken out of each payout and choose Try again on the batch.
Paying suppliers
NACHA details — Settings → Payments. For each bank account suppliers are
paid from, the details your bank gave when it set you up to send files: the
company name and id, the immediate origin, the origin and bank names, and the
entry description. The account and routing numbers are the bank account's own,
typed under Banking and kept in the vault; generating a file reads them, and
each read is recorded in the audit log. Whoever generates files needs
nacha_file.generate and bank_account.reveal_numbers (both accounting's).
Sending files to the bank uses the company's file transfer connection (Settings → Connections, File transfer, an SFTP server); without one, files are downloaded and uploaded to the bank's site by hand.
Paying through GrailPay: set payments.ach_credit_route to provider, let
the GrailPay merchant take ACH credit, and give it the company's own GrailPay
business id (The company's id at the processor). Each supplier is then added
by its GrailPay id. The hourly job asks GrailPay about each payment until it
settles or is returned.
Cheque stock — Settings → Payments. One per box of cheques in a printer:
the bank account, the number on the next blank cheque, whether the cheque is at
the top, middle or bottom of the page, and offsets in millimetres to line the
printer up. A number already printed cannot be set as the next. Once saved,
a stock can carry a signature image (PNG or JPEG), printed only on cheques up
to payments.cheque_signature_max_amount (Settings → Approvals, 0 by default:
every cheque is signed by hand). The stock also holds the bank's positive pay
layout as JSON — empty is a CSV with the header Account,Check Number,Amount, Issue Date,Payee,Action and flags I/V; a bank wanting something else sets
format (csv or fixed), delimiter, date_format, amount (decimal or
cents), issue_flag, void_flag, header, trailer (which may name
{count}, {total}, {total_cents}, {issues}, {voids}, {date}) and
columns (each a field of account, cheque_number, amount,
issue_date, payee, action, with width, align and pad when fixed).
Positive pay files carry the full account number, so whoever makes them needs
cheque.print and bank_account.reveal_numbers (both accounting's). Start
from in the stock's form fills the layout from a common shape — CSV with a
header (the default), CSV without one, CSV with the issue date first, or an
80-character fixed-width file (account, cheque number, amount in cents, a
six-digit date, the flag, the payee, and a count-and-total trailer). They are
starting points: check the result against your bank's own specification.
The MICR line — blank stock. Each stock is one of two kinds:
| Stock | Print the MICR line | What prints |
|---|---|---|
| Pre-encoded by your bank or cheque printer | off (the default, and every stock set up before) | The date, payee, amount and stub. The band at the foot of the cheque is left empty for the bank's line. |
| Blank cheque stock | on | Everything above, plus the MICR line in E-13B: ⑈cheque number⑈ ⑆routing number⑆ account number⑈, at the positions ANSI X9.13 sets, in the bottom 5/8 inch. |
Before turning it on:
- Store the bank account's full numbers (Banking → the account → Numbers). They stay in the vault; the screen shows the last four only. A stock cannot be switched on for an account without them.
- Use MICR toner in the printer. A line printed with ordinary toner looks right and cannot be read by the bank's machines.
- Calibrate the printer: on the stock, Print alignment test, on plain
paper. Hold it over a blank cheque against a window; every dashed box should
sit on its field and the cross 1 inch in from the cheque's left and top
edges. If the whole page is off, set
payments.cheque_printer_offset_x_mmandpayments.cheque_printer_offset_y_mm(Settings → Accounting, Cheque printer calibration, millimetres, right and down positive, ±10). If only one box of cheques is off, use that stock's own offsets. The two add up. - Ask your bank to test a printed cheque before the first run. Banks test a sample for print quality and position; the line on the alignment page is zeros and is not a test cheque.
| Setting | Default | What it does |
|---|---|---|
payments.cheque_printer_offset_x_mm | 0 | Moves everything on every cheque right (negative: left), for this company's printer. |
payments.cheque_printer_offset_y_mm | 0 | Moves everything down (negative: up). |
payments.cheque_micr_serial_digits | 6 | How many digits the cheque number takes on the MICR line, zero-filled. Your bank says; most business accounts use 6. |
Printing on blank stock reads the account's numbers from the vault for each
print run, so the person printing needs bank_account.reveal_numbers as well
as cheque.print (both accounting's by default); without it the print is
refused before a cheque number is used. Each read is in the audit log as a
secret revealed, for payments.cheque. The numbers are on the printed cheque
and nowhere else: not in a log, a screen or a report.
If the company has published its own cheque template (Settings → Documents) before MICR lines existed, a blank-stock print is refused and says so: open the template and publish it again, and it carries the line. A free-position template prints the line in its reserved band; nothing may be placed there.
The MICR face is MICR E13B, under the SIL Open Font License 1.1, shipped
with the product (printing/fonts/micr-e13b/OFL.txt).
Stale cheques: payments.stale_cheque_days (180) — a cheque printed that
long ago that has not cleared is a Cheques not cashed signal for whoever holds
cheque.print.
Approval of payment runs is the workflow Payment run, approved by the accounting role by default (Settings → Approval rules).
The page's Content-Security-Policy
The card and bank fields are each processor's own: NMI's Collect.js,
Authorize.net's AcceptUI, GrailPay's Bank Link window. The web server's policy
allows exactly their origins (docker/web/default.conf.template); a reverse proxy in
front of it must allow the same:
| Directive | Origins |
|---|---|
script-src | https://secure.nmi.com, https://sandbox.nmi.com, https://js.authorize.net, https://jstest.authorize.net, https://cdn.jsdelivr.net/npm/@grailpay/banklink@1.0.5/, https://js.stripe.com, https://*.js.stripe.com |
frame-src | https://secure.nmi.com, https://sandbox.nmi.com, https://js.authorize.net, https://jstest.authorize.net, https://connect.moneykit.com, https://js.stripe.com, https://*.js.stripe.com, https://hooks.stripe.com |
style-src | https://secure.nmi.com, https://sandbox.nmi.com (Collect.js's own stylesheet) |
Roles
| Permission | Granted to |
|---|---|
payment.read | manager, accounting, sales, read-only |
| reading payment runs, Pay bills and run templates | payment.read and payables' vendor_payment.read: accounting (round 80), and Admin; any other role through a company role of its own (not sales, which holds payment.read for the card payments it takes) |
payment.charge | manager, accounting, sales |
payment.void, payment.refund | manager, accounting |
payment_method.read | manager, accounting, sales |
payment_method.manage | accounting, sales |
payment_link.send | manager, accounting, sales |
payment_merchant.manage (and the surcharge rules) | administrators only |
payment_settlement.manage, payment_dispute.manage | accounting |
payee_bank_account.manage | accounting |
payment_run.approve | accounting (round 80): approve a run somebody else submitted, or send it back |
payment_run.release, nacha_file.generate, cheque.print | administrators (go-live review), or a company role of your own |
bank_account.reveal_numbers (banking) | accounting |
payment.charge, payment.void, payment.refund and cheque.print are refused to an agent
whatever role it holds.
Who approves a payment run (owner decision, round 80)
A submitted run is approved by somebody who holds payment_run.approve (with
approval.decide and vendor_payment.read), and never by the person who
submitted it. payment_run.approve is split out of payment_run.release,
which approved runs until now: a role your company made that holds
payment_run.release still approves runs, unchanged, and the roles screen
shows it holding both. The seeded Accounting role (the controller's) holds
approve and not release, so a controller approves or sends back a run and an
administrator, or a role of your own, builds and releases it.
The approver role is Accounting by default (workflow.payment_run.submit.approval_role,
under Settings → All settings; Admin before round 80). With nobody on
Accounting the step is an administrator's, as a role step always allowed, and
with nobody but the submitter able to approve at all (one administrator, no
controller) the submitter approves it, recorded as self-approved (round 70).
Once a controller exists that stops: the administrator who submits a run
waits for the controller. A company that saved Admin as the approver keeps it;
with a single administrator and a controller, change it to Accounting, or the
run cannot be submitted (it says nobody else may approve it).
Go-live checklist: supplier bank accounts (R71 story)
An ACH or wire to a supplier bank account added or changed less than
payments.new_payee_account_hold_days ago (3 by default) is refused with
payee_account_held and the day it may be paid (payable_from). That holds on
go-live day too, for every account entered that day. Enter and verify
supplier bank accounts at least 3 days before go-live, or pay by cheque until
the hold ends. The control is not relaxed for a go-live: a new account is the
fraud the hold exists for.
Pay bills and proposed runs (A8)
| Setting | Default | What it does |
|---|---|---|
payments.proposal_horizon_days | 7 | How far ahead a proposal (and Pay bills' due this week) looks. |
payments.proposal_cash_cushion | 0 | What a proposed run leaves in the bank account, in its currency. |
payments.proposal_fit_to_cash | on | Whether Propose stops at the cash on hand. A template has its own fit to cash switch, off for templates saved before A8. |
Cash on hand is the bank account's balance in the books on the pay date, less the cushion and the totals of runs on that account that are submitted or approved. Record deposits and reconcile before relying on it.
Permissions are the payment run's: payment.read with vendor_payment.read reads Pay bills and runs;
payment_run.release ticks, pays and proposes; payment_run.approve approves a submitted run. An assistant may propose
(payments.propose_payment_run, confirm-first) but never submits, approves or
releases. The demo seeds a Weekly proposal template on Mondays, fitted to
cash, from the first checking account.
Supplier credits on payment runs (decision 9)
Payment runs take each supplier's open credits before cash, as Bill.com and QuickBooks do. There is no company setting; there are two switches:
| Where | Switch | Default | What it does |
|---|---|---|---|
| New run | Use supplier credits first | on | The run takes the suppliers' open credits in the run's currency off its bills (the credit raised against a bill first, then the oldest) and pays the rest in cash. |
| Run template | use_credits (Use supplier credits first) | on, also for templates saved before it | The weekly proposal takes the credits before it fits the cash, and its run holds and applies them. Untick it on a template to pay bills whole. |
POST /api/v1/payments/runs takes use_credits (off when not sent, so an
integration that applied its credits itself — Pay bills does — is unchanged).
How it interacts. A run holds its credits from the draft until it is
released (applied then, through the same apply path Record payment uses) or
cancelled or sent back; nothing else can apply a held credit (bill_held_by_run).
From approval the run also holds the credited part of each bill. Pay bills and
Record payment offer a credit only for what no run holds. Approval
(payments.run_approval_amount), the approval route and each person's
vendor_payment limit are judged on the cash, net of credits. Releasing applies
credits with vendor_payment.manage, which the roles that release runs already
hold; the application is audited (payments.run_credits_applied, with each
credit, bill and amount). The cheque stub (print contract 1.5.0) has a Credit
column; a company with its own cheque template adds credit to its stub lines
to show it. NACHA addenda carry the credit as an RMR adjustment, under the
code payments.ach_credit_adjustment_code names (CS by default; decision 13).
The assistant may draft a run (it pays bills whole) but never applies credits or releases one.
Hand-written cheques (round-3 review)
POST /api/v1/payments/cheques/hand-written records a cheque written from the
chequebook for one payment waiting to print. It needs cheque.print and a
person (never an agent), a reason, and a number not yet used on the bank
account. The cheque is kept against the account's Hand-written cheques stock,
made put away (inactive) the first time so nothing prints on it; the register,
voids and positive pay treat it as any cheque. Audited as
payments.cheque_handwritten with the reason.
Pay bills lists only bills in the paying account's currency, and now says how
many bills in each other currency it is not listing (other_currencies).
Cheques and runs (round-4 review)
A printed cheque carries the company's registered address under its name and
the payee's address (remit-to, billing, registered, then any address on file)
under theirs. The cheque contract is version 1.3.0 (company_address).
Releasing a run asks first, with the total and the suppliers it pays;
submitting one says whose approval it waits for.
Who sees a payment run's approval card (round-6 review)
A payment run waiting for approval is on the shared Approvals queue, and the
queue's card — amount, payees, lines — is shown to anybody holding
approval.read. The seeded Sales and Warehouse roles hold it because they
work that queue for their own documents (orders, transfers, credit holds);
ReadOnly does not. So a salesperson can read a payment run's card without
payment.read. Deciding it still needs the approval addressed to them and
the payment permissions, which they do not have. To keep the card from those
roles, take approval.read off them in Settings → Roles (they then lose the
queue) — narrowing each card to its record's own read permission is a change
to the approvals engine, raised with it rather than made here.
Two people for a supplier's bank account (round-15 review)
Whoever adds a supplier's bank account, or last changed it, cannot verify
it: Verify is greyed out for them, and the server refuses them with 409
payee_account_own_change. Somebody else holding payee_bank_account.manage
(Accounting and Admin by default) verifies it, saying how they checked it. This
is not a setting: a single person who can both point a supplier's money at a
new account and say it is genuine is the fraud this control exists for.
How this compares:
| Product | A bank-detail change needs |
|---|---|
| Bill.com | A second approver for a vendor's bank change (approver role) |
| Ramp | Approval of the vendor's bank change by an admin other than the one who made it |
| This product, entered here | A second person to verify it (always) |
| This product, from the supplier portal | The call-back and the approval, by two people while vendor_portal.bank_change_two_people is on |
The supplier-portal path keeps its own two people: the person who records the call-back and the person who approves the change. Approving adds and verifies the account as one act. A company with one person in accounts needs a second user (an administrator will do) to verify each new account.
No money before the payment's approval (round-15 review)
A payment run's money waits for its supplier payment. When the payment is over
the payer's own limit and the run's approval does not cover it (for example a
run under payments.run_approval_amount, approved without asking anybody), the
payment waits for somebody whose limit covers it, and its disbursement shows
Waiting for its payment's approval:
- an ACH credit is not put in a NACHA file;
- a cheque is not printed and no number is used — since the round-17 story review its payment is recorded, and the approver asked, at release as an ACH's is (asked again at print only if the printer's own limit is lower);
- a wire, or an ACH credit through a processor, is not sent — this is decided at release, before anybody sends money.
Approved, the payment posts and the money goes on its way: ready for a file, ready to print, waiting for the wire's confirmation, or sent to the processor by the hourly job. Declined, the payment is cancelled with its disbursement, and its bills are open again. Cancelling the payment does the same.
Voiding a payment reaches the money: its cheque is voided in the cheque register, so the next positive pay file tells the bank not to pay it; an ACH credit not yet in a file is taken out of the queue. A payment whose ACH credit is in a file not yet sent cannot be voided until that file is cancelled; once the file is sent (or the processor has it), it cannot be voided at all — when the supplier's bank returns it, reverse the payment on the bank's date, which marks the credit returned.
Supplier credits, release warnings and the demo's ACH (round-16 review)
Supplier credits in Pay bills. Pay bills reads each supplier's posted
credit notes in the bank account's currency and takes them off that supplier's
ticked bills before any cash, as the proposal is fitted to cash: a credit raised
against a bill on that bill first, then the oldest. Pressing Pay applies them
(with vendor_payment.manage, the same permission Record payment needs), then
drafts the run for what is left. Nothing to configure. Since decision 9 the
weekly proposal template and New run take credits too (see Supplier credits on
payment runs above).
What a release will do. The release question asks the server, before it is
answered, whether each payment would wait for approval — the releaser's own
vendor_payment limit (Settings → Approval rules → people's limits), unless a
run's approval covers it. Lowering a person's limit makes their release
questions say so. Nothing else to set.
The demo's ACH. A demo company's Operating Checking gets demo account and routing numbers in the vault and an ACH set-up (DEMO COMPANY, FIRST HARBOR BANK), so an ACH run can be filed in the demo. No file goes anywhere: there is no transport until a company connects its bank. Replace both with your own under Banking (the account's numbers) and Settings → Payments (the ACH set-up) before filing for real.
A run's money against the approver and the bank (round-16 review)
No new setting. What changed, for the person configuring approvals:
- A waiting run payment keeps its bills. While a run's disbursement waits
on its payment's approval, the payment's applications are fixed: removing
one or applying to another bill is refused (409
payment_waits_on_run), from the screen, the API or an assistant. The approver's card lists the bills it settles. - A confirmed wire is a fact. Once a wire's bank confirmation (reference or
IMAD) is recorded, its waiting payment cannot be declined or cancelled (409
wire_already_sent); it is approved so the books show the wire, and voided afterwards if the bank recalls it. The approval card warns the approver. - A released run holds its bills. A draft payment may not take what a
released run's unrecorded payment is paying (409
bill_held_by_run), as a run may not take what a draft payment holds (bill_reserved). - Cancelling a run's payment needs
payment_run.release(Admin and Accounting by default). Only a cheque not yet printed, or a wire with no confirmation and no payment recorded, can be cancelled from the run; the reason is kept in the audit trail (payments.disbursement_cancelled). - Notices:
payments.run_payment_decidedtells whoever released the run (and whoever recorded the payment) what the approval did to its money. It needspayment_run.release, and is emailed by default; people can turn it off on My preferences.
A run's bills from approval to payment (round-17 review)
- An approved run holds its bills against payments and supplier credits, as
a released one already did, until it is released and paid or cancelled.
Refusals answer 409
bill_held_by_runwithdetail.runs. A submitted run does not hold: its approver may still send it back. - Release, and the release question, re-check every line against what is
open on its bill now and answer 409
run_bills_not_openwithdetail.lines(bill,needed,open,why:paid,credited,settled,heldorclosed, andby). Nothing is released. Printing does the same for a cheque whose payment is not recorded yet, keeping the reason on the run's payment. - The bank-line open-bills list and Build a payment from what is due net out draft payments and run holds.
- Notices:
payments.run_payment_decidedalso goes to the run's releaser when somebody else cancels its waiting payment or withdraws its approval. - No settings, rules or migrations were added.
Credits, holds and cheques at release (round-17 story review)
- Cheques over the releaser's limit are recorded at release and wait for
approval then, under the same rules as ACH (
payments.run_approval_amount, the person'svendor_paymentlimit). Nothing to configure. - Holds are shown in the pickers. Apply to a bill and Record payment
read what a payment run or draft payment holds on each bill and say whose it
is; refusals are keyed
bill_held_by_runorbill_held_by_payment. - Supplier credits are checked for duplicates against other credits only.
- Remittances (CCD+ and CTX) add the bill's total, and any discount, to an
RMRsegment where less than the total is paid (RMR05/RMR06), so the supplier can see a credit or discount took the rest. - Notices say "sent back" where an approver sends a payment back.
- No settings, rules or migrations were added.
What the payer sees, and recording a bill's payment (round-17 UX review)
Nothing new to configure. What changed reads the settings you already have:
- Who a payment waits for in the Release dialog comes from your approval limits (the
vendor_paymentdecision under Authority): the people the route would ask first, by name. - Record payment with supplier credits needs
vendor_payment.manage; releasing it in the same step also needsvendor_payment.postand is subject to the payer's limit. Somebody without release permission still records it — the payment is kept as a draft for a releaser. - A run sent back from Approvals keeps the approver's note as its reason.
Round 18 automation review: credits, dates, co-signers and supplier links
Nothing new to configure; these change what existing controls do.
- Applying a supplier credit is dated today (the company's timezone, or
the later document's date where both are dated ahead) when no date is given — Apply to a bill now sends one, today by default, with a
picker — and is refused on a day before both the credit and the bill
(
applied_before_documents). The period of that day must be open, as for a payment. - Release check (
GET /payments/runs/{id}/release-check) refuses a closed, soft-closed (withoutperiod.post_soft_closed) or missing period on the run's pay day with the same error as the release (period_closed, …), so the Release dialog says it before anybody presses it. A run settled by credits alone is checked too. - Allocation. Each credit raised against a bill goes on that bill first, then the rest oldest first — New run, templates, Pay bills' proposal and the assistant alike.
- The assistant drafts runs with credits, as New run does
(
use_credits, default on, inpayments.propose_payment_runandpayments.draft_payment_run). It still only drafts: a person submits, another approves, a person releases. - A credit a run holds is refused with its own key,
credit_held_by_run(it wasbill_held_by_run, which still means a bill a run holds), withavailablein cents andavailable_saidformatted. - Cheques are refused for a supplier with no address on file
(
payee_address_missing, 409), before any number is used; Hand delivery prints without one and is audited (payments.cheque_hand_delivery), as for employees. - Remittance. The cheque stub's Credit names the credit notes after the
amount (no template change: the same
creditfield). NACHA addenda follow a bill'sRMRwith oneREF*CM*<credit number>per credit — see the developer notes for why. - Co-signers. On an approval step every named person signs, each
signature is kept with its own time and note, listed under Signed, written
to the record's activity and audited (
workflow.approval_cosigned). - Supplier links. A supplier's External id and External source are
changed only by an import (the general edit refuses, 409
external_link_import_only; the edit drawer shows them read-only). An employee's payee (external_source = expense_claimant, whose cheques go to the person's People address and which is left out of 1099 totals) is made only by booking their expense claim: nobody can set or remove that link by editing, importing or creating a supplier (403employee_payee_claims_only). An import's change is audited asvendor.external_link_changed.
From the round-18 story review, in the same change:
- A credit raised against a bill that is still open and not on the run is
kept for that bill.
POST /payments/runstakesuse_other_bills_credits(off) to spend it anyway; New run has the tick-box. Pay bills' proposal keeps it the same way. - A run is refused when its pay date is before a bill it pays
(
run_dated_before_bills, 422) or in a period that does not take postings (period_closed, …) — at create, at release and by the release check; a proposal leaves out a bill dated after its pay day. - A bill settled by credits alone is listed on its supplier's first payment
from the run: on the stub (paid 0.00, with its credit notes) and as an
RMRwithREF*CMin the addenda. - Approval cards for a supplier credit say Supplier credit
(
document_kind = vendor_credit). - An employee payee's missing address is said as a missing People address, not a supplier's remit-to; printing for hand delivery says so.
Round 19 automation review: payment controls, the assistant's runs and NACHA files
- Payment controls are an Approvals setting. See Settings above: the six
controls need
approval_settings.manage(orsetting.manage), and each change is audited by name aspayments.control_setting_changed. Accounting keeps the rest of Payments' settings. - The assistant's drafted run is previewed by name.
payments.draft_payment_runproposes with the run as confirming would draft it — each supplier and bill by name and number, the discount and supplier credits taken, the total to the cent — and, where the run would be refused, the refusal itself. Nothing is kept by the preview. A drafted run is flagged Drafted by the assistant in the list and the drawer, and its Notes keep why it was drafted (the tool'snotes, or the request). It still only drafts. - A stale NACHA file says what changed. Downloading or sending a file that
would no longer come out the same is refused with its cause:
nacha_changed_adjustment_code(the supplier credit code changed, from and to),nacha_changed_origin(the account's ACH origin was edited) ornacha_changed_bank_numbers. Downloading still marks a file sent, so a file generated with the wrong code is cancelled before it is downloaded. - The release check also refuses a run the release would refuse for its
suppliers: a payee account still in its hold, not verified or missing, a
supplier on hold or a bank change waiting (the same
payee_account_*,supplier_heldandbank_change_pendingkeys). - A hold that leaves nothing of a bill or a credit to apply says so ("none of it is left to apply"), instead of offering 0.00.
Round 19 story
payments.ach_credit_adjustment_code (default CS) can now be set from Settings → Payments,
under the NACHA details, as well as from All settings. Who may change it is the setting's own
permission on the server; somebody who may not sees the code read-only.
Held bills (round 27)
payables.bill_before_receipt at hold_payment (the default) is now enforced
on payment runs at create, submit and release, in the release check and at
cheque print (payment_held, 409). A wire confirmed by the bank and a
processor credit that settled are recorded regardless: that money has left.
Supplier holds and partial return holds (round 29)
Nothing new to configure. A supplier on hold, not approved, or with a portal bank change waiting
no longer refuses a whole payment run: its bills are left out and named on the run
(left_out). A bill some of whose goods went back is held only for that part, whatever
payables.bill_before_receipt says; the rest may be paid by hand or on a run, without its
early-payment discount. Taking a bill off a run and cancelling a run need payment_run.release
(Accounting by default), checked before the request is read.