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



This might just be me that are stupid ;-)

I can get the code below to work fine with demo values for AppSecretToken and AgreementGrantToken - but what do I place there in a real senario?

I can see my AppSecretToken at secure.e-conomic.com/ as I have a developer account. But where do I get AgreementGrantToken??

The documentation states:

YOUR_AGREEMENT_GRANT_TOKEN    This identifies the grant issued by an agreement, to allow your app to access their data

This really does not help in knowing what value I have to use.

I can guess from some reading that I might need a real e-connomic account before I can proceed as the documentation at https://www.e-conomic.com/developer/connect does not work with the developer account as https://secure.e-conomic.com/secure/api1/requestaccess.aspx?appId=<Public App Token> return: Only Danish, Swedish and Norwegian agreements are supported. when I try to use the developer account.

So I guess that I need to pay for a 'real' account before I can actually test anything?

Another question - what is allowed with the developer account. E.g. How much can I test like in the real world, can I for example issue invoices etc.

Think that you try hard with the documentation but the real experience is lagging a bit behind as the start curve is a bit high. Need standard examples (had to find one in the forum for PHP and restful). Need a simple guide to get up and running (see above). Might be that there is a guide somewhere, but I returned to this project after some month and are unable to find it again. E.g. the information is all over the place ;-)


$service_url = 'https://restapi.e-conomic.com/employees';
       $curl = curl_init($service_url);
       //$curl_post_data = array(
       curl_setopt($curl, CURLOPT_HTTPHEADER, array(
       curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
       curl_setopt($curl, CURLOPT_GET, true);
       //curl_setopt($curl, CURLOPT_POSTFIELDS, $curl_post_data);
       $curl_response = curl_exec($curl);
       $json = json_decode($curl_response);
  print "<pre>";
  print "</pre>";



created Jul 7, 2016 by beast
0% Accept Rate
Q 1 A 0 C 0

2 Answers



The message "Only Danish, Swedish and Norwegian agreements are supported. when I try to use the developer account." is received while you try to use our development account and app.

You need to sign up for another customer account (1 month for free) and that login information you use to permit your developer account and app to communicate with this customer account.


answered Jul 13, 2016 by Cyril Porseland

Cyril is right about having to create a demo account. This is a full account that you can do everything with. They exist in our production evironment alongside all our paid subscriptions.

If you need to use it for longer than 1 month then you need to contact our app team and tell them about the integration you are creating and why you need a permanent test account. They will help you out with that.
answered Jul 14, 2016 by rbb
Visma e-conomic A/S