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

Can some body give a pair of simple functions to test API with PHP

Hi friends

I have just suceded in connect to API with use of SOAP in PHP. I am completely new to koding SOAP.

Now i need to make some fiew job to get startet. I simply just want to:

- Create a product

- Get a list of products.

- Change data for a product

- Delete a product

Can some body give me some kind of help with that?


Christian Heyn
created Jul 19, 2013 by cheyn
87% Accept Rate
Q 15 A 6 C 7

1 Answer

Best answer


Our code example on GitHub should get you going with the concepts of talking with the API. https://github.com/e-conomic/eco-api-ex/blob/master/examples/php/list_debtors.php

If we start off by looking at what is needed to create a product - the pseudocode would be:

  1. Get product groups (ProductGroup_GetAll)
  2. If no product groups exist - create a product group with (ProductGroup_CreateFromData)
  3. Create product with (Product_CreateFromData) - with number, name and abovementioned product group.




answered Jul 30, 2013 by mortenanders
selected Jul 30, 2013 by mortenanders
Thanks - Yes that gives me the answer. And according the arguments in the funktion calls i think i will solve it out.

Have a god summer. Christian
Visma e-conomic A/S