Recent posts tagged php

I want to get the description of the product but I have error in Product_GetDescriptionResult part which is not found by some reason. Can someone help me, the code: $productDescriptionHandle = $client->Product_GetDescription(array('productHandle' => $productNumberObj))->Product_GetDescriptionResult;

I am currently working on an automatic invoice system in PhP which creates invoices on e-conomic and after that gets the faktura number and sets it on a specification file that the company I work at emits to the custommer. What ...

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 ...

I would like to make a simple cashbook entry everytime a purcahse is made on our platform. The entry should contain: Amount Account number (e.g. 5820) (optionally) some text I have found a PHP Economic SOAP library and struggled with it ...

I would like to know the best practise on how to handle large data ex. try { $InvoiceHandles = $client->Debtor_GetInvoices(array('debtorHandle' => $debtorHandle))->Debtor_GetInvoicesResult->InvoiceHandle; $num_Invoices = count($InvoiceHandles); if($num_Invoices > 0) { ... ))->Invoice_GetDataResult; }..... Can i limit this om date og number of ...

I have a web hook on the "order updated" event, and I'm receiving the old and new ids without problems. On my server I'm trying to determine whether: A new order was created An order was updated An order was deleted ...

Hi i have tried find a way to do api calls with php to E-conomic Rest api so if someone have a little example script in php would be awsome that for ex get data from https://restapi.e-conomic.com/accounts?skippages=0&pagesize=200

I can not make this line work(it is at the bottom in my script): $orderAsSent = $client->Order_RegisterAsSent(array("Id" => $orderHandle))->Order_RegisterAsSentResult->orderHandle; // $orderhandle creates the order I have created an order and set orderlines, everythings work, but can not register it as ... ...

I want to get ALL DeliveryLocations from one debtor only. I tried DeliveryLocation_GetDataArray: $deliveryHandle = $client->DeliveryLocation_GetDataArray(array('entityHandles' => $debtor_number))->DeliveryLocation_GetDataArrayResult; According to the documentation it takes an Id to get this to work. $debtor_number = needs to be an Id. But how and ...

for this search there is only one debtor post, therefore i'm using Debtor_GetData But I only get the number, and fault on he rest: //$debtorHandle = "*".$_POST['partialName']."*"; $debtorHandle = $client->Debtor_FindByName(array('name' => 'SUPER-1 V/GUNNER LARSEN'))->Debtor_FindByNameResult->DebtorHandle; $debtorDataObjects = $client-> ... ?php print $debtorData->Address ...

Hi, I need some help from someone that can catch the little things I can't see. I have a PHP script that is used to extract some data from our economics system, and import these data into our intranet database. It ...

I can make an order whit the right debitor name by Debtor_FindByNumber, it works very well. But in the same script i would like to set one or more orderlines by Product_FindByNumber. I'm not aple to set the orderlines: what am ...

Is it possible to add a new line to an existing invoice with the rest api? Is there any documentation on this and if so, where? or is it possible to update an existing invoice by adding a value to this ...

Im trying to create a customer and im following http://restdocs.e-conomic.com/#customers. Where can i figure out what object is required in the field 'customerGroup','paymentTerms' and 'vatZone'? This is the data i send $data = [ 'AppID' => 'MY-APP-ID', 'AccessID' => 'MY-ACCESS-ID', 'currency' ...

I'm using PHP - SOAP... When adding order lines I get this error: Economic.Api.Exceptions.IntegrityException(E06350): A product must be set before the unit net price. The array looks like this: [product] => BC-107 [description] => Produktnavn [price] => 120.00 [qty] => 1 ...

'All Settings->Subscription->Add on modules->API' is set to 'Yes'. I am testing this with 'list_debtors.php?agreementNumber=XXXXXX&username=YYY&password=ZZZZ'. No data is returned and it is not possible to create a new debtor either. Everything works perfectly with my developer edition of e-conomics. Wondering what the ...