Skip to content

The Fortnox Lön payroll file (PAXml)

Payroll & reporting 3 min readUpdated 4 weeks ago

The PAXml 2.0 file CLVR builds for Fortnox payroll, what each transaction holds, and which lines are left out.

Fortnox Lön is a PAXml 2.0 file, the standard Swedish payroll XML. It's made for importing into Fortnox, not for reading. To read the same numbers first, download Excel.

Get the file

On Reports, select Download on the month, then Fortnox Lön. The file is named like 2026-05-fortnox-report.xml.

The Preview shows the file's transactions as a table, one row per transaction. Its summary says, for example, 7 transactions, 6 people.

The parts of the file

PartWhat it holds
HeaderYour company name, your organisation number without the dash, when the file was built, and the program, CLVR Benefits.
Transactions (lönetransaktioner)One transaction per line, grouped by employee.
Employees (personal)One entry per employee in the file: first name, last name and personnummer. Fortnox uses it to match each transaction to the right person.

What each transaction holds

FieldWhat it holds
anstidThe employee number.
persnrThe personnummer, as 12 digits without the dash.
lonkodThe pay type: UTLÄGG for an expense report, FÖRSKOTT for a Benefits store purchase, AVDRAG for a deduction, the salary deduction on a purchase among them.
lonartThe löneart set for the category or benefit, when there is one. Löneart: the pay code your payroll system books a line on.
benamningA short text: the category for an expense report, the benefit for a purchase, Overused benefit allowance or Löneväxling pension for a deduction, and the benefit followed by (löneavdrag) for a purchase's salary deduction.
datumThe date the expense was approved.
beloppThe amount, with two decimals.
Note.

A transaction without a löneart is still in the file, just without lonart. Set lönearter on Benefit settings.

Which lines are included

LineIn the Fortnox file
Approved expense reportYes, the amount the allowance covered
Approved Benefits store purchase from the allowanceYes, the amount the allowance covered
Purchase paid fully from salaryNo. There's nothing from the allowance to report. Its salary deduction is in.
Salary deduction on a purchase, the part the allowance didn't payYes, as a negative AVDRAG on the nettolöneart
Line of 0 kr or lessNo
Overused allowance deduction for a leaverYes, as a negative AVDRAG
Salary sacrifice to pensionYes, as a negative AVDRAG on the bruttolöneart

The Excel preview marks the lines the Fortnox file leaves out in orange.

Troubleshooting

  • Fortnox rejected the file. Check that you imported the Fortnox Lön file, not Excel or Flex HRM. Only Fortnox Lön is PAXml.
  • An employee has no personnummer in Fortnox. The personnummer comes from the employee's details in CLVR. Add it, then download the month again.
  • anstid is a long code instead of an employee number. The employee has no employee number in CLVR, so CLVR's own id is used. Add the number to the employee, then download the month again.
  • An expense I expected isn't there. Only approved expenses for that month are in the file. Purchases paid fully from salary and lines of 0 kr or less are left out on purpose. See Download payroll reports.
  • I want to read the numbers first. Download Excel to read them. Then download Fortnox Lön to import.

A demo with your numbers

We show you the product and work out what your company would save. If CLVR is not right for you, we will say so.

  1. You send the formIt takes a minute.
  2. We email youWithin one business day, to pick a time.
  3. A 30-minute demoWith one of the founders, on your numbers.

Book a demo

How many employees?

By sending this form you agree to our Privacy Policy and Terms of Service.