Contract number, order numbers and buyer reference on an invoice
An invoice can carry up to four references that tie it to a contract or an order. None of them is required, and most invoices need none. They matter when your customer asks for one, because the customer's accounting software, or the person who approves the invoice, uses it to find the right contract, order or department.
A reference is a number or a code that someone gave to a deal, so that an invoice can be matched to it later. Three of the four come from your customer or from your contract with them, and one is your own.
The four fields
| Field | What it holds | Where it comes from | Example |
|---|---|---|---|
| Contract number | The number of the contract the invoice is issued under | Your contract with the customer | VP-2026-114 |
| Purchase order number | The order number the customer gave you for this purchase | The customer | PO-88213 |
| Buyer reference | A code or a name the customer wants on the invoice, such as a cost centre or a contact person | The customer | 4410 / J. Tamm |
| Sales order number | Your own order or job number for the sale | You | SO-1203 |
Many invoices print the last two as "Your reference" and "Our reference", written from the customer's side. A customer who asks for "your reference" on the invoice means the Buyer reference, and "our reference" on an invoice you issue is your Sales order number.
These fields are separate from the Reference number, which is the payment reference a customer types into a bank transfer. See Invoice reference numbers for that one.
When a customer needs them
Public-sector customers ask for a contract number most often. In Estonia a procurement contract commonly says that the invoice must show the contract number and a contact person, and an invoice without them may be sent back unpaid. In Lithuania the public sector's invoice system, SABIS, looks up the registered contract by this number.
A larger company with a purchasing system usually gives you a purchase order number, and the invoice is then matched to the order by that number. Some customers also ask for a cost centre or the name of the person who placed the order, so that the invoice reaches the right approver, and that goes into Buyer reference.
When it is not clear which reference a customer means, it is worth asking which field they expect it in. A number typed into the wrong field may not be found by the customer's software.
Where the fields are
The fields are in the invoice details panel, which opens when you click the area with the invoice number and date. They stay behind the link Add contract or order number until you click it, and once a field has a value the panel shows all four straight away.
The fields are available on invoices, credit notes and recurring invoices, but not on estimates. Each one takes up to 100 characters.
A filled field is printed on the invoice under the number and the date, and an empty one leaves no trace on it.
A credit note takes all four references from its invoice, because it corrects the same sale. A duplicated invoice keeps the contract number and the Buyer reference, but its Purchase order number and Sales order number start empty, since those two usually change from one sale to the next.
A recurring invoice adds whatever is in its own fields to every invoice it generates. So a purchase order number belongs on a recurring invoice only when the customer gave one number for all of those invoices.
In an e-invoice
In an e-invoice every reference has a field of its own, so the customer's software can read it without anyone looking at the invoice. The help text next to each field also names that field in the European e-invoice standard, for example BT-12 for the contract number, in case the customer or their accountant asks for it by that name.
There is one limit worth knowing. In the Estonian e-invoice format the Buyer reference has room for 20 characters, and a longer value is sent as additional information that the receiver's software may not show. The other three fields have no such limit, and neither has an e-invoice sent over Peppol.
See Sending e-invoices to customers for how an e-invoice is sent.