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

Get started developing!!

0

I'm a php programmer and want to integrate my shop with e-conomic, which i use everyday

I have Signed up for a developer agreement, CHECK

I did obtain a token (access ID) either manually or automatically. CHECK

Now from here everysthings stops. I can not find any tutorial or information to get started programming for e-conomic. I wish for my site to store orders into the e-conomic database. BUT how do i make the connection,  to the database??

WHAT to do....

Please help. 

created Aug 4, 2015 by suulut
50% Accept Rate

edited Aug 4, 2015 by suulut
Q 8 A 5 C 2

1 Answer

+1

Hi suulut

Have you had a look at our PHP example here: https://github.com/e-conomic/eco-api-ex/blob/master/examples/php/list_debtors_with_token.php
Combined with the documentation: https://api.e-conomic.com/secure/api1/EconomicWebService.asmx

Wrt orders you'd be interested in using Order_CreateFromData which will return an Order Handle. You can then use the orderHandle to add lines your order OrderLine_CreateFromData

Take a good look around https://api.e-conomic.com/secure/api1/EconomicWebService.asmx for what functions are available and how they relate.

answered Aug 7, 2015 by olej
thank you very much, i'll have a look at this.
I can see that this Refer to the SOAP Api, is there similar with the REST API?
Manage to make this simpel login script:
$agreement_number = "XXXXX";
    $user_name = "XXXX";
    $password = "XXXXXXXXX";
   
        $wsdlUrl = 'https://api.e-conomic.com/secure/api1/EconomicWebservice.asmx?WSDL';
       $client = new SoapClient($wsdlUrl, array("trace" => 1, "exceptions" => 1));           
   
        $client->Connect(array(
            'agreementNumber' => $agreement_number,
            'userName' => $user_name,
            'password' => $password
        ));
This makes the connection :-)
Using the SOAP documentation
Visma e-conomic A/S
...