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

I cant do CurrentInvoice_Create when i search the right debtor by name

0
Hi Forum

I have a problem.

I want to create a CurrentInvoice.

Everything works fine when i find my debtorhandle by searching on number.

But when i do the same but fetch my debtorhandle by searching on name it fails.

I am using PHP.

It looks like Debtor_FindByName returns an array of debtorhandles.

How do i get my debtorhandle out of that array? (It is an array with one post)

Regards Christian
created Aug 13, 2013 by cheyn
87% Accept Rate
Q 15 A 6 C 7

1 Answer

0
 
Best answer

Hi Christian

You're right. Debtor_FindByName returns an array of debtors, because multiple debtors can share the same name.

Look at the description and you can see the result returning array

https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Debtor_FindByName

 

If you need to be sure of what debtor is returned, then use _FindByNumber insted

answered Aug 14, 2013 by mha
selected Aug 20, 2013 by cheyn
Visma e-conomic A/S
...