For $0.02 a page, 50 pages free, parserkit reads supplier invoices into xero.csv, Xero's 26-column bills template: dates as DD/MM/YYYY, totals checked, and each line coded from a chart of up to 500 accounts.

Turn supplier invoices into Xero bills

Send parserkit a ZIP of up to 200 supplier invoices and import one checked CSV: a 1-page invoice costs $0.02, and every bill lands in Xero as a draft with its account codes filled in.

IntegrationsUpdated

Xero

Set it up in Xero

  1. Send the invoices with your account codes

    POST each PDF, or a ZIP of up to 200 files, with preset=invoice and gl_accounts: up to 500 accounts, each with the code as Xero shows it, a name and optional keywords. Each line takes the best match.

    Request
    curl "https://api.parserkit.com/v1/parse?wait=60" \
      -H "Authorization: Bearer $PARSERKIT_API_KEY" \
      -F file=@invoice-veldhuis.pdf \
      -F preset=invoice \
      -F 'gl_accounts=[
        {"code": "710", "name": "Light fittings", "keywords": ["pendant lamp", "wall light"]},
        {"code": "445", "name": "Bulbs and electrical supplies", "keywords": ["bulb", "cable"]},
        {"code": "473", "name": "Installation and repairs", "keywords": ["installation"]}
      ]'
    Try it
  2. Check the totals

    verified means every required value has a check and none failed; VAT numbers and IBANs are checked for form too. On a discrepancy, fix that bill before it reaches Xero.

  3. Fill in Tax Type

    *TaxType comes back empty. Enter your purchases tax rate's name exactly as Xero shows it; Xero then works out Total and Tax Amount from Quantity, Unit Amount and Tax Type.

  4. Import the bills

    In the Purchases menu, select Bills, click New bill and choose Import from CSV. Drop in xero.csv, choose whether the UnitAmount prices include tax, click Confirm, then Complete import. The bills arrive as drafts for you to approve.

  5. Split at 500 items

    Xero recommends splitting a file of more than 500 items, and each bill in a file needs its own invoice number, or Xero combines them.

Example

A Dutch supplier invoice, parsed

Our sample invoice in EUR, with VAT, a part payment and both VAT numbers checked.

POSTapi.parserkit.com/v1/parse?wait=60

curl "https://api.parserkit.com/v1/parse?wait=60" \
  -H "Authorization: Bearer $PARSERKIT_API_KEY" \
  -F file=@invoice-veldhuis.pdf \
  -F preset=invoice
response.jsonverified
{
  "id": "job_d657bzhfzniw90gvm9hq",
  "status": "succeeded",
  "preset": "invoice",
  "pages": 1,
  "cost_usd": 0.02,
  "verification_status": "verified",
  "data": {
    "invoice_number": "2026-0471",
    "issue_date": "2026-10-29",
    "due_date": "2026-11-12",
    "purchase_order": "KH-PO-3318",
    "currency": "EUR",
    "vendor": {
      "name": "Veldhuis Lichtwerk B.V.",
      "address": "Oudegracht 214, 3511 NR Utrecht, Netherlands",
      "vat_id": "NL859312406B01",
      "email": "hallo@veldhuislichtwerk.example"
    },
    "customer": {
      "name": "Kanaalhuis Hotels B.V.",
      "address": "Prinsengracht 532, 1017 KJ Amsterdam, Netherlands",
      "vat_id": "NL004192837B01"
    },
    "line_items": [
      {
        "description": "Pendant lamp Lune 40, brass",
        "quantity": 6,
        "unit_price": 189,
        "total": 1134
      },
      {
        "description": "Wall light Kade, matte black",
        "quantity": 12,
        "unit_price": 74.5,
        "total": 894
      },
      {
        "description": "LED filament bulb E27, warm white",
        "quantity": 36,
        "unit_price": 6.8,
        "total": 244.8
      }
    ],
    "subtotal": 2995.3,
    "taxes": [
      {
        "label": "VAT 21%",
        "rate": 21,
        "base": 2995.3,
        "amount": 629.01
      }
    ],
    "tax_total": 629.01,
    "grand_total": 3624.31,
    "amount_paid": 1000,
    "amount_due": 2624.31,
    "payment": {
      "terms": "14 days",
      "iban": "NL29STRD0417238562",
      "bic": "STRDNL2U",
      "reference": "2026-0471"
    },
    "notes": "Thank you for your order. Delivery to Amsterdam is included."
  },
  "verification": {
    "status": "verified",
    "math_balanced": true,
    "coverage": {
      "values": 46,
      "checked": 46
    },
    "checks": [
      {
        "kind": "line_total",
        "path": "line_items[0].total",
        "status": "pass",
        "expected": 1134,
        "actual": 1134,
        "difference": 0,
        "message": "quantity x unit price"
      },
      {
        "kind": "line_total",
        "path": "line_items[1].total",
        "status": "pass",
        "expected": 894,
        "actual": 894,
        "difference": 0,
        "message": "quantity x unit price"
      },
      {
        "kind": "line_total",
        "path": "line_items[2].total",
        "status": "pass",
        "expected": 244.8,
        "actual": 244.8,
        "difference": 0,
        "message": "quantity x unit price"
      },
      {
        "kind": "line_total",
        "path": "line_items[3].total",
        "status": "pass",
        "expected": 202.5,
        "actual": 202.5,
        "difference": 0,
        "message": "quantity x unit price"
      },
      {
        "kind": "line_total",
        "path": "line_items[4].total",
        "status": "pass",
        "expected": 520,
        "actual": 520,
        "difference": 0,
        "message": "quantity x unit price"
      },
      {
        "kind": "line_total",
        "path": "taxes[0].amount",
        "status": "pass",
        "expected": 629.013,
        "actual": 629.01,
        "difference": -0.003,
        "message": "tax base x rate"
      }
    ]
  },
  "outputs": [
    {
      "name": "output.json",
      "bytes": 15457
    },
    {
      "name": "output.xlsx",
      "bytes": 10711
    },
    {
      "name": "output.csv",
      "bytes": 627
    },
    {
      "name": "quickbooks.csv",
      "bytes": 565
    },
    {
      "name": "xero.csv",
      "bytes": 1325
    }
  ],
  "warnings": []
}

Real response from . Trimmed to 3 of 5 line items and 6 of 13 checks, with bounding boxes, empty fields and file links left out.

Try it on this file

xero.csv, column by column

Xero's bills template columns, where parserkit fills each one from, and the first line of our run.

xero.csv, column by column
Xero columnFilled fromOur run, first line
*ContactNameThe vendor's nameVeldhuis Lichtwerk B.V.
EmailAddress, POAddressLine1The vendor's email and addresshallo@veldhuislichtwerk.example
*InvoiceNumberThe invoice number2026-0471
*InvoiceDate, *DueDateIssue and due date as DD/MM/YYYY; the due date falls back to the issue date29/10/2026, 12/11/2026
TotalThe grand total3624.31
DescriptionThe printed linePendant lamp Lune 40, brass
*Quantity, *UnitAmountAs printed when they multiply to the line total, else 1 at the line total6 at 189.00
*AccountCodeThe code of the account the line matched in gl_accounts, else the code of the bill's largest matched line710
*TaxTypeLeft empty for youEmpty
CurrencyThe invoice currencyEUR

Source: Xero: Import bills and credit notes

What Xero's own bill capture leaves to you

Xero turns a PDF you email or upload into a draft bill with the key details and the original attached, then tells you to open each bill and check that it added the details correctly. Every bill is checked by eye.

parserkit does that check in arithmetic before the import: lines, tax and totals added up, each line coded from your chart of accounts, and one xero.csv for the whole batch, arriving as drafts. The same job writes quickbooks.csv too.

Before you import

xero.csv fills what the invoice prints and what your gl_accounts decide. The rest is yours:

  • Tax Type: empty in our file. Enter the purchases tax rate name as it appears in Xero.
  • Inclusive or exclusive: our sample prints its lines before VAT, so choose exclusive. Xero takes one or the other for a whole file.
  • Currencies: a EUR bill needs EUR added to Xero before the import.
  • Account codes: a line no account matched, such as shipping, takes the code of the bill's largest matched line. Without gl_accounts, *AccountCode is empty.
  • Bill numbers: Xero merges bills in one file that share a number. An invoice that prints none gets its file name as *InvoiceNumber, so give each file its own name.

The file from our run

We sent the Veldhuis invoice again with the 3 account codes above. It came back verified, and its xero.csv has 5 lines, each with an account code.

TaxAmount stays empty because the invoice prints its 21% VAT once for the whole bill, not per line, so Xero works the tax out from Tax Type.

xero.csv
*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
Veldhuis Lichtwerk B.V.,hallo@veldhuislichtwerk.example,"Oudegracht 214, 3511 NR Utrecht, Netherlands",,,,,,,,2026-0471,29/10/2026,12/11/2026,3624.31,,"Pendant lamp Lune 40, brass",6,189.00,710,,,,,,,EUR
Veldhuis Lichtwerk B.V.,hallo@veldhuislichtwerk.example,"Oudegracht 214, 3511 NR Utrecht, Netherlands",,,,,,,,2026-0471,29/10/2026,12/11/2026,3624.31,,"Wall light Kade, matte black",12,74.50,710,,,,,,,EUR
Veldhuis Lichtwerk B.V.,hallo@veldhuislichtwerk.example,"Oudegracht 214, 3511 NR Utrecht, Netherlands",,,,,,,,2026-0471,29/10/2026,12/11/2026,3624.31,,"LED filament bulb E27, warm white",36,6.80,445,,,,,,,EUR
Veldhuis Lichtwerk B.V.,hallo@veldhuislichtwerk.example,"Oudegracht 214, 3511 NR Utrecht, Netherlands",,,,,,,,2026-0471,29/10/2026,12/11/2026,3624.31,,"Fabric cable 3 m, ochre",18,11.25,445,,,,,,,EUR
Veldhuis Lichtwerk B.V.,hallo@veldhuislichtwerk.example,"Oudegracht 214, 3511 NR Utrecht, Netherlands",,,,,,,,2026-0471,29/10/2026,12/11/2026,3624.31,,"Installation, hours",8,65.00,473,,,,,,,EUR

FAQ

Common questions

Can Xero import bills from a CSV?

Yes: Purchases, Bills, New bill, Import from CSV, with Xero's template. Contact Name is the one column that must be filled, and the bills arrive as drafts to approve. parserkit's xero.csv fills that template from each invoice, account codes included.

Which date format does xero.csv use for bills?

parserkit writes DD/MM/YYYY, the format Xero's bill import asks for, in every file whatever the currency.

Why is Tax Type empty?

Enter the purchases tax rate exactly as Xero shows it, and Xero calculates the tax. The invoice prints a VAT rate, not your Xero tax rate name, which is why parserkit leaves that one column to you.

How do lines get an account code?

Send gl_accounts with the request: up to 500 accounts with a code, a name and optional keywords. Each line is matched on its own text and the supplier's name, and parserkit writes the matched code in xero.csv.

What does it cost?

parserkit charges $0.02 a page, so a 1-page invoice costs $0.02, and $0.01 a page past 5,000 pages in a UTC month. Your first 50 pages on parserkit are free.

Start free

Send us your worst scan

Your first $1 is free: 50 pages with every check and export, no card.

Crumpled receipts and a printed bank statement with one line marked in green highlighter, on a dark desk