When Fortnox stops accepting the integration's login, sales stop going from Upsales to Fortnox until an administrator logs in to Fortnox again. For setup and settings, see the Fortnox app article.
Signs that you need to log in again
- The Status & troubleshooting tab of the Fortnox app shows a red status and an error for the connection.
- Saving a sale gives the message "Autentiseringen till Fortnox kunde inte förnyas automatiskt. En administratör i Upsales behöver gå till appens inställningar och autentisera igen."
To get an email when this happens, turn on the health report in the app settings, see Health report (Hälsorapport).
Who can do it
- In Upsales: an administrator, since the app settings are under Settings.
- In Fortnox: a user who is a system administrator. In Fortnox, click your company name → Administrera användare: a system administrator has a filled green crown in the Admin column.
Log in to Fortnox again
- Click Settings → App directory → Fortnox (or Fortnox Premium) and open the Settings tab. If you are asked Restore unsaved changes?, click Discard to keep the settings you have saved.
-
Under Autentisering, click Revoke authentication. If the field already shows Logga in i Fortnox instead of Connected with oAuth, go to the next step.
- Click Logga in i Fortnox, log in with a Fortnox user who is a system administrator, and approve the integration's access. You are sent back to the app settings, and the field shows Connected with oAuth.
- When the login is the only change, it is saved on its own: your settings stay as they were and no import starts. If Save is shown, click it. If you are asked Start import, click Save without import.
The status on the Status & troubleshooting tab turns green.
If the login does not go through
If Fortnox sends you to a page titled "Inloggningen i Fortnox gick inte igenom", nothing was saved and your previous connection is as it was.
- "Du behöver vara systemadministratör i Fortnox för att koppla Fortnox till Upsales.": ask a system administrator in your Fortnox to open the Fortnox app settings in Upsales, click Logga in i Fortnox and save.
- "Fortnox avbröt inloggningen, så ingenting har sparats.": start again from step 1.
Several Fortnox accounts
With several Fortnox accounts in Fortnox Premium, each account has its own login under Autentisering - konto #2, Autentisering - konto #3 and so on, with the buttons Logga in i Fortnox 2, Logga in i Fortnox 3 and so on.
- Log in on one account at a time. If Save is shown after a login, click it before you log in on the next account. Each login reloads the settings as last saved, so an unsaved login on another account is lost.
- Log in to the Fortnox company that belongs to that account. If you log in to a company another account already uses, saving gives the message "Account 2 is signed in to the same Fortnox company (DatabaseNumber …) as the primary account. Sign in to the right Fortnox company for account 2 and save again." Log in again on that account to the right Fortnox company, and save.
Sales that failed while the connection was down
Sales saved in Upsales while Fortnox refused the login are not sent to Fortnox later on their own. After you have logged in again, find them and save each one again:
- In the sales list, add the app's status column (its name starts with App and ends with : status) and filter on Couldn't be synced. See Sync status.
- Open each sale and click Save. It is sent to Fortnox again.
Fortnox rejects a sale for lack of permission
When Fortnox refuses a request because the integration lacks access, the sale's status shows Fortnox's own message, for example "Saknar behörighet för kundregister" or a message that starts "Du saknar behörighet för". These sales are not retried automatically. When the cause is fixed in Fortnox, save the sale again.
If you sync stock locations (lagerställen) on order rows, the integration needs the Lager licence in Fortnox. After you activate that setting and save, open the settings again, log in to Fortnox once more and save.
If the same message comes back, contact our support team with the message text. For other error messages when you save a sale, see Q: I'm getting an error message from Fortnox when trying to save an order, what do I do?