Guides › Xero invoice import CSV

Xero sales invoice import CSV: every column explained

Short answer. Xero imports sales invoices from a CSV with 27 fixed column headings. Nine are required (their names start with *): contact name, invoice number, invoice date, due date, description, quantity, unit amount, account code and tax type. Each row is one invoice line; rows that share an invoice number become one invoice. Imported invoices arrive as drafts for you to approve.

Where to get the template

In Xero, go to Sales › Invoices › Import and download the template file. Use Xero's headings exactly as they are, including the asterisks: a file whose headings differ is rejected.

The 27 columns

ColumnRequiredWhat goes in it
*ContactNameYesThe customer, written exactly as the contact is named in Xero
EmailAddressNoContact email
POAddressLine1 – POAddressLine4, POCity, PORegion, POPostalCode, POCountryNoPostal address of the contact
*InvoiceNumberYesYour invoice number; every row with the same number is one invoice
ReferenceNoA good place for the customer's purchase order number
*InvoiceDateYesDate in your organisation's format (day/month/year in Australia)
*DueDateYesSame format as the invoice date
InventoryItemCodeNoAn item code from Xero's inventory (see the warning below)
*DescriptionYesThe line description
*QuantityYesQuantity on the line
*UnitAmountYesPrice per unit
DiscountNoLine discount
*AccountCodeYesRevenue account, for example 200 (Sales) in Xero's standard chart of accounts
*TaxTypeYesThe name of a tax rate in your organisation, for example GST on Income
TrackingName1, TrackingOption1, TrackingName2, TrackingOption2NoTracking categories, if you use them
CurrencyNoOnly for multi-currency organisations
BrandingThemeNoName of an invoice branding theme

Four details that decide whether the import works

  1. Dates follow your organisation's region.

    For an Australian organisation, the import page says dates are assumed to be in English (Australia) format, for example 25/12/2026 or 25 Dec 2026. Organisations in other regions see their own format in the same note. If you prepare the file in a spreadsheet set to US dates, check the column before saving as CSV.

  2. Tax type is a name, not a percentage.

    *TaxType must match a tax rate's name as it appears in Settings › Tax rates. In an Australian organisation the standard rate is GST on Income. UK organisations use the name of their VAT rate. A name Xero does not recognise stops the import.

  3. Choose tax exclusive or inclusive at import.

    When you upload the file, Xero asks whether the UnitAmount field is tax exclusive or tax inclusive. If your unit prices exclude GST or VAT, choose Tax Exclusive; otherwise every line total is off by the tax.

    Xero's Import your sales invoices page with the file chosen and Tax Exclusive selectedFictional sample data
    Step 3 of Xero's import page: the file chosen and Tax Exclusive selected.
  4. Item codes create items.

    If you fill InventoryItemCode with a code Xero does not know, Xero creates a new inventory item with that code (checked in our Xero test organisation, October 2026). Only fill this column when your product codes come from Xero itself; otherwise leave it empty and put the code in the description.

One invoice, several lines

Xero groups rows by *InvoiceNumber. A purchase order with five products is five rows with the same invoice number, the same contact and the same dates, and a different description, quantity and unit amount on each row.

*ContactName,*InvoiceNumber,Reference,*InvoiceDate,*DueDate,*Description,*Quantity,*UnitAmount,*AccountCode,*TaxType
Harbor Lane Cafe,SO-00001,7300,01/10/2026,15/10/2026,CUP-HOT-8 Hot cup 8 oz white 1000,10,41.00,200,GST on Income
Harbor Lane Cafe,SO-00001,7300,01/10/2026,15/10/2026,FILM-18 Cling film roll 18 in 2000 ft,4,24.30,200,GST on Income
Shortened to the required columns for reading; a real file keeps all 27 headings in Xero's order. Fictional sample data
Xero confirming that the imported file contains 4 invoices and 4 new draft invoices will be importedFictional sample data
Before anything is created, Xero says how many invoices the file holds.

Common mistakes

  • Edited headings. Renamed, removed or reordered columns: start again from Xero's template.
  • Contact names that almost match. Xero matches *ContactName to an existing contact by name; a name it does not know becomes a new contact. So "Harbor Lane Cafe" and "Harbor Lane Café" end up as two contacts. Copy names exactly as they appear in Xero.
  • Spreadsheet formulas. A description starting with =, +, - or @ can be read as a formula when the file is opened in Excel. Prefix such cells with an apostrophe.
  • Wrong tax setting at upload. Totals off by exactly 10% (GST) or 20% (VAT) usually mean tax exclusive/inclusive was chosen wrongly.
An imported draft invoice in Xero with four lines, account 200 - Sales, GST on Income, subtotal 465.05 and total 511.56Fictional sample data
The result: a draft invoice with every line, the account, GST and the total.

Getting purchase orders into this format

If your invoices start as customer purchase orders (PDFs, emails, spreadsheets), someone has to read each one and fill these columns. SYSLUME Order Intake reads the orders, checks every line against your own catalogue and customer list, and, after a person approves each order, exports this file ready for Xero's import. You can download a sample Xero file from the demo.

For the other ways to get purchase orders into Xero, and when each one makes sense, see How to turn customer purchase orders into Xero invoices.

Questions

Does the Xero import create approved invoices?

No. Imported sales invoices arrive as drafts. You review and approve them in Xero.

Can one file hold many invoices?

Yes. Each distinct *InvoiceNumber becomes its own invoice.

What account code should I use?

The revenue account the sale belongs to. In Xero's standard chart of accounts, 200 is Sales; check your own chart under Accounting › Chart of accounts.

Why does my import fail on tax type?

The value must be the exact name of a tax rate in your organisation, not a percentage.

Try it with your own orders

Order Intake reads customer purchase orders and writes this file for you. Free for 30 days or 100 orders, no card.

Start the free trial