API Forum

This forum is in read-only mode.
Please refer to our API support in case you have any questions.
We can be reached at api@e-conomic.com
e-conomic API developer forum

Accessing rest API as Administrator


We already have an app using the .NET API, but would like to go with the new rest API.
Most of our users are admins, so we use

economicSession.ConnectAsAdministrator(AdministrationNumber,UserName, Password, AgreementNumber)

How do we go about converting to the new API login system?
You cannot use the access-token via (
Obtain an access ID via a URL redirect) since it does not allow login as Administrator.

created May 19, 2015 by Teyken
50% Accept Rate
Q 4 A 3 C 3

1 Answer

Best answer

Hi Teyken

Currently the Token authentication flow requires the individual agreements super-user authenticate an app.

When visiting the Request URL you must use the credentials for the SuperUser of the actual agreement. The owner of the individual agreement will have received these credentials in a welcome email when the agreement was created. You as administrator can not install the app with your administrator credentials.

In short the agreements that you administer need to individually follow the requestURL and generate a token.

Please have a look at https://www.e-conomic.com/developer/tutorials step 3(a and b).

answered May 19, 2015 by olej
selected Oct 20, 2016 by Teyken


Find all the documentation and resources you need to build great apps.
Go to Developer site


Get the latest news and important info from the e-conomic developer world.
Sign up now

Visma e-conomic A/S