Skip to content
BillToCSV

Xero invoice template CSV: the required columns, filled correctly

The Xero bills layout with a header row and three example records, in the column order Xero's template uses. The asterisks mark the columns Xero requires. The table below says what each one must contain, and the three that reject an import most often are the account code, the tax type and the date.

Free: browser review for one supported invoice up to 10 pages and 10 MB, without signup.

Download the template

Download Xero's own template from your import screen and compare this header row with it.Xero changes its template and its regional behaviour, and their file is the authority.

Download the Xero template

The asterisked columns, a header row and three example records from the sample bill.

Download xero-invoice-template.csv

What the converter puts in each column

The first rows

Header row and three records, exactly as the file downloads:

*ContactName,EmailAddress,POAddressLine1,POAddressLine2,POAddressLine3,POAddressLine4,POCity,PORegion,POPostalCode,POCountry,*InvoiceNumber,*InvoiceDate,*DueDate,Total,InventoryItemCode,*Description,*Quantity,*UnitAmount,*AccountCode,*TaxType,TaxAmount,TrackingName1,TrackingOption1,TrackingName2,TrackingOption2,Currency
HARBOR POINT OFFICE SUPPLY - INVOICE,,,,,,,,,,HP-20417,14/10/2026,13/11/2026,329.73,,"Copy paper, 8.5 x 11, case of 10 reams",5,38.40,,,,,,,,USD
HARBOR POINT OFFICE SUPPLY - INVOICE,,,,,,,,,,HP-20417,14/10/2026,13/11/2026,329.73,,"Ballpoint pens, box of 12 (Black)",3,6.25,,,,,,,,USD
HARBOR POINT OFFICE SUPPLY - INVOICE,,,,,,,,,,HP-20417,14/10/2026,13/11/2026,329.73,,Heavy duty stapler with 5000 staples,2,14.99,,,,,,,,USD

What a Xero bills CSV has to get right

Xero groups imported rows into a bill by the contact and the invoice number, so both repeat identically on every row. The columns it marks with an asterisk have to be present and filled, and the tax type has to be the exact name of a rate in your organisation, capitals and brackets included.

The file here follows Xero's general column order. It is not Xero's own template: download that from your import screen and compare the header row, because Xero changes both the template and the screens around it.

The asterisked columns, and why each one gets refused

The right-hand column is the failure mode. Three of these account for most refused imports: the account code, the tax type name and the date format.

Xero bill columns, what each must contain, and what breaks it
ColumnWhat it must containWhat breaks it
*ContactNameThe supplier, spelled exactly as in your Xero contacts.A near-match creates a second contact and splits the payables.
*InvoiceNumberThe supplier's invoice number, identical on every row of the bill.Blank on later rows, which splits one bill into several.
*InvoiceDateThe invoice date, in your organisation's date format.A day-month swap, which imports without an error.
*DueDateThe printed due date, or the invoice date plus the terms.Earlier than the invoice date, or blank.
*DescriptionThe line as printed on the invoice.Empty on a freight or tax line.
*QuantityA number. Use 1 where the invoice prints only an amount.Text such as 2 boxes.
*UnitAmountThe price of one unit. Xero multiplies it by the quantity.The line total typed here when the quantity is not 1.
*AccountCodeA code from your chart of accounts, active, with its leading zeros.A code that does not exist, is archived, or lost its zeros to a spreadsheet.
*TaxTypeThe exact name of a tax rate in your organisation.A typo, different capitals, or a rate name from another country.
TotalThe bill total as printed, where your template carries it.A total that disagrees with the lines and is not investigated.
TaxAmountThe tax for the line, where the bill breaks it out.Tax counted twice when the bill also shows a separate tax line.
CurrencyThe ISO code for a foreign-currency bill.A symbol instead of a code.

Preparing the file

  1. Download Xero's template from your own organisation

    It carries the current column names and the asterisks. Compare it with this page before a batch; the file here is a guide to the columns, not a substitute for the one your subscription produces.

  2. Fill the contact and the invoice number on every row

    Both repeat exactly, character for character. A different invoice number on one row splits the bill, and a differently spelled contact can create a second contact.

  3. Use your organisation's date format

    Xero reads dates in the format set in your organisation's regional settings. Four-digit years, one format throughout, and read the first imported bill on screen because 03/04/2026 is valid both ways round.

  4. Take the tax type name from your tax rates

    Copy it exactly, including capitals and brackets. A near-match is rejected, and a name that is right for another country is simply wrong here.

  5. Check quantity times unit amount against the printed line

    Xero calculates each line as quantity times unit amount. Where the printed total is not an exact product, for example because the unit price was rounded on the invoice, the two will differ by a cent or more. Decide which figure you keep before you import.

A blank Xero template, a generic OCR app, or the converter

Three routes to a Xero bills import file
What you compareTyping it in by handA generic OCR appBillToCSV
Required columnsPresent, if you keep the header intact.Its own, unless it has a Xero mode.The asterisked columns filled where the document carries the value.
Tax type namesYou copy them from your tax rates screen.Unlikely to know your organisation's rate names.Left blank unless you set one for the batch, rather than guessed.
Account codesYou type them, and a spreadsheet may eat the zeros.Not usually supplied.Left blank for you to set once per supplier.
Line arithmeticOnly if you add a formula.Rarely reported at line level.Quantity × unit amount against every printed amount, with the difference recorded.
Time for forty billsAn afternoon.Faster, but each bill still needs opening.Drop the stack, clear the flagged rows, download.

Questions people ask

Is this Xero's own template?

No. It follows Xero's general column order and marks the required columns, but Xero publishes its own template on your import screen and that is the authoritative one. Download it and compare the header row before a batch.

Which columns does Xero require?

As of general knowledge, the ones marked with an asterisk: contact name, invoice number, invoice date, due date, description, quantity, unit amount, account code and tax type. Confirm against the template your organisation downloads.

Why is my tax type rejected?

Because it has to match the exact name of a rate in your organisation, including capitals, brackets and any trailing space. Names differ by country and can be edited, so copy them from the tax rates screen rather than from a guide.

What date format should the file use?

The one set in your organisation's regional settings. Use four-digit years and one format throughout, and read the first imported bill on screen, because a day-month swap is valid either way and raises no error.

Why do my line totals differ by a cent?

Xero calculates each line as quantity times unit amount. Where the supplier rounded the unit price, the printed line total is not an exact product. The difference is real and worth recording rather than hiding.

Do account codes or names go in the file?

Codes, from your chart of accounts, and the account must exist and be active. Format the column as text in a spreadsheet so a code with a leading zero survives.

Can the converter write the Xero file for me?

Yes. Drop the supplier bill on the home page and download the Xero layout with the arithmetic checked before it is written. The free allowance is three bills on the house, 20 pages a bill, 30 pages in total.