A customer payment settles one or more invoices and updates the account balance. Most arrive on their own through a payment gateway; this page covers the ones you handle: paying an account by hand, importing payments in bulk and finding the ones that failed. To pay a single invoice from the invoice itself, see Take a payment.


Card payments through a gateway return a result straight away. Bank and direct debit payments usually settle in 3 to 5 business days, depending on the gateway.
Use this when migrating into PracBill or loading a batch from another system.

| Column | Type | Meaning |
|---|---|---|
cid |
integer | Customer ID. Either cid or iid is required. |
iid |
integer | Invoice ID to apply the payment to. |
date |
datetime | Date (and optional time) of the payment. |
type |
string | Payment type: the name or integration name of a payment option set up in your department. |
amount |
float | Positive for a payment, negative for a refund. |
notes |
string | Payment notes. |
The import only creates payments; it never updates or deletes. Errors are listed once, at the end of the import, with the row number and reason. Copy them before leaving the page.

The report lists every gateway payment (card or direct debit) that failed in the period, with the gateway message after the note, for example Online Payment [The transaction ID already exists!]. Negative payments are ignored. A payment that was retried successfully later still appears here.
One payment can be split across several invoices. On a statement each split prints under the
single payment as [ Applied $X to Inv #N ]. That is normal, and it is what you are seeing if one
payment appears against several invoice numbers.
Which invoices it reduces depends on how the payment arrived. The three paths do not follow the
same rule.
| How the payment arrived | What it pays |
|---|---|
| You key it in (Take Payment) | You decide. The form lists the customer's unpaid invoices with each row pre-filled to its full balance, and every row is editable. If you type a figure into Total Paying, PracBill fills the rows from the top down in the order they are displayed, and anything left over goes on the last row. Sort the list by clicking a column heading if the order matters to you |
| An automatic debit or a payment run | Invoices due that day are paid first. Only what is left over follows the rule below |
| The customer portal, the API, or the gateway | The rule below |
The rule below is "oldest first by invoice number, usually" — and usually is the honest word.
PracBill walks the customer's unpaid, unvoided invoices and fills each in turn, but it does not
explicitly sort them. In practice they come back in invoice-number order, which is creation
order. It is not sorted by invoice date and not by due date, so a backdated invoice will not
necessarily be paid first. If the order matters for a particular payment, key it in yourself and
set the amounts.
An overpayment does not become a credit note, and it does not sit on the account as a credit
balance. PracBill books it against an invoice:
In Xero it looks different, and that is by design. Xero refuses a payment larger than an
invoice's amount due, so PracBill records the surplus in Xero as a RECEIVE-OVERPAYMENT bank
transaction and allocates it to each invoice up to that invoice's amount due in Xero. Anything
still left over stays in Xero as an unallocated overpayment credit on the contact. You allocate
it from Xero Logs → Overpayments. So PracBill shows the surplus against an invoice while Xero
shows it as a credit on the customer — the two statements will not match on that line.
A payment dated before your Xero lock date is skipped rather than re-dated. It will not
appear in Xero at all until the lock moves or the payment is re-entered.
You can change where a payment was applied. Open the payment itself: it lists its current
splits alongside the customer's other open invoices, and you can edit the amount against each one
and save.
Moving a payment to a different customer is a separate, newer action (from v26.7.9). It puts
the whole amount onto the new customer's first open invoice, so check the result and re-split
it if the customer has more than one invoice outstanding.
Related: Payment methods, Payment gateways.