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

Debtor_GetData with php

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->Debtor_GetData(array('entityHandle' => $debtorHandle))->Debtor_GetDataResult; foreach ($debtorDataObjects as $i => $debtorData) { ?> ">
Number;?>" method="post"> <?php print $debtorData->Number ?>  <?php print $debtorData->Name ?>  <?php print $debtorData->Address ?>  <?php print $debtorData->PostalCode ?>  <?php print $debtorData->City ?>  Number ?>"> <?php } ?>
created Oct 2, 2015 by suulut
50% Accept Rate
Q 8 A 5 C 2

1 Answer


delete the loop: foreach ($debtorDataObjects as $i => $debtorData) { ?>

And ad: $debtorData =$debtorDataObjects;

 GET_DATA is not an array, therefor no loop is needed.


answered Oct 5, 2015 by suulut
Visma e-conomic A/S