How do I integrate with Spiris?

Creating an integration: what is required?
To create an integration between Spiris and the Senseworks platform, you get a link from the company in Senseworks and send it to someone who can approve the connection. With an integration, you can open invoices on a voucher in Senseworks Analytics, provided a document/invoice (PDF or image) is attached to the voucher in Spiris.
For an integration to be possible:
You can check point 1 by going to the company in Spiris and clicking Inställningar (Settings) and then Behörigheter (Permissions). The user approving the connection needs the setting Fullständig (Full) under Programbehörighet (Program permissions).

The Spiris integration currently lets you fetch documents that are created in and attached to vouchers in Spiris. The documents fetched are customer invoices and attachments linked to vouchers (for example supplier invoices). You can then open them directly in Senseworks when viewing a voucher or a transaction line.

To create an integration between Spiris and the Senseworks platform, you get a link from the company in Senseworks. To get the link:
In the company, go to the "Load data" page and click "Activate" under the Spiris logo.

When you click "Activate", you can copy the link and use it yourself, or send it to another person who can approve the connection. See above for who can approve a connection.
What happens when you click the link? / What does the client see?
The link goes to a page explaining the Spiris integration. There, the user clicks Ge behörighet (Grant access).

A new window then opens for signing in to Spiris. The person signs in to Visma as usual. If they have access to several companies, they choose which company to connect the integration for. A box appears listing the permissions requested, and the person can approve them. A connection is then created between Spiris and Senseworks for the company.

Sync data once the integration is active
Once the connection has been approved as above, the integration is activated. You can see that an integration is active when the Spiris logo shows green on the "Load data" page.

You can then fetch documents from Spiris in two ways. You can fetch documents for the two most recent financial years by clicking "Sync last two years" on the "Load data" page. This fetches documents for the two most recent financial years created for the company in Senseworks.
You can also fetch documents by financial year. To do this, go to the "Loaded data" page under "Accounting". For each financial year, you can fetch documents by clicking "Fetch data" ("Sync" if data has already been fetched).

