How the export works
With the Fortnox PAXml integration, Project Flow creates a payroll file in PAXml 2.0, the format Fortnox Lön imports. The file contains hours, overtime, absence, hour balance and expenses. You download it from Project Flow and import it in Fortnox Lön.
- A file, not a live connection. It is separate from the Fortnox integration for customers, projects and invoices.
- Codes: each row gets a PAXml code (tidkod or löneart), for example
ARB,SJKorÖT1, that you set on overtime categories, absence types and compensation types in Project Flow. - Other wage systems? Use the integration PAXml, which creates PAXml 1.0 and has more options, such as projects, departments and schedules. See the article PAXml (payroll export).
Before you start
Co-workers
Every co-worker who should be in the file needs an External employee number (Extern anställds nummer), the same as their employee number (anställningsnummer) in Fortnox Lön. Co-workers without it are left out of the file, without a warning.
- Only internal co-workers. External co-workers are never included in the Fortnox file.
- Compensation type (Månadsavlönad or Timlön) on the co-worker's employment decides what is sent for their hours. See What is in the file.
PAXml codes
Set the PAXml code in the field External pay type code (Kod för extern betalningstyp):
| Where | Code for | Example |
|---|---|---|
| General co-worker settings: Default external pay type code (Standardkod för extern lönetyp) | Normal hours | ARB or TID |
| Each overtime category | Hours on that overtime category | ÖT1 (paid overtime), ÖK1 (overtime to comp time), FLX (flex) |
| Each absence type | That absence | SJK (sick), SEM (vacation), VAB |
| General co-worker settings: Hour balance external pay type code (Extern lönetypskod för medarbetarens tidsaldo) | Hour balance | FLX |
| Each compensation type for expenses (Extern lönetypskod) | Expenses | The code your Fortnox uses for the expense |
- Checked when you export. Project Flow checks the codes when you create the file, not when you save them. If one is wrong, the export stops and shows the valid codes, for example "The absence pay type code is invalid for use with PAXml integration. Use one of the following valid codes: …".
- PAXml 1.0 codes. Project Flow accepts the codes from PAXml 1.0. Some newer codes that PAXml 2.0 allows, for example
SCH,ATF,LT1orNV1, are rejected. - The code decides the balance. Fortnox uses the code to decide where the hours go. For example,
ÖK1–ÖK5go to the comp time balance (kompsaldo), andFLXto the flex balance (flexsaldo). Agree the codes with whoever runs payroll. - Empty code, no row. Hours on an overtime category, and absences of a type, without a code are left out of the file. They aren't sent as normal hours either.
- Not used: the field External salary code (Extern lönekod) on overtime categories isn't used by PAXml.
Set up the integration
- Go to Setup → Settings → Integrations (Inställningar → Integrationer) and switch to the tab Export to file (Exportera till fil). You need administrator access.
- Click + Create integration and choose Fortnox PAXml.
- Choose what to include (see below), tick Enabled and save. Everything is off on a new integration.
Project Flow plan. The integration isn't available on the Start plan.
Your company in the file. The organization number and name come from Setup → Company.
What to include
| Setting (EN / SV) | What it adds to the file |
|---|---|
| Export type / Exporttyp | Always Time records and salary data (Tid- och lönedata). |
| Export time registration / Exportera timmar | Normal hours, with the default code |
| Export overtime / Exportera övertid | Hours on overtime categories, with each category's code |
| Export absence / Exportera frånvaro | Absence, with each absence type's code |
| Export hour balance | The co-workers' plus or minus hours, with the hour balance code. Requires Use extra time (hours balance) in the co-worker settings. See Export method below. |
| Export expenses / Exportera utlägg | Approved travel and expense claims, with each compensation type's code |
Filter data by compensation type (Filtrera data efter ersättningstyp). Each section can include only salaried (Månadsavlönad), only hourly (Timlön) co-workers, or both.
Export method (Exportmetod) for the hour balance:
- Transactions (Transaktioner, default): one row per day with the day's plus or minus hours.
- Summarized (Sammanfattad): one row per co-worker with the net sum for the period, dated the first day of the period. Co-workers with a sum of 0 are left out.
Not in Fortnox PAXml: projects, departments, schedules, co-worker details, omfattning and holiday pay basis. The file never contains them.
Create the file
- Make sure everyone has registered their hours and absence for the period.
- Go to Company → Timesheet status (Tidrapportstatus).
- In the box Export hours using export template (Exportera timmar med hjälp av exportmall), choose the template Fortnox Lön.
- Choose From date and To Date. The default is last month.
- Click Create export file (Skapa exportfil). The file is downloaded, named
Fortnox_Lon_{date}.xml.
- All hours in the period. The file contains all hours and absences in the period, approved or not. Approve and lock the period first, if that is your routine.
- Export as often as you like. The export doesn't change the hours. Project Flow only records the date in the Latest export column for each co-worker.
- Co-workers who have left are exported like the others. Check the period if someone left during it.
- Limit: one export can hold up to 50,000 records. For more, choose a shorter period.
What is in the file
The file is PAXml 2.0, checked against the official PAXml 2.0 schema before you get it. It has two kinds of rows:
- Time transactions (tidtransaktioner): hours with a tidkod, a date and the number of hours.
- Salary transactions (lönetransaktioner): rows with a löneart, a quantity, a price and an amount.
| From Project Flow | In the file |
|---|---|
| Hours and overtime | One time transaction per registration, with the registered hours. For co-workers on hourly pay (Timlön) also a salary transaction with the same code. Its quantity is the billable hours, and its price and amount are the hour's sale price in Project Flow, not the wage. |
| Absence | One time transaction per absence. No salary transaction. |
| Hour balance | Time transactions, per day or summarized (see Export method). |
| Expenses | One salary transaction per expense, with the compensation type's code and the claim number. Mileage has the kilometres as quantity and the rate per km as price. Daily allowance (traktamente) also has the VAT. |
- Overtime percent isn't applied. The hours are the real hours, also on an overtime category with 150 %. Fortnox applies its own rules for the code.
- One row per registration. Hours aren't added together, and each row has its own ID.
Errors
| Message | What to do |
|---|---|
| "The … pay type code is invalid for use with PAXml integration. Use one of the following valid codes: …" | Change the code on the overtime category, absence type, compensation type or co-worker setting to one of the listed codes. |
| "Validation error: …" | The file didn't pass the PAXml 2.0 schema. Check the organization number (at most 12 characters) in Setup → Company. Contact Project Flow support with the message if you can't find the cause. |
| "Too much data. Please select less than … records for a single export." | Choose a shorter period. |
Q&A
Q: A co-worker is missing from the file.
A: Check that the co-worker is internal, has an External employee number, and matches the compensation type filter, if you use one.
Q: Overtime or absence is missing from the file.
A: Check that the overtime category or absence type has an External pay type code, and that Export overtime or Export absence is ticked in the integration.
Q: Overtime ends up in the comp time balance instead of the flex balance.
A: Fortnox follows the code. Change the overtime category's code, for example from ÖK1 to FLX.
Q: Fortnox gets one hour balance row per day. We want one total.
A: Set Export method to Summarized under Export hour balance.
Q: Hours that aren't approved are in the file.
A: The export includes all hours in the period. Approve the period before you create the file, or choose a period that has been approved.
Q: Can I include projects or departments?
A: Not with Fortnox PAXml. The file has no projects or departments.
Q: I can't find the template Fortnox Lön.
A: Check that the integration Fortnox PAXml is enabled. If the template still isn't in the list, contact Project Flow support.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article