Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

Visma e-accounting is a web-based solution, we can run this tool on our servers.

We have two versions of the tool - with and without order module (without means that the orders are automatically created as invoices in eAccounting)

Requirements and notes

(warning) Please note: Visma e-accounting API does not support purchase orders.

  •  you need Visma e-accounting clientId and clientSecrect (refreshToken is made by us when we have ID and secret)

...

Info

To set it up, use the following link to create a token (requires login to eaccounting).

https://identity.vismaonline.com/connect/authorize?client_id=datadesign&redirect_uri=https://localhost:44300/callback&scope=ea:api%20offline_access%20ea:sales%20ea:accounting%20ea:purchase&response_type=code

- we need the response URL, for instance: https://localhost:44300/callback?code=123aa2857950a3c3a78e1d2b0fbab123
- this link only works for 5 minutes (Since there's a 5-minute window, we're talking about some planning... as an alternative the client can send us the login/password and we set it up ourselves.)
- we use it to create the refresh code


(warning) You need to create a file called settings.xml and place it in the same folder as the tool.
(info) You can define own log4net configuration — just place log4net.config in the same folder as the tool.

...

Code Block
xml
xml
<?xml version="1.0" encoding="utf-8"?>
<Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <Account>
        <!-- Visma e-accounting api service client id-->
        <ClientId><<ClientId>datadesign</ClientId>
        <!-- Visma e-accounting api service client secret code-->
        <ClientSecret></ClientSecret>
        <!-- Visma e-accounting api refresh token -->
        <RefreshToken></RefreshToken>
    </Account>
    <!-- ERP Web Service account provided by Webmercs -->
    <Email></Email>
    <Password></Password>
    <!-- Email for receiving error reports. Separate multiple emails with ; -->
    <AdminEmail></AdminEmail>
</Settings>

...