The payment reference on a sales invoice
Who this page is for
Everyone asking about the read-only field that appears on a sales invoice as Payment reference or OCR.

What it is
A number printed on the invoice for the customer to write with their transfer, so the payment is recognized automatically. The server builds it when the invoice is issued, following the group's country in the settings:
- Sweden: an OCR reference — the field is then titled “OCR”. The “OCR length digit” in the settings “Adds a length digit to the OCR reference, if your Bankgiro agreement asks for one. Applies to invoices issued after the change.”
- Germany and the rest: the invoice number itself serves as the reference — titled “Payment reference”.
Its rules
- Display only, always in Latin digits, and shown only when the record carries one.
- Every invoice keeps its own reference and its title as issued: changing the country settings later never changes an issued invoice (“… invoices already issued keep their reference.”).
- A reissued invoice is a new invoice with a new reference — which is why it must be sent to the customer again; see Void and reissue.
- A sale is not issued at all before the payment details (the accounts the customer pays into) are entered: “Set the {setting} in the settings before issuing a sales invoice.”