Skip to main content

Ledger Quiz

Last Updated: 2026-12-01 Status: Complete

Test your judgment on journal entries, balances, multi-currency handling and ledger reconciliation. Answers are collapsed; try each question before opening it.

Question 1: Posting a sale with a fee​

A sub-merchant sells $100 of goods and you charge a $3 fee. What do you post at capture, and what waits for later events?

View answer

At capture, debit the receivable from the processor 100.00, credit the sub-merchant's pending payable 97.00 and credit fee revenue 3.00. Cash is not touched, because the bank has not received anything. When the settlement and fee file arrives, post processing cost against the receivable. When settlement is confirmed and any hold ends, move 97.00 from pending to available. When the bank statement shows funding, debit cash and credit the receivable; it should then be zero. See Double-Entry Ledger Design.

Question 2: Chargeback after payout​

A $100 chargeback arrives for a sale whose proceeds were already paid out. How do you record it, and what changes if the merchant wins representment?

View answer

Debit the merchant's available payable and credit the processor receivable for 100.00. The merchant balance goes negative, which is correct: they owe the platform. Recovery (cash in) and write-off (loss expense) are separate entries with their own approvals. If representment succeeds, the processor re-credits the platform; post a new entry that re-credits the merchant (or reverses the loss if already written off). Never edit the original entry. See Double-Entry Ledger Design and Representment.

Question 3: Stored balance drift​

A merchant's cached balance disagrees with the sum of their ledger lines. Which is right, and what do you do?

View answer

The lines are the source of truth. A cache is a projection that can always be rebuilt. Stop using the cached value for payout decisions, recompute from lines, and find the code path that updated one without the other; a mutable balance column with no history cannot tell you which was right, which is why balances are derived. Rebuild the snapshot, then add a scheduled job that compares every snapshot with a recomputed sum and alerts on any difference. See Double-Entry Ledger Design.

Question 4: Double payout​

A payout job approves two payouts for one merchant within a second, and available goes negative. What was wrong and how do you fix it?

View answer

Either the check and the write were not atomic, or the job read the balance from a lagging replica. Both payouts saw the same funds. Do the check inside the posting transaction on the primary: lock the merchant's available account (in a stable order) or check its version, compute the balance, then insert the payout entry. Pass the account as a guard only for the payout entry, since chargebacks must still post. Make the payout posting idempotent on the payout id. See Pending vs Available Balance and Idempotency.

Question 5: Which balance can they withdraw?​

A merchant shows 500.00 pending, 200.00 available and a 50.00 reserve, then a 300.00 refund of a settled sale posts. What do the balances show and what happens to payouts?

View answer

Refunds of settled sales debit available: available becomes −100.00; pending (500.00) and reserved (50.00) are unchanged. The refund posts even though available is insufficient because the platform owes the cardholder regardless. Payouts are blocked while available is negative, and recovery starts: future settlements, the reserve if the agreement allows it, a bank debit, then write-off. Show the negative balance with a recovery state. See Reserves and Negative Balances.

Question 6: USD to EUR​

A cardholder pays USD 100.00 with a USD 3.00 fee, and the merchant settles in EUR. How do you book the conversion, and what do you store?

View answer

Post one entry balanced separately in each currency through an FX clearing account. USD: debit processor receivable 100.00, credit fee revenue 3.00, credit clearing 97.00. EUR: debit clearing at the market value, credit the merchant payable at the applied rate, credit spread revenue for the difference. Store the rate, rate source, timestamp and spread in the entry. When treasury converts, both clearing balances return to zero and any remainder posts to FX gain or loss. A nonzero clearing balance means a conversion is unmatched. See Pending vs Available Balance.

Question 7: Yen and dinar​

A teammate hardcodes two decimal places and stores amount * 100. Which currencies break, and what is the fix?

View answer

JPY and KRW have zero minor-unit decimals, so multiplying by 100 overstates them by a factor of 100; BHD, KWD and other three-decimal currencies would be understated by a factor of 10. Keep a currency table loaded from the ISO 4217 list with each exponent, convert at the API boundary using it, store integer minor units and never floating point, and add property tests across currencies with different exponents. Conversion helpers must take both exponents. See Pending vs Available Balance.

Question 8: Processor receivable that will not clear​

receivable_processor has a 1,240.00 debit balance, a few days old. How do you investigate?

View answer

A clearing account that does not return to zero signals a missing, late or incorrect event. List the open items by payment id and age, then check the likely causes: a fee file not ingested, a refund or chargeback netted in funding but not posted, a partial funding, or bank cash not yet matched. Compare each open item with the settlement file and the bank statement using trace and reference numbers. Fix by posting the missing entries, not by editing. Matching workflows are in Three-Way Payment Reconciliation; the ledger view is in Ledger Reconciliation.

Question 9: Unidentified deposit​

A bank credit arrives with no usable reference. What do you post, and what rules govern clearing it?

View answer

Post it so cash is right and the ledger stays balanced: debit cash, credit suspense, with the bank reference and sender text in metadata. Assign an owner and a due date. Resolve by identifying the sender from remittance data or a merchant inquiry, then reclassify with a new entry from suspense to the correct account. After your policy window, return the funds or follow unclaimed-property rules as decided by finance and legal counsel, again as an approved entry. Suspense that only grows means matching is broken. See Ledger Reconciliation.

Question 10: One hundred wrong settlements​

A bug posted wrong amounts for 100 transactions and some merchants have been paid. How do you correct it while keeping audit integrity?

View answer

Stop the cause, then identify the affected set through reconciliation and freeze it. Compute per-transaction and per-merchant deltas. Check where each item's money is now (pending, available or paid out). Do not blindly reverse the original lines: either reverse the dependent entries in reverse order and repost, or post a delta against the account that holds the money, so a paid-out item becomes a negative available balance rather than a negative pending one. Each entry carries a reason, ticket reference and the original effective_at. Never update rows. Re-run reconciliation until the clearing accounts return to zero, notify affected merchants, handle any resulting negative balances under policy, and keep the approvals as an audit record. See Ledger Reconciliation and Audit Trails.

Share: