Payments, chapter 24 of 44
Payouts & Settlement
How a card payment becomes money in a merchant's bank: settlement timing, fees as ledger entries, payout schedules and reserves, failures, and reconciliation.
Everything so far brings money in; this part sends it out, starting with the merchant's own. Disputes and refunds are why it can't leave the moment it arrives: both take money back after the sale, and the merchant's balance has to be there to pay them. A customer pays on Monday and the merchant sees "succeeded" on Monday, but the money reaches their bank on Wednesday, or the following week, or for a new merchant two weeks later. Everything in between is settlement and payouts, the source of most "where's my money?" tickets on a payments platform, and the answer has to be computable from records for every cent.
The Stages#
How Card Payments Work split a payment into five events: authorization, capture, clearing, settlement and funding. This chapter is the last of them, funding, which a platform calls a payout, and the source of most confusion is conflating it with the others. Each is a separate fact with its own timestamp, and the API says which one a balance reflects. A merchant's balance has at least two buckets, pending (captured, not yet settled) and available (posted, past the availability date its payment method allows, less holds, reserves and pending outflows: what can be paid out); one number labeled "balance" invites the ticket about why it can't be paid out.
Settlement Timing#
Funds become available on a rolling schedule, written T+N: money captured on day T is available N business days later. Two business days is common for established US card accounts, but it varies by country and payment method. Stripe's published standard timing, for example, is 2 business days in the US and longer elsewhere, bank debits settle more slowly than cards, and a first payout waits longer still (below). Adyen's managed payouts for platforms offer two speeds, standard (funds arrive two days after settlement) and accelerated (the day after), on a weekday, weekly or monthly schedule, with an optional minimum payout amount and a retained amount that stays in the balance after each payout.
Rolling beats "everything on Friday": each day's volume becomes available on its own day, so cash flow tracks sales, and a problem with one batch affects one day.
Cutoffs, Batches and Transfers
"Day T" is a batch, not a calendar day. Payments are grouped into a batch that closes at a cutoff hour, and everything after the cutoff belongs to the next day's batch, so the hour a merchant's batch closes decides which day it's funded. Payabli's documentation makes this concrete. Its default cutoff is 5 PM Eastern: a payment at 4:59 PM on Monday is batched Monday and funded Tuesday, and one at 11:59 PM is batched Tuesday and funded Wednesday. A merchant can move its cutoff to any whole hour, so a Texas business can close at 8 PM Central, but a cutoff between 6 PM and 11 PM Eastern funds two days later at the earliest instead of the next day. A later cutoff gives the merchant's evening sales a same-day batch and costs a day of funding; show both sides of that trade when merchants choose.
The deposit itself is a transfer, a net of everything due that day: the batch's payments, less returns, chargebacks, fees and adjustments posting the same day. Most days the net is positive and becomes a deposit. When debits outweigh sales, it's negative, and the platform debits the merchant's bank for the difference instead: Payabli's example is $100 of payments against $200 of returns, chargebacks and adjustments, which debits the merchant $100. Finix works the same way, eventually creating a funding transfer that debits the merchant's payout account when a negative settlement isn't offset by later transactions. A negative transfer is a negative balance that has already been collected, with every risk of the clawback below: it's an ACH debit, and it can come back.
Where the Money Lands
A merchant can have several bank accounts, each for a different kind of money. Payabli models it as usages on each funding account: deposits (money received), billing (fees), payOutFunding (money sent to vendors), refunds and returns (returns, disputes and other rejected payments). One account can carry every usage, or a business can keep refunds and returns out of the account its deposits land in, and a merchant taking cards may have only one deposits account. Model the same split even if every merchant starts with one account: each money movement names the usage it's for, and the payout or debit goes to the account that carries it. A merchant that later separates fees from deposits is then a configuration change, not a migration, and a change to any of those accounts goes through the verification and hold in Payout Failures.
Fees Are Separate Entries#
A $50.00 charge with a 2.9% plus $0.30 fee shouldn't be recorded as a $48.25 payment. It's a $50.00 payment and a $1.75 fee, posted together in one ledger transaction:
| Account | Amount |
|---|---|
customer_receivable |
-5000 |
merchant_balance |
+4825 |
processing_costs |
+110 |
platform_revenue |
+65 |
The $1.75 the merchant pays is $1.10 the processor charged the platform and $0.65 the platform keeps. At capture the $1.10 is an estimate, because the real interchange and network fees are only known when the processor's settlement and fee files arrive; post it as pending and true it up from the file, so the platform's margin is measured on actual cost (Interchange & Pricing).
Recording only the net loses what you'll need later: a partial refund needs the gross, tax reporting needs gross volume, a fee dispute needs the rate applied to the gross, and the processor's fees and the platform's markup are two entries to two different accounts.
Collecting Your Own Fees
The platform collects its fees one of two ways. Net settlement deducts fees from each payout, so the merchant receives $48.25 and the fee never has to be collected; it's simple, and it's the default for most platforms. Gross settlement pays the merchant the full $50.00 and collects fees separately, usually as one monthly debit from the merchant's bank account, which some businesses require so deposits match their sales exactly and fees appear as an expense of their own in their books. Gross settlement turns fees into receivables that can fail: the monthly debit can come back insufficient or unauthorized, and then it's a collection, handled like the negative balances below. The same ledger serves both; only the payout instruction differs. Finix offers the same choice: net by default, where "deposits and fees are combined into one payout", or gross, where they're "distributed into two separate payouts". These are the same words Treasury uses for how the acquirer pays you; here they're how you pay the merchant, and the two choices are independent. Fees the platform charges merchants beyond processing (monthly service fees, return and chargeback fees, failed-authorization fees) are entries of their own types, never folded into the processing fee.
Platforms that split a payment between several parties (a marketplace paying a seller and a delivery driver, say) post every share as its own entry in the same transaction. The rule from Money & Amounts still applies: the shares must sum exactly to the gross, with any rounding remainder assigned deliberately.
Payout Schedules, Holds and Reserves#
How soon a merchant can be paid is a risk decision, not a convenience setting: once money leaves the platform, getting it back depends on the merchant's goodwill and bank balance, and disputes can arrive up to 120 days later, or more for anything paid in advance.
- New merchants wait longer. A first payout delayed a week or two gives fraud and disputes time to surface; it stops the merchant who signs up with stolen cards and pays themselves out the same day. Stripe typically schedules a new account's first payout 7 to 14 days after its first live payment.
- Reserves come in a few shapes. A hold is a fixed amount released on a date. A rolling reserve holds back a percentage of each payment for a set number of days, then releases it; Stripe's examples include 30% held for 60 days. A fixed reserve holds a percentage until one release date. Rolling reserves are the standard tool for merchants whose risk is real but acceptable (high ticket sizes, delivery months after payment, elevated dispute rates): they pay the disputes and refunds that arrive after the sales that caused them. Stripe caps any reserve at 180 days, and releases a hold early once refunds or disputes have used it. A lighter version is a retained balance: Adyen's managed payouts can leave a set amount in the balance after every payout, its example being USD 100 to cover possible refunds. A platform that lends to its merchants withholds from payouts the same way, as loan repayment (Withholding From Payouts).
- The payment method sets the clock. Card money can come back as a dispute for months, a consumer ACH debit for 60 days and a business one for two banking days (ACH & Bank Transfers), a Canadian pre-authorized debit for 90 (Payments in Canada), and a check through warranty claims long after it cleared (Accepting Checks). Cash confirmed by a retail network doesn't come back at all (Cash Payments). Availability is computed per payment from its method, not per merchant.
- Instant payouts are a different product. A payout to a debit card or over RTP or FedNow is final on arrival (Vendor Payouts), so it's priced and limited like credit, and paying before settlement lands is a treasury decision.
- Holds are explicit and explained. Every held amount is a ledger entry into the
reservesaccount with a release date, never just a smaller "available" number. A merchant who can see "$1,200 held until March 12, rolling 10% reserve" is a merchant who doesn't open a support ticket.
Creator and seller platforms apply the same holds to payees who never sold anything themselves, paying out of subscriptions, tips and ad shares, and pair them with eligibility gates (Risk Holds, Negative Balances and Clawbacks).
Negative Balances
Refunds and lost disputes can take a merchant's balance below zero, and on a platform someone has to cover it. Options, in order: offset against the merchant's future payments, debit their bank account (which requires authorization to debit, collected during onboarding), and finally, absorb it from the platform's own funds. Decide the order up front and tell merchants, because the alternative is discovering the policy in the middle of a loss. While a balance is negative, payouts stop.
Clawbacks
The bank debit is the part that fails. Pulling funds back from a merchant who's already been paid, after a customer's payment returned or a dispute was lost, is an ACH debit to the merchant's account. A business account makes it a CCD entry, which needs the merchant's agreement to debit (collected at onboarding) and can be returned as unauthorized (R29) within two banking days. A sole proprietor's personal account makes it a PPD debit instead, returnable as unauthorized for 60 days (ACH & Bank Transfers has the return windows and their sources).
A clawback that comes back is a debt with no automatic way to collect it, so its states continue: offset against future payouts, retry within the reinitiation rules if it returned for insufficient funds, then collections, and finally termination, with a report to Mastercard's MATCH list where the cause qualifies, and the loss written off as Becoming a Payment Provider describes. Track every clawback as its own payout-in-reverse, linked to the payment that caused it, so a merchant can see why money left their account.
Payout Failures#
Payouts fail, and they fail days later than you'd expect, because bank transfers report problems asynchronously.
In the US, ACH payouts can be returned after they appear to succeed, typically within two banking days, with a standardized Nacha reason code (ACH & Bank Transfers covers the rail, the longer windows on debits, and instant alternatives):
| Code | Meaning | What to do |
|---|---|---|
| R16 | Account frozen, or entry returned per OFAC instruction | Stop; it may be a sanctions hit |
| R02 | Account closed | Stop paying out, ask the merchant for a new account |
| R03 | No account, or unable to locate account | Bank details are wrong; ask for new ones |
| R04 | Invalid account number structure | Same as R03 |
Nacha has adopted a rule splitting R16: from March 17, 2028, R16 means only a frozen account, and a new R90 marks an entry the receiving bank returned to meet its sanctions obligations. Map both to the same stop, and keep the raw code on the payout.
So a payout's state machine doesn't end at paid. It goes pending, then in_transit, then paid, and from paid it can still become failed when the return arrives. On ACH those map onto the rail's own states: in_transit while the credit is submitted (the amount sits in payouts_in_transit), paid at settlement, failed on a return. The returned amount goes back to the merchant's balance through a reversing ledger entry, and payouts to that account stop until the bank details change. Retrying a payout to a closed account just produces another return.
A changed payout account is where takeovers cash out, so a change re-verifies the account and holds the next payout, with the controls in Vendor Payouts.
Unclaimed balances have an owner too. A merchant who stops processing and never updates a closed bank account leaves money on the platform, and after the state's dormancy period it's unclaimed property, owed to the state with notice to the merchant first, the same rule Vendor Payouts describes for uncashed checks.
Idempotent Payouts#
A payout sent twice is money that's very hard to get back. Payouts carry an idempotency key derived from what they represent and the attempt (the merchant, the balance period, attempt 1), so a retry after a timeout can't create a second transfer, and a scheduled payout job uses the same deterministic key so a crash and restart can't pay twice. A payout re-sent after a return is a new attempt, with a new key, to the corrected account. The key chain from the API to the bank file is in Idempotency End to End.
Reconciliation#
The three-way match of ledger, processor report and bank is in Three Sources of Truth. What payouts add is the merchant as a reconciler: a merchant matches each deposit against its own sales, so every payout lists the ledger transactions it includes (payments, refunds, fees, dispute debits, reserve holds and releases), and the payout report is the same list the platform matched against the processor. A payout whose components don't sum to the deposit is a break on both sides (Two Audiences for the Same Numbers). A marketplace seller reconciles a settlement report instead, netted of fees, refunds and reserves (Settlements and the Money), and a store books both kinds in Payout and Marketplace Reconciliation.
One Payment, Traced#
Each chapter of this volume describes one layer, several of them still ahead in Running a Provider. Here is a single $100 online card payment through all of them, with illustrative fees: the merchant pays 2.9% plus $0.30, and the costs are the interchange chapter's example rate ($1.80) plus $0.14 of network fees.
| When | What happens | Where it's explained |
|---|---|---|
| At checkout | The customer's card goes from hosted fields to the vault; the merchant's server creates a payment with an idempotency key and confirms it with a token | Running a Card Vault, Designing the Payments API |
| Seconds later | Risk allows it; the vault's forwarder sends it to the processor, which sends an ISO 8583 0100 through the network to the issuer; a 0110 comes back approved, and the payment is authorized |
Fraud & Risk, Inside a Processor |
| Same day | The merchant captures; the payment is captured, a payment.captured event goes to the merchant, and the ledger posts the customer receivable, the merchant's $96.80, an estimated $1.94 of processing costs, and the platform's $1.26 |
Payment States & Ledgers, Webhooks |
| That night | The capture goes to the network in a clearing file, gets an acquirer reference number, and qualifies for its interchange category | Inside a Processor, Interchange & Pricing |
| Next business day | The network settles; the processor's settlement file arrives, the payment is settled, and the actual interchange and network fees replace the estimate |
Inside a Processor |
| Two business days later | The merchant's $96.80 becomes available and goes out in that day's ACH payout, which the bank statement later confirms | This chapter, Treasury & Bank Operations |
| For 120 days | The payment can still be disputed; if it is, a dispute object holds the $100 and a fee from the merchant's balance | Disputes & Chargebacks |
| Month end | The statement shows the payment, its fees and its payout | Operating the Platform |
| Next January | The merchant's 1099-K includes the full $100, gross | Payments for Software Platforms |
Every row is a record somebody can find later, and the ledger ties them together: the $100 in, the $3.20 of fees split between costs and revenue, the $96.80 out, and the bank deposit that proves it.
How to Build It#
These are deltas against the core data model, which already has payouts and the ledger. A payout needs to know what it pays, how it went on the rail, and what's held back; a clawback is a payout in reverse.
ALTER TABLE payouts ADD COLUMN direction TEXT NOT NULL DEFAULT 'credit'
CHECK (direction IN ('credit', 'debit')); -- 'debit' is a clawback
ALTER TABLE payouts ADD COLUMN rail TEXT NOT NULL; -- 'ach', 'rtp', 'fednow', 'push_to_card', ...
ALTER TABLE payouts ADD COLUMN attempt SMALLINT NOT NULL DEFAULT 1;
ALTER TABLE payouts ADD COLUMN return_code TEXT; -- raw, e.g. 'R02'
ALTER TABLE payouts ADD COLUMN returned_at TIMESTAMPTZ;
ALTER TABLE payouts ADD COLUMN caused_by_payment_id UUID REFERENCES payments (id); -- clawbacks
-- status adds 'in_transit' and 'returned'; 'paid' is not terminal
CREATE TABLE merchant_bank_accounts ( -- where each kind of money lands
id UUID PRIMARY KEY DEFAULT uuidv7(),
merchant_id UUID NOT NULL REFERENCES merchants (id),
account_token TEXT NOT NULL, -- vaulted; never the account number
usages TEXT[] NOT NULL CHECK (usages <@ ARRAY['deposits', 'billing', 'payout_funding', 'refunds', 'returns']
AND cardinality(usages) > 0),
status TEXT NOT NULL CHECK (status IN ('pending', 'active', 'inactive')),
verified_at TIMESTAMPTZ,
created_at TIMESTAMPTZ NOT NULL DEFAULT NOW()
);
ALTER TABLE payouts ADD COLUMN bank_account_id UUID NOT NULL REFERENCES merchant_bank_accounts (id);
ALTER TABLE payouts ADD COLUMN usage TEXT NOT NULL; -- which usage the account was chosen for
CREATE TABLE payout_items ( -- what each payout pays
payout_id UUID NOT NULL REFERENCES payouts (id),
ledger_transaction_id UUID NOT NULL REFERENCES ledger_transactions (id),
amount BIGINT NOT NULL, -- signed share of that transaction in this payout
PRIMARY KEY (payout_id, ledger_transaction_id)
);
CREATE TABLE balance_holds ( -- holds and reserves, each one dated
id UUID PRIMARY KEY DEFAULT uuidv7(),
merchant_id UUID NOT NULL REFERENCES merchants (id),
kind TEXT NOT NULL CHECK (kind IN ('hold', 'rolling_reserve', 'fixed_reserve', 'first_payout_delay')),
payment_id UUID REFERENCES payments (id), -- for rolling reserves, the payment it came from
amount BIGINT NOT NULL,
currency CHAR(3) NOT NULL,
release_on DATE NOT NULL,
released_at TIMESTAMPTZ,
reason TEXT NOT NULL,
set_by TEXT NOT NULL,
ledger_transaction_id UUID NOT NULL REFERENCES ledger_transactions (id) -- the move into `reserves`
);
ALTER TABLE payments ADD COLUMN available_on DATE; -- computed from the payment method at capture
The available balance is a query, not a column: posted entries whose payments are past available_on, less unreleased holds and pending outflows. A day's transfer is one payout whose payout_items net that day's payments against its returns, disputes and fees; when the sum is negative, the payout is created with direction = 'debit' against the account carrying the returns or billing usage. The payout's idempotency key comes from the merchant, the balance period and attempt, and payout_items is the answer to "which payments make up this deposit?".
Auditing#
Payout records are evidence when a merchant disputes a hold, when a takeover redirects a payout, and when a sponsor bank or examiner asks why money left. The general design is in Audit Trails; for payouts, make sure the record shows:
- Every hold and reserve with who set it and why, the risk score or rule behind it, and its release date, so a merchant's complaint has an answer (Automated and AI Decisions).
- Every change of payout account, with the verification performed, the hold it triggered and who released it.
- The schedule and policy in force for each payout, captured when it was created, not looked up later (Snapshot What Changes Underneath You).
- Returns and clawbacks linked to their causes: the raw return code, the payment that caused a clawback, and the recovery step each one reached.
What This Means for the System You Build#
- Pending and available balances, each tied to the event it reflects.
- Fees and every party's share as separate ledger entries, with the platform's own fees collected net or gross by choice.
- Availability computed per payment from its method, and holds as dated ledger entries.
- A cutoff per merchant that decides its funding day, a daily transfer that nets everything due, and a debit when the net is negative.
- Bank accounts by usage (deposits, fees, payout funding, refunds, returns), so every movement goes to the account meant for it.
- A recovery order for negative balances and clawbacks, decided and published before the first loss.
- Payout states that continue past
paid, because a payout can still be returned. - Deterministic payout keys, and every payout listing the balance transactions it pays.
References#
Specifications
- Nacha: ISO 20022 Guide to Mapping U.S. ACH Return Items and Notifications of Change (PDF), the return reason codes and their Nacha names and descriptions (R02, R03, R04, R16)
- Nacha: New Return Reason Code for Sanctions Compliance Obligations, R16 narrowed to frozen accounts and the new R90, effective March 17, 2028
- Visa Core Rules and Visa Product and Service Rules, the 120-day dispute window
In practice
- Adyen: Managed payouts, standard and accelerated payout timing, weekday, weekly and monthly schedules, minimum payout amounts and retained balances
- Finix: Payouts, net and gross payouts, and funding transfers that debit the merchant for a negative settlement
- Payabli: How money moves, batches, the 5 PM Eastern default cutoff, funding-day examples, and transfers netting returns, chargebacks and fees, debiting the merchant when negative
- Payabli: Custom batch times, cutoffs on any whole hour and earliest funding of T+1 or T+2 by cutoff hour
- Payabli: Funding accounts, deposits, billing, payout funding, refunds and returns usages, and one deposits account with card services
- Stripe: Payouts, settlement timing by country, first-payout delay and negative balances
- Stripe: Understanding Connect account balances, pending and available balances, platform reserves and negative balances
- Stripe: Connected account reserves, holds, rolling and fixed reserves, and exposure