Payments

Cash receipts, disbursements, and credit or debit memos — the posted transactions that settle AR and AP.

A payment is a posted cash event that settles what a party owes you or you owe them. A Receipt is money in from a customer; a Disbursement is money out to a supplier. Alongside cash, a credit or debit memo adjusts a balance without cash. Both are standalone documents with their own lifecycle, and both settle invoices through one shared row: the invoice settlement. This page is the entity view. For settlement seen from the invoice's side, see Invoices.

NOTE

A payment is a real transaction record, not a field on an invoice. You create a payment, stage which invoices it applies to, then post it. Marking an invoice "Paid" is a derived status that follows from posted settlements, not something you set.

Payments

A payment carries a party, a bank account, a date, a currency, an exchange rate, and a total. Exactly one counterparty is set: a customer or a supplier, never both. Direction and party are deliberately decoupled so refunds work: a Disbursement can pay a customer (refunding an AR credit) and a Receipt can come from a supplier (refunding an AP debit).

FieldWhat it is
paymentTypeReceipt (AR, money in) or Disbursement (AP, money out)
customerId / supplierIdExactly one — a Receipt requires a customer, a Disbursement a supplier
bankAccountThe GL account the cash moves through
totalAmountCash amount. May be zero — see pure credit-application below
currencyCode, exchangeRateThe payment's currency and its rate to base currency
reference, memoFree-text reference and note

Payments number per company from a PAY-YYYY-MM- sequence.

Credit and debit memos

A memo is payment-shaped but non-cash: a party, an amount, and a reason general-ledger account instead of a bank account. It's its own document (not an invoice line). direction is whether it credits or debits the party's control account, and the four party-by-direction combinations map cleanly to AR/AP movement:

Party + directionEffect
Customer + CreditAR down (a return or allowance to the customer)
Customer + DebitAR up (an additional charge)
Supplier + DebitAP down (a credit the supplier owes you)
Supplier + CreditAP up (an additional amount you owe)

A memo belongs to exactly one party. Its reason account is not a user choice: at posting Carbon derives it from the company's account defaults by party side (a customer memo uses the sales-discount account, a supplier memo the supplier-payment-discount account) and stamps it on the memo for the audit trail. Direction only flips which side of the entry the control and reason accounts land on.

Credit and debit memos number independently, from CR-YYYY-MM- and DR-YYYY-MM- sequences.

The settlement row

Cash and memos both settle open items through one primitive: the invoice settlement. Each row nets one source against one target.

FieldType
Exactly one of a paymentId (cash) or a memoId (memo) funds the settlement.
Exactly one of a sales invoice, a purchase invoice, or a memo. (A balance-increasing memo is itself an open item, settled by targeting it.)
Principal that reduces the target's balance.
An early-payment discount you're granting. Cash payments only — a memo-sourced settlement can't carry one.
A remainder you're forgiving to the write-off account. Cash payments only.
When the application takes effect.

At least one of applied, discount, or write-off must be positive. An AR source only settles AR targets for the same counterparty, and an AP source only settles AP targets — the posting functions enforce party and side consistency (a Receipt rejects purchase invoices, a Disbursement rejects sales invoices, and a payment can only settle its own party's invoices).

NOTE

Settlements are staged while their source is Draft and only go live when it posts. This includes a memo-sourced "apply credit" made through a payment: even though the memo itself is posted, its credit application is tied to the payment applying it and doesn't count until that payment posts — so the composer stays consistent with cash applications.

Lifecycle

Payments and memos share one lifecycle. Draft is freely editable; posting books the GL entries and freezes the applications; voiding reverses. Voided is terminal.

Off-track
Posted
The GL journal is written and the settlements go live. Applications are frozen — to change how a posted payment lands, void it and re-enter it.

Only a Draft can be deleted; a Posted payment or memo must be voided instead, which preserves history. Voiding is only allowed from Posted.

What posts to the general ledger

Posting only touches the ledger when accounting is enabled for the company; otherwise the document still moves to Posted and its settlements still apply, but no journal is written.

  • A payment books the bank account against the AR or AP control account (receivables for a customer, payables for a supplier), split per application. Each settlement's discount goes to the discount account and its write-off to the write-off account. A single realized-FX plug reconciles the base-currency difference when the payment's rate differs from the invoice's, to the realized exchange gain or loss account.
  • A memo books a balanced two-line entry: the control account against the derived reason account. Applying a balance-reducing memo to an invoice afterward is GL-neutral — both sit in AR/AP — except for any realized FX.

Every payment and memo journal line is tagged with the counterparty's type and entity dimensions, so AR and AP can be reported by customer or supplier. Voiding emits a paired reversing journal rather than mutating the original, and carries the same dimensions so dimension-filtered balances net to zero. See Accounting & the ledger for where these entries land.

On-account credit and overpayment

Applying more than an invoice's open balance is blocked per invoice — a settlement can't exceed what's left to collect on that invoice, and the cap counts every posted settlement against it, cash and memo alike.

A payment's cash total, though, need not equal what it applies:

  • Overpayment — when a payment's cash exceeds the invoices it applies to, the remainder stays on the party's account as on-account credit, ready to apply to a later invoice.
  • Pure credit-application — a payment with zero cash that only applies the party's existing posted credits to open invoices. This is why totalAmount may be zero.
  • Applying more than cash — when applications exceed the payment's cash, the excess draws down the party's available on-account credit (the net unapplied cash on their other posted same-direction payments). Only same-direction payments contribute: a Receipt from a customer leaves credit, a Disbursement to the same customer consumes it. Applying more credit than the party actually has errors out.
GOOD TO KNOW

Carbon forgives dust. When settlements leave a balance under one cent — smaller than the currency can represent — the invoice reads fully Paid rather than sitting a fraction of a cent short.

The AR / AP workbench

The Receivables and Payables workbenches present each side as an aged tree: counterparties at the root carrying the current and past-due aging buckets, expanding to the open documents (invoices, credit memos, debit memos) beneath them, plus any unapplied on-account credit. Each side also runs a GL tie-out that compares the subledger balance to the AR or AP control-account balance and flags any variance. Payments and memos are the transactions that move those numbers.