Last updated: 2025-10-06

Payment import from Fortnox

Opter can be connected to the Fortnox accounting system, www.fortnox.se. Then it is possible to:

When a payment import is made from Fortnox, Fortnox sends the invoice number and the amount paid. If the payment has been made in a currency other than the default currency in the Opter system, Fortnox will also send the current exchange rate at the time of payment.

If you import payments from Fortnox, you must have SEK as the default currency in Opter.

Conditions

Invoice export first

As the invoice numbers to which the payments apply must match between Opter and Fortnox, invoices must first have been exported from Opter to Fortnox in order to be able to import payments. For more information, see Invoice export to Fortnox.

Licences

To be able to connect (integrate) Opter to Fortnox, you need an integration licence. You also need to have software licences for invoicing and accounting in Fortnox. These licences (also called "programs" and "add-ons") can be ordered in the Fortnox program. Contact Fortnox if you need more information about your licences.

We recommend that you first set up the invoice export according to Invoice export to Fortnox, which requires an integration licence and invoicing licence in Fortnox. Next, check if you already have the licence for accounting in Fortnox. If you do not already have it, you will need to add it in order to be able to import payments.

Standard currency

In order to export invoices and supplier bills to Fortnox and import payments from Fortnox to Opter, the default currency in Opter must be Swedish kronor (SEK).

Do not change the default currency as that would cause major problems in the system. If you have a standard currency other than Swedish kronor, it is not possible to export invoices and supplier bills to Fortnox and import payments from Fortnox.

Currency codes

Fortnox only accepts three-letter currency codes, such as “DKK”, “SEK”, “GBP” and “EUR”.

Exchange rates

It is important to always have exactly the same exchange rates in Fortnox and Opter to avoid problems such as exchange rate losses, and payments that do not match the invoice in Opter exactly and are therefore registered as advances.

To always have the same exchange rates in Fortnox and Opter, proceed as follows:

  • In Fortnox: Go to Invoicing > Currency, and set Automatic exchange rates to “NO”.

  • Set exactly the same exchange rates in Fortnox and Opter. When updating an exchange rate, change the exchange rate at the same time in both Fortnox and Opter. In Opter, exchange rates are set under Economy > Currencies> Currency rates tab.

Step 1 (optional): Adding a service account

If you wish to use a service account for payment imports, see Invoice export to Fortnox.

Step 2: Create a payment import for Fortnox

To be able to do a payment import from Fortnox, a new payment import first has to be created.

  1. Click on Economy > Payment import and then on Read file at the bottom right.

  2. Click on , next to the File format drop-down list.

    The Payment Import window opens.

  3. Create a new payment import by clicking on in the Payment Import window and giving it a name (for example "Fortnox"). The following fields must be filled in:

    • Import type: FortnoxAPI

    • Import format: API

    • Ignore payments before: Refers to the date the payment was registered in Fortnox. Enter the registration date from which payments will be imported into Opter.

    • Ignore numbers below: Refers to the invoice number in Fortnox. Payments for invoices with lower numbers are not imported into Opter. By default, this field is set to "0", which means that payments for all invoices exported from Opter will be imported.

    (Leave the API access token field empty. This field is not used and has been removed as of Opter version 2025.06.00).

    Tick the box Use service account, if you want to use a service account for importing payments. How to add a service account is described in Invoice export to Fortnox.

    Click on to save all changes.

  4. The new file type can be seen in the Payment import - Settings window. Click on Ok to close the window.

Step 3: Importing payments from Fortnox

  1. Click on Economy > Payment import and then on Read file at the bottom right.

  2. Select "Fortnox" (or the name given to the payment import for Fortnox) from the File format drop-down list.

  3. Click on Ok to import the payments.

    If you are not already logged in to Fortnox, a new window will open where you log in with your usual Fortnox username and password. If authentication is successful, the import starts.

    The following applies with regard to payment imports:

    • If the payment was registered before the date specified for Ignore payments before, the payment is not imported.

    • If the payment concerns an invoice with a lower invoice number than the one entered in Ignore numbers below, the payment is not imported.

    • The invoice/OCR numbers must match between Opter and Fortnox, otherwise the payments are not imported.

  4. Click on Save payments in the bottom right-hand corner.

The imported payments are displayed in Economy > Manual payments.

See also