The Fortnox Lön payroll file (PAXml)
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
| Part | What it holds |
|---|---|
| Header | Your 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
| Field | What it holds |
|---|---|
anstid | The employee number. |
persnr | The personnummer, as 12 digits without the dash. |
lonkod | The 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. |
lonart | The löneart set for the category or benefit, when there is one. Löneart: the pay code your payroll system books a line on. |
benamning | A 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. |
datum | The date the expense was approved. |
belopp | The amount, with two decimals. |
A transaction without a löneart is still in the file, just without lonart. Set lönearter on Benefit settings.
Which lines are included
| Line | In the Fortnox file |
|---|---|
| Approved expense report | Yes, the amount the allowance covered |
| Approved Benefits store purchase from the allowance | Yes, the amount the allowance covered |
| Purchase paid fully from salary | No. There's nothing from the allowance to report. Its salary deduction is in. |
| Salary deduction on a purchase, the part the allowance didn't pay | Yes, as a negative AVDRAG on the nettolöneart |
| Line of 0 kr or less | No |
| Overused allowance deduction for a leaver | Yes, as a negative AVDRAG |
| Salary sacrifice to pension | Yes, 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.
anstidis 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.