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

Creating creditors


I'm trying to created a creditor via the API using either Creditor_Create or Creditor_CreateFromData.
I can get neither to work. They seem to need a 'number' property which is odd as I'm creating...

Creditor number string must be a legal integer is what I get.

Debtor_Create or Debtor_CreateFromData seems to function as expected, not complaining about missing an id of the nonexistent entity I'm creating.

So, how do I create a creditor?

created Nov 8, 2012 by janka
0% Accept Rate
Q 1 A 1 C 0

3 Answers

Creditor_Create and Creditor_CreateFromData does indeed need a number.

It has been implemented as a string to ensure that we can enable the usage of strings in the future - but currently it must be a valid integer.
answered Nov 12, 2012 by nkn
So I have to come up with a number myself? That's a weird way of doing it...

It's a nice feature that you CAN, but not that you MUST.

Even though many would use VAT-number or phone number as id, the creation of unique ids is not the job of the user, but of the system. So fix that will you?
answered Nov 13, 2012 by janka
There is not any plans to change that functionality currently.
answered Nov 14, 2012 by nkn
Visma e-conomic A/S