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

How to get DebtorNumber when webhook is triggered

0
Hi,

i just tested the webhook function:

i created a webhook which calls a php script with a get parameter when a debtor was updated.

with this get parameter i can call a specific function. the problem is now, how do i get the debtorNumber of the updated debtor?

thanks for any help.
created May 23, 2012 by sentinel777
0% Accept Rate
Q 7 A 4 C 0

1 Answer

0
i have found the solution by myself:

just use the available fields (like [OLDNUMBER] and [NEWNUMBER]) in the url of the webhook, like:

http://mysite.com/myscript.php?old=[OLDNUMBER]new=[NEWNUMBER]

you can then get the data with $_GET['old'] and $_GET['new']
answered May 23, 2012 by sentinel777
Visma e-conomic A/S
...