Payments and allocation
How is a payment tied to the documents it settles? Xero stores one payment record per invoice. QuickBooks and NetSuite write one payment with many allocation lines. Going from the second shape to the first turns one user action into N payment records, and a Xero batch write can fail item by item.
Endpoints
Xero
PUT /Payments, PUT /BatchPayments
One record per invoice, but an array per call; BatchPayments settles many invoices in one call
QBO
POST /payment, /billpayment
Separate entities for AR and AP
NetSuite
POST /record/v1/customerpayment
apply sublist carries the allocations
The same concept in three vocabularies
Read across a row. An empty cell means the concept has nowhere to live in that system. Design around it; don't paper over it.
- Native
- — A field or object exists for it
- Partial
- — Exists with a caveat that changes what you can build
- Derived
- — Not stored — you compute it
- Absent
- — Nothing in the API
What differs, and what to do about it
Each difference comes with how to handle it.
One user action, N payment records, per-item failure
XeroSettling five invoices with one bank receipt is one payment with five allocations on QBO and NetSuite, and five Payment records on Xero. Xero accepts them in one call — PUT /Payments takes an array, and BatchPayments settles many invoices at once — but with summarizeErrors=false each item succeeds or fails on its own. Three of five succeed and the ledger holds a half-applied receipt that reconciles to nothing.
Do — Write Xero payments through a job with a stable idempotency key, and check the result of every allocation in the response. The payment is not 'recorded' until every allocation succeeds; show a partial state honestly when it does not.
Unapplied cash is a separate object in Xero and most integrations skip it
XeroXero splits it into Overpayment (the customer paid too much against an invoice) and Prepayment (they paid before an invoice existed), each with its own endpoint. Neither appears in /Invoices. An AR figure built from invoice balances alone disagrees with Xero's own aging report by exactly the unapplied amount.
Do — Fetch both endpoints, model them as documents with no lines, and give unapplied cash its own row in the aging table. Tie to the ledger's aging report and surface any variance.
AP payments are a different entity in QuickBooks
QBOPayment settles invoices; BillPayment settles bills. They have different shapes, different fields and different endpoints. A single 'payments' sync that reads only Payment silently omits every supplier payment.
Do — The adapter exposes one payments read that fans out to both entities and tags each with its direction.
The same fact, different payloads
Stacked, not tabbed, so you can compare two shapes without holding one in your head.
Xero — one record per invoice; five invoices means five of these
QBO — one payment, allocations as lines
NetSuite — apply sublist, unapplied lines left false
The type the components consume
What this changes in the interface
Every difference above that reaches the screen, and what the component does about it.
- Xero allocation writes are not atomic
- CashApplication shows per-allocation state during a write, and a failed allocation is a visible, retryable row — never a single red toast over a form the user has to re-enter.
- Unapplied cash is real money in a separate object
- AgingTable renders an explicit unapplied row and ties the total to the ledger's own aging report, with the variance shown when it exists.
- Payment method is free text on Xero
- The method filter is capability-driven: a managed list where the source has one, a text search where it does not.
Where the accounting is explained
What consumes this payload
The components read the normalized object above. Here are the surfaces it feeds, the glossary entries for its concepts, and the document that explains the accounting.
- CashApplicationThe highest-value screen in AR. Every case is a first-class path.
- PaymentSuggestionInvoice combinations summing exactly to a lump sum.
- PaymentRunBuilderShows the cash balance remaining after the run.
- PaymentStatusTimelineSubmitted → sent → settled, with real timestamps.
- ApplicationAssigning received cash to specific invoices
- Unapplied cashCustomer cash received but not yet assigned to an invoice. It reduces that customer's AR; only a net credit balance is reclassified to a liability at period end
- Payment runA batch of payments released together
- SettledFinally and irrevocably transferred
- Order to cash (AR)The receivables stack from quote to revenue: quote → order → fulfillment → invoice → collection → cash application → revenue.
- Cash & treasuryCash is the only balance sheet account where an independent third party, the bank, says what the balance should be. That makes it the easiest account to verify and the one where a break hurts most.
Compared acrossXero docsQuickBooks Online docsNetSuite docs