Why Subledgers Matter: Keeping Invoice Detail and GL Balances in Sync

The general ledger holds the balance; the subledger holds the invoices behind it. How Paprel posts both from one workflow and gives you reports to prove they agree.

Paprel Engineering Team
7 min read
Three invoice subledgers connect through a control point to one general ledger

A general ledger tells you AR is $48,200. It can't tell you which twelve invoices make up that number. That's the subledger's job — and here's how Paprel keeps the two from drifting.

What a Subledger Actually Does

A subledger holds the document-level detail behind one general ledger account. That GL account is called a control account, and its balance should always equal the total of its subledger.

Control account (GL)Subledger detail
Accounts ReceivableOpen invoices, credit notes and payments, per customer
Accounts PayableOpen bills and bill payments, per vendor

The GL answers "what is our position?" The subledger answers "which documents, which customers, how old?" You need both, and they have to agree.

Why Product Teams Need Subledgers

Once your product offers accounting, users stop asking about totals and start asking about documents:

  • Which invoices are still open, and for how much?
  • What does this customer owe us today?
  • Which bill did this payment settle?
  • Why did receivables move by $400 yesterday?

If your system stores only GL journal lines, each of these turns into a report you assemble by hand. If it stores only documents, you have no books. A subledger links the two: each document carries its open balance and posts the matching lines to the control account.

Where Weak Subledger Design Causes Problems

Drift between the two is the classic failure. Some of the ways it happens:

  • A manual journal hits the control account. Someone "fixes" AR with a hand-written entry. The GL balance moves; no invoice does. AR no longer equals the sum of open invoices, and nobody can say which customer the difference belongs to.
  • A document changes without posting. An invoice is edited or a payment recorded, but the journal for it is missing or wrong. The subledger moves; the GL doesn't.
  • Partial payments and credits. A payment that covers part of an invoice, or a credit note applied against one, has to reduce exactly that document's open balance and post exactly that amount to the control account.

Each of these balances on its own. The trial balance still ties, which is why drift goes unnoticed until someone reconciles.

How Paprel Keeps Them in Sync

Paprel routes control-account postings through documents and payments, and gives you reports that flag anything else and prove the two sides agree.

Documents and payments post to AR and AP. Invoices, credit notes and payments post receivables; bills and bill payments post payables. Keep manual journals for other accounts. The 5-minute quickstart says it directly: receivable and payable control accounts are posted through document and payment workflows, not manual journals.

The customer record anchors the receivables subledger. Every invoice, credit note and payment for a customer links back to the customer record you create with POST /v1/clients. That makes "what does this customer owe?" a single read instead of a report you build (20-minute guide, step 2).

Reports check the tie-out:

ReportWhat it tells you
GET /v1/reports/trial-balanceThe trial balance, plus a control_account_reconciliation block per control account: ledger_balance, subledger_balance, difference, is_reconciled
GET /v1/reports/control-account-exceptionsJournals with exceptional lines on the AR or AP control accounts, with is_manual, ar_net_debit and ap_net_debit per journal
POST /v1/reports/control-account-exceptions/{journal_id}/reviewAcknowledges an exception on that exact journal version, with a review note
GET /v1/reports/source-posting-auditDocuments whose expected posting effects are missing, ambiguous or mismatched (include_complete=true also returns completed ones)
GET /v1/reports/customer-statement?client=…&date_range=…One customer's dated statement in company base currency

Each exception entry carries reviewed_at, reviewer_id and review_note, so an acknowledgement is recorded against the journal version it covers.

A Worked Example: Invoice 1,000, Partial Payment 400

Brightline GmbH is invoiced 1,000.00. It pays 400.00 a week later.

1. The invoice posts. POST /v1/invoices for Brightline's people_id. When it posts, the invoice generates:

AccountDebitCredit
Accounts Receivable (control)1,000.00
Revenue1,000.00

2. The partial payment. Record it against the invoice with an idempotency key, so a retry can't pay it twice:

Shell
curl -X POST "$BASE/v1/invoices/<invoice anchor_id>/payment" \
  -H "$AUTH" -H "$PARTNER" -H "$CT" \
  -H "Idempotency-Key: pay-brightline-0001" \
  -d '{
    "payment_amount": "400.00",
    "payment_date": "2026-10-29",
    "payment_mode": "<payment mode>",
    "deposit_account": "<bank account id>",
    "reference_number": "WIRE-0001"
  }'

The payment generates:

AccountDebitCredit
Cash · Operating400.00
Accounts Receivable (control)400.00

3. Both sides now say 600.

ViewBalance
Subledger: Brightline's invoice600.00 open of 1,000.00
GL: Accounts Receivable control1,000.00 Dr − 400.00 Cr = 600.00

4. Prove it. On a company where Brightline is the only receivable, the trial balance's reconciliation entry for receivables would read (values illustrative):

JSON
{
  "account_code": "account_receivable",
  "ledger_balance": "600.00",
  "subledger_balance": "600.00",
  "difference": "0.00",
  "is_reconciled": true,
  "tolerance": "0.00"
}

GET /v1/reports/customer-statement for Brightline shows the same 600.00 from the customer's side, and GET /v1/reports/control-account-exceptions has nothing to report for these two journals because both came from the invoice workflow.

What to Evaluate: Five Sandbox Checks

Don't take any vendor's word on subledger integrity, ours included. Run these in a sandbox:

  1. Partial payment. Invoice 1,000, pay 400, and confirm the document shows 600 open and the AR control account moved by exactly 400.
  2. Tie-out. Read GET /v1/reports/trial-balance and check control_account_reconciliation reports difference: "0.00" for receivables and payables.
  3. Manual journal to a control account. Post a manual journal to the AR control account with POST /v1/accounting/journals. Receivables shouldn't change silently. Note what happens: is the journal refused, or does it show up in GET /v1/reports/control-account-exceptions with is_manual: true waiting for review? Ask every vendor you evaluate the same question.
  4. Posting audit. Run GET /v1/reports/source-posting-audit after your test flow. An empty result means every document produced the posting effects it should have.
  5. Retry safety. Repeat the payment with the same Idempotency-Key and confirm you get the original payment back and the open balance stays at 600.

How customer and vendor records work in Paprel: customer and vendor records.

Trace a receivable end to end in the 20-minute guide →
Posted by: Paprel Engineering Team · Engineering
Posted on: (Updated: October 29, 2026)
Evaluate Paprel

Build in sandbox, launch with a production trial

Use sandbox for developer testing with no billing. When you are ready for real workflows, start production on a monthly plan with a 14-day free trial.

API-First Delivery
Audit-Ready Controls
Sandbox And Guided Rollout