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_SetTermOfPayment not working

Hi all,

How should the Debtor_SetTermOfPayment be mapped? In e-conomic we have several paymentterms, and how are they mapped via the api? As integer values or?

The problem is that when we try to send an integer value (eq 3 for the third paymenttype in the list) it fails.
created Feb 1, 2014 by olebulow
50% Accept Rate
Q 2 A 0 C 1

1 Answer

Best answer

You need to send the handle-object of the payment term, not just the integer-based id. On a pragamatic level, you can actually specify directly as you have tried, you just need to envelope it correctly, as examplified here: https://api.e-conomic.com/secure/api1/EconomicWebService.asmx?op=Debtor_SetTermOfPayment

If it does not work initially, try to monitor what xml your application actually sends, and see if it matches structure in the above link.

answered Feb 19, 2014 by mortenanders
selected Feb 19, 2014 by olebulow
Morten, world class.. that did the trick. should have known this.. had i read the text instead of assuming :)

Thanks a lot!
Visma e-conomic A/S