Pending vs Available Balance
Last Updated: 2026-12-01 Status: Complete
The difference between a pending balance and an available balance is the difference between money a merchant has earned and money the platform is willing to pay out now. After this page you can model pending, available, reserved and in-transit balances as ledger accounts, compute them with one query, decide which balance a payout may read, and handle multi-currency accounts, FX conversion and rounding without losing a cent. It builds on the accounts and entries in Double-Entry Ledger Design.
Quick Reference
| Balance | Meaning | Ledger account (per merchant, per currency) |
|---|---|---|
| Pending | Captured, not yet payable | merchant_payable_pending |
| Available | Payable now, and what a payout may draw on | merchant_payable_available |
| Reserved / held | Restricted by a reserve or a hold | reserve_payable |
| In transit | Payout created, bank not yet confirmed | payout_in_transit (platform-level clearing) |
Rules of thumb: never sum across currencies; read the exponent from ISO 4217; make payout decisions from the primary database inside the posting transaction; every balance change is a journal entry.
What Are the Balance Types and What Moves Money Between Them?
All four are the platform's liabilities to a merchant in different states. Nothing is hidden or lost when a balance moves; an entry shifts the obligation from one account to another. The merchant-facing "total" is the sum of the merchant's accounts in a single currency.
Event to Balance Effect
| Event | Pending | Available | Reserved | In transit | Entry |
|---|---|---|---|---|---|
| Capture (net of fee) | + | Dr receivable_processor, Cr pending, Cr fee_revenue | |||
| Refund of an unsettled sale | − | Dr pending, Dr fee_revenue, Cr receivable_processor | |||
| Settlement confirmed, hold window over | − | + | Dr pending, Cr available | ||
| Refund of a settled sale | − | Dr available, Dr fee_revenue, Cr receivable_processor | |||
| Chargeback received | − | Dr available, Cr receivable_processor | |||
| Dispute fee | − | Dr available, Cr fee_revenue | |||
| Reserve hold | − | + | Dr available, Cr reserve_payable | ||
| Reserve release | + | − | Dr reserve_payable, Cr available | ||
Payout created (scheduled) | − | + | Dr available, Cr payout_in_transit | ||
| Payout canceled or failed before release | + | − | Reversing entries for the creation entry | ||
Payout paid (bank debit confirmed) | − | Dr payout_in_transit, Cr cash_fbo | |||
| ACH return of a paid payout | + | Re-credit available (or a held balance) against cash_fbo and the payout clearing account |
The payout is posted when it is created, not when it is submitted to the rail, so the money leaves available immediately and cannot be paid twice; submission changes no balance. A returned payout is not a negative balance: the money goes back to the merchant's available (or held) balance, and a risk or operations hold usually follows because the bank details may be invalid. Negative balances come from refunds, chargebacks, fees or a returned recovery debit. When a refund drives receivable_processor below zero, that negative balance now represents an amount the platform owes the processor until funding nets it. Return handling is in Payouts.
What turns pending into available is policy: settlement confirmed in the processor file, plus any risk hold, plus the merchant's funding schedule. It need not equal the day cash lands in your bank. If your platform makes funds available before the processor funds you, you are extending credit and carrying the risk; make that a conscious product decision, not an accident of the posting job. Gross or net funding and PayFac split funding are in Clearing and Settlement.
How Should You Model Balance Types?
Three designs are common. They are not mutually exclusive.
| Approach | How it works | Strengths | Weaknesses |
|---|---|---|---|
| Separate ledger accounts per balance type | Pending, available, reserved, in-transit are different accounts; a state change is an entry between them | Plain sums; every transition is an immutable, auditable entry; works in any database; clearing accounts are easy | More accounts and more entries per payment |
| Entry status (pending / posted) | Each entry is pending, then posted or archived; pending balance includes pending plus posted, available subtracts expected outflows | Natural for intents that may never complete; fewer accounts | Status is mutable state on an entry; balance queries need status filters; weaker immutability story |
| Two-phase holds | A hold reserves an amount; a later step posts it (fully or partly) or voids it, often with a timeout | Excellent for authorization-style reservations and payout approvals | Not a substitute for a lifecycle with several named states; the vendor model assumes a ledger that supports it |
Vendor behavior, as documented: Modern Treasury computes the posted balance from posted entries, the pending balance from pending plus posted entries, and an available balance that subtracts expected outflows but does not count expected inflows; transactions are pending, then posted (immutable) or archived. TigerBeetle's two-phase transfers reserve funds in debits_pending and credits_pending, then post_pending_transfer (in full or in part) or void_pending_transfer, with an optional timeout.
Recommendation for a PayFac: separate accounts per balance type. The states in a PayFac are real, long-lived and regulated by contracts (a reserve is a different thing from a hold window), each is explained to merchants and reconciled to different sources, and each transition is triggered by a different event. Separate accounts give you immutable entries for each transition and make "why is this merchant's available balance X" a query on named lines. Use entry status or two-phase holds only where something is a short-lived intent that may never complete, such as a payout awaiting approval, and keep the result as an entry into an account when it commits.
How Do You Compute the Available Balance?
With the account-per-state design, one query returns the raw signed sum for each of a merchant's accounts (positive = debit). Payables are credit-normal, so the helper below negates the sum to get the balance.
SELECT a.currency, a.code, COALESCE(SUM(l.amount_minor), 0)::text AS "sumMinor"
FROM ledger_account a
LEFT JOIN ledger_line l ON l.account_id = a.id
WHERE a.owner_id = $1
AND a.code IN ('merchant_payable_pending', 'merchant_payable_available', 'reserve_payable')
GROUP BY a.currency, a.code;
To report a past date, join journal_entry and filter on effective_at. For speed, add a snapshot plus lines after it, as described in Double-Entry Ledger Design.
Why Must a Payout Read From the Primary?
A read replica can lag. If a payout job reads a stale available balance from a replica, it can approve two payouts against the same funds. Payout decisions must be made inside the posting transaction on the primary, using the guard in LedgerService.post() (lock and check, then insert the payout entry). Replicas are fine for dashboards, statements and search. Replica and caching strategy are in Scaling.
Negative Available Balance
Refunds and chargebacks post even when available is too small, because the platform owes the cardholder regardless. The available balance goes negative, which is a correct representation: the merchant owes the platform. Surface it as a negative value with a state (for example recovering), block payouts while it is negative (pay max(0, available) only when no hold applies), and start the recovery waterfall: future sales, reserve, bank debit, write-off. Waterfall and liability are in Reserves and Negative Balances. A negative balance that sits unrecovered is a credit exposure; age it.
Business Days, Time Zones and Cutoffs
"When does it become available?" is a calendar question. Store several distinct dates rather than one:
| Field | Meaning |
|---|---|
captured_at | UTC instant of capture |
merchant_business_date | Date in the merchant's time zone (for reporting) |
processor_batch_date | The batch the processor assigned after its cutoff |
settled_on | Settlement date from the processor file |
available_on | Computed by your funding schedule and holiday calendar |
A release job posts the pending-to-available entry for items whose available_on has passed and that have no hold. Derive available_on from the processor batch, not from the merchant's local sale date. Cutoffs and time-zone traps are explained in Batch Cutoffs and Time Zones.
Multi-Currency Balances
One account per currency, and never sum across currencies. A merchant with USD and EUR activity has separate payable accounts for each. A "total balance" across currencies is a presentation choice that requires an explicit rate at a stated time; it is never a ledger fact. The composite foreign key in the schema already prevents a line from posting into an account of another currency.
Minor Units Come From ISO 4217
Store amounts as integers in the currency's minor unit and read the exponent from the ISO 4217 list, never hardcode two decimals. JPY and KRW have 0 decimal places; BHD, JOD, KWD, OMR and TND have 3. Keep a currency(code, exponent) table loaded from the published list and validate at the API boundary.
| Currency | Exponent | 1 major unit in minor units |
|---|---|---|
| USD | 2 | 100 |
| JPY | 0 | 1 |
| BHD | 3 | 1000 |
Also note that a card network, processor or bank file may express an amount with an implied decimal position of its own; confirm the convention per integration. Data-model conventions for money fields are in Entity Model.
Presentment vs Settlement Currency
The presentment currency is what the cardholder was charged; the settlement currency is what the platform receives from the processor or owes the merchant. If they differ, someone converts: the processor, the platform's treasury, or the platform's FX provider. Your ledger must record the conversion, the rate, where the rate came from, and when it was taken. See fx for definitions.
Worked Example: A USD Sale Paid to a EUR Merchant
A cardholder is charged USD 100.00. The platform fee is USD 3.00. The merchant is paid in EUR. Illustrative figures: the market rate at conversion is 0.9250 EUR per USD (source rates-provider-x, timestamped), and the platform applies 0.9200, so its spread is the difference.
- Net amount owed: USD 97.00 (9,700 minor units).
- At the applied rate: 9,700 × 0.9200 = 8,924 EUR minor units, so EUR 89.24 credited to the merchant.
- At the market rate: 9,700 × 0.9250 = 8,972.5, rounded half up to 8,973, so EUR 89.73.
- Spread revenue: 8,973 − 8,924 = 49 EUR minor units (EUR 0.49).
One journal entry, balanced separately in each currency through fx_clearing:
| Account | Currency | Debit | Credit |
|---|---|---|---|
receivable_processor | USD | 100.00 | |
fee_revenue | USD | 3.00 | |
fx_clearing | USD | 97.00 | |
fx_clearing | EUR | 89.73 | |
merchant_payable_pending | EUR | 89.24 | |
fx_spread_revenue | EUR | 0.49 |
Both legs balance in their own currency: USD 100.00 = 3.00 + 97.00; EUR 89.73 = 89.24 + 0.49. Store the rate, rate source, rate timestamp and spread in the entry's metadata so finance can audit them. When treasury actually converts the funds, the USD side of fx_clearing is cleared against USD cash and the EUR side against EUR cash. Any remainder (because the real conversion differs from the booked market rate) posts to an FX gain/loss account, and fx_clearing returns to zero in each currency. A nonzero fx_clearing balance means a conversion is unmatched or in flight; age it like any clearing account (see Ledger Reconciliation). Who converts, at which rate and on which day is set by your processor, bank and merchant agreements; confirm with finance.
Rounding Rules
Pick one rule, document it, and apply it identically everywhere.
- Rule used here: round half up to the minor unit, applied per line at the moment the amount is computed (fee per transaction, conversion per entry), using integer arithmetic.
- Differences go to a
roundingaccount. When the sum of rounded parts differs from the rounded whole (splitting a 0.10 fee three ways gives 0.03 + 0.03 + 0.03, a 0.01 difference), post the difference toroundingso the entry still balances and the drift is visible. - Never round twice. Computing a fee, rounding, then converting and rounding again produces a result that differs from converting once; define the order.
- Fee-calculation timing and rounding rules for the fee schedule are in Fee Engine. Half-even (banker's rounding) is also valid; the requirement is consistency and documentation, and your contracts may dictate the rule.
TypeScript Balance View and FX Helper
export interface BalanceRow { currency: string; code: string; sumMinor: string } // sum of signed lines
export interface BalanceView {
currency: string;
pending: bigint;
available: bigint;
reserved: bigint;
payable: bigint; // what a payout may take right now
}
const PAYABLE_CODES = {
pending: 'merchant_payable_pending',
available: 'merchant_payable_available',
reserved: 'reserve_payable',
} as const;
export function toBalanceViews(rows: BalanceRow[]): BalanceView[] {
const byCurrency = new Map<string, BalanceView>();
for (const r of rows) {
const v = byCurrency.get(r.currency) ??
{ currency: r.currency, pending: 0n, available: 0n, reserved: 0n, payable: 0n };
const balance = -BigInt(r.sumMinor); // payables are credit-normal
if (r.code === PAYABLE_CODES.pending) v.pending = balance;
if (r.code === PAYABLE_CODES.available) v.available = balance;
if (r.code === PAYABLE_CODES.reserved) v.reserved = balance;
byCurrency.set(r.currency, v);
}
return [...byCurrency.values()].map((v) => ({ ...v, payable: v.available > 0n ? v.available : 0n }));
}
/** Convert minor units. rateScaled = rate * 10^8, e.g. 0.9250 -> 92_500_000n. Round half up. */
export function convertMinor(amount: bigint, fromExp: number, toExp: number, rateScaled: bigint): bigint {
const neg = amount < 0n;
const abs = neg ? -amount : amount;
const num = abs * rateScaled * 10n ** BigInt(toExp);
const den = 10n ** BigInt(8 + fromExp);
const q = (2n * num + den) / (2n * den);
return neg ? -q : q;
}
convertMinor(9700n, 2, 2, 92_500_000n) returns 8973n, matching the worked example. Keep currency exponents in a table, never in constants like the 2 above, which only illustrates the arithmetic.
Vendor balance semantics (Modern Treasury, TigerBeetle) and the ISO 4217 list can change; check the linked sources. The list's maintenance agency is SIX. Time-sensitive figures used across this guide are in Key Numbers.
Self-Assessment
- A merchant has 500.00 pending, 200.00 available and a 50.00 reserve. A 300.00 refund arrives for a settled sale. What are the balances, and can they pay out? Available becomes −100.00 (negative), pending and reserve are unchanged, and no payout is allowed; recovery begins.
- Why not sum a merchant's USD and EUR accounts in the ledger? A sum needs a rate and a timestamp, so it is a report, not a ledger fact.
More scenarios are in the Ledger Quiz.
Related Topics
- Double-Entry Ledger Design: accounts, entries and guards used here
- Ledger Reconciliation: clearing accounts and FX clearing aging
- Payouts: how available balance becomes a payout
- Reserves and Negative Balances: holds, waterfall and liability
- Check your understanding: Ledger Quiz
References
- Ledger accounts overview — Modern Treasury documentation (vendor)
- Transaction status and balances — Modern Treasury documentation (vendor)
- Two-phase transfers — TigerBeetle documentation (vendor)
- ISO 4217 currency codes and minor units — SIX, maintenance agency