Fortnox integration

Modified on Thu, 5 Nov at 12:03 PM

How the integration works

The integration connects Project Flow to your company in Fortnox through the Fortnox API. You connect it by logging in to Fortnox from Project Flow and approving access (OAuth 2). You don't need to copy any key or token.

  • Project Flow → Fortnox: customers, projects, and invoices.
  • Fortnox → Project Flow: project expenses from posted vouchers and, with the separate Fortnox Payments integration, payments on invoices.

Project Flow is the master. The customer number, project number and invoice number from Project Flow are used in Fortnox. Don't change them in Fortnox.

Project module. The project module must be enabled in Fortnox.




What is synchronized

From Project Flow to Fortnox

DataWhenHow it is matched in Fortnox
CustomersWhen a customer is created or changed in Project Flow, and when one of its projects or invoices is transferredBy customer number
ProjectsWhen a project is created or changed in Project Flow, and when one of its invoices is transferredBy project number
InvoicesWhen the invoice is finalized in Project FlowCreated as a Fortnox invoice with the same invoice number


Customers

  • What is sent: customer number, name, organization number, address, postal code, city, country, phone, email, currency, and whether the customer is active.
  • Not transferred: inactive customers, and contacts that aren't marked as customers.


Projects

  • What is sent: project number, name, start date, end date and status.
  • Status: Not started, Offer and Offer rejected become Not started. In progress becomes Ongoing. Finished and Stopped become Completed.
  • Start date required: while Export projects is on, a project can't be saved without a start date.
  • Not transferred: template projects.


Invoices

  • Bookkept automatically. The invoice is created in Fortnox and bookkept automatically.
  • Not sent to the customer. Fortnox doesn't send the invoice to the customer, so send it from Project Flow.
  • What is sent: invoice number, invoice date, due date, delivery date, customer, project, currency and exchange rate, invoice text, Your reference and Our reference, OCR number (if you use OCR numbers in Project Flow), and cost center (see Department).
  • What each line contains: description, quantity, price, discount, account, and the VAT rate from the line's account in Project Flow.
  • Not transferred: lines with amount 0, including text lines.
  • Invoice PDF. The PDF from Project Flow is attached to the invoice in Fortnox. Tick Include PDF attachments in invoice PDF export to also include the invoice's attachments in that PDF.


From Fortnox to Project Flow

DataRequirement
Project expensesImport expenses is turned on. The voucher row is posted in Fortnox with a project that exists in Project Flow.
PaymentsThe separate Fortnox Payments integration is turned on (see the article Fortnox Payments).


Not synchronized back:

  • Customers, projects and invoices. Changes made in Fortnox to these aren't copied back to Project Flow.
  • Imported expenses. An expense that has already been imported isn't updated if the voucher is changed in Fortnox afterwards.



Set up the integration

Step 1: Settings in Fortnox (one-time)

  • Project module. Enable it in Fortnox.
  • Accounts and VAT. The account numbers used on invoice lines in Project Flow must exist in Fortnox, with the same VAT rate.
  • Permissions. The Fortnox user who authorizes the integration needs permissions (behörighet) for customers and projects. Or you can use a service account (see step 2).
  • OCR numbers. If you don't use OCR numbers in Project Flow, turn off OCR on customer invoices in Fortnox. If Fortnox gives the invoice an OCR number that Project Flow doesn't know, payments on that invoice aren't imported with Fortnox Payments.


Step 2: Connect Project Flow to Fortnox

  1. Go to Setup → Settings → Integrations, click + Create integration and choose Fortnox.
  2. Optional: turn on Authorize with a service account (Auktorisera med ett servicekonto). We recommend it, because the integration then doesn't depend on a specific person in your company. Only system administrators in Fortnox can authorize with a service account. You must choose this before you authorize.
  3. Click Save. Project Flow sends you to Fortnox.
  4. Log in to Fortnox and click Approve to give Project Flow access.
  5. You come back to Project Flow and see "Authorization is completed successfully."

Authorizing doesn't turn the integration on. Continue with step 3.

You must come back to Project Flow as the same user who started the authorization.

Switching between a user and a service account. To change from authorizing with a user to a service account, or the other way around, delete the integration and add it again.


Step 3: Choose what to transfer and turn it on

Export to Fortnox

Field (EN / SV)Description
Export customers / Exportera kunderTransfer customers.
Export projects / Exportera projektTransfer projects. Projects then require a start date in Project Flow.
Export invoices / Exportera fakturorTransfer invoices.
DepartmentWhich department to send as cost center in Fortnox: Do not include department (default), Use accounting department, Use department from invoice, Use department from project, Use project tag group or Use invoice tag group.
Include PDF attachments in invoice PDF export / Inkludera PDF-bilagor i PDF-fakturaexportInclude the invoice's attachments in the PDF that is attached in Fortnox.


Departments as cost centers. Project Flow sends the department's Department number in external system as cost center code. If that is empty, Project Flow sends its own department number, and the log shows a warning.

Import from Fortnox

Field (EN / SV)Description
Import expenses / Importera utläggImport project expenses from Fortnox. When this is on, you also fill in the fields below.
Financial account numbers / Finansiella kontonummerA comma-separated list of accounts to import from, for example 4300, 4301, 4309. Leave it empty to import from all accounts.
Voucher series / VerifikationsserieA comma-separated list of voucher series to import from, for example A, D, E. Leave it empty to import from all series.
Expense activity / UtläggsaktivitetThe activity imported expenses are registered on. The default is Imported expenses. It is created on the project if it doesn't exist.
Use surcharge from price model / Använd påslag från prismodellUse the expense surcharge from the project's price model.
Expense surcharge / KostnadstilläggThe surcharge (%) added to imported expenses, if the price model's surcharge isn't used.
Make imported expenses billable / Gör importerade utlägg fakturerbaraMarks imported expenses as billable, unless the project's price model decides otherwise.
Link imported expense to a coworkerRegister the expense on a person: the project owner, or the department manager. If you choose the department manager, also choose the Department manager tag group (see below).

Department manager tag group. The department manager is found through this coworker tag group. The tag's code must be the same as the project department's Department number in external system.

Notifications

FieldDescription
Coworkers to notify / Emails to notifyWho gets an e-mail when something fails, and when Fortnox must be authorized again.

Tick Enabled and click Save.

You can't tick Enabled before the integration is authorized: "The integration must be authorized before it can be enabled".

Project Flow plan: the Fortnox integration isn't available on the Start plan.



Expense import in detail

Project Flow fetches posted vouchers from Fortnox once a day. Every voucher row with a project becomes a project expense in Project Flow:

  • Amount: debit minus credit, in your Fortnox company's currency.
  • Date: the transaction date.
  • Title: the voucher description. The row's description becomes the expense description.
  • Voucher number: the voucher series, number and year.
  • Attachment: the PDF of the supplier invoice, if there is one.

Which rows aren't imported:

  • Rows without a project.
  • Rows on accounts or voucher series that aren't in your lists.
  • Rows whose project number doesn't exist in Project Flow.

No duplicates. The same voucher row is never imported twice.

Fetching older expenses. An administrator can do this under Setup → Tools → Import → Import expenses, by entering how many days back to fetch. This requires the setting Show tools.



Verify the integration

  1. Customer: create or change a test customer in Project Flow, and check that it appears in Fortnox with the same customer number.
  2. Project: create a project with a start date, and check that it appears in Fortnox.
  3. Invoice: finalize a test invoice in Project Flow. Check that it appears and is bookkept in Fortnox with the same invoice number, and that the PDF is attached.
  4. Expense: if you import expenses, post a voucher row with the project in Fortnox. Check that it appears as an expense on the project in Project Flow the next day.



Check the log

Go to Company → Logs and choose the category Fortnox.

MessageMeaning
"Customers exported successfully …", "Projects exported successfully …", "Invoices exported successfully …"The data was transferred.
"Error occurred when trying to create or update customer / project. Details: …"Fortnox rejected the customer or project. The details contain Fortnox's error message.
"Error occurred when trying to create invoice. Details: …"Fortnox rejected the invoice, for example because of an account or VAT that doesn't exist in Fortnox.
"Error occurred when trying to post invoice. Details: …"The invoice was created in Fortnox, but couldn't be bookkept.
"Customer #N was not exported because it is inactive"The customer is inactive in Project Flow.
"…does not have any external department number registered, will transfer internal number instead…"Fill in Department number in external system on the department.
"Couldn't find project by project number …"An expense in Fortnox belongs to a project number that doesn't exist in Project Flow.
"Import of expenses from Fortnox has failed …"The expense import failed. Check the authorization.


When the authorization expires or is withdrawn:

  • Project Flow turns the integration off automatically.
  • Project Flow sends an e-mail titled "Integration to Fortnox requires reauthorization" to Coworkers to notify and Emails to notify.
  • To fix it, open the integration, click Authorize, log in to Fortnox again, then tick Enabled and save.



Q&A

Q: Is the invoice sent to my customer from Fortnox?

A: No. Project Flow creates and bookkeeps the invoice in Fortnox, but doesn't send it. Send the invoice to the customer from Project Flow.


Q: I can't save a project: "Startup date is required because Fortnox integration is enabled".

A: Fortnox projects need a start date. Fill in the start date on the project in Project Flow.


Q: The authorization fails, or customers and projects aren't transferred because of missing permissions.

A: The Fortnox user who authorized the integration doesn't have permissions (behörighet) for customers and projects. Give the user these permissions in Fortnox, or delete the integration and add it again with Authorize with a service account.

Q: A payment made in Fortnox doesn't show up in Project Flow.

A: Payments are imported by the separate Fortnox Payments integration. See the article Fortnox Payments.


Q: An expense I posted in Fortnox is missing in Project Flow.

A: Check that:

  • The voucher row has a project that exists in Project Flow.
  • The account is in Financial account numbers, and the voucher series is in Voucher series, if you use those lists.

To fetch older vouchers, use Setup → Tools → Import → Import expenses.


Q: Text lines from my invoice are missing in Fortnox.

A: Lines with amount 0, including text lines, aren't transferred. The full invoice is in the attached PDF.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article