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

Create credit notes via API?


Is it possible to create credit notes via the API?

I can't quite find anything about this in the documentation for the API (or maybe I'm looking in the wrong place).


created Nov 30, 2011 by Kevin@ToyJoy
0% Accept Rate
Q 1 A 0 C 0

3 Answers

Hi Kevin,

Sure it is - credit notes are just not separate entity types, but simply invoices; typically with negative per-line quantities.

Then, when generating the PDF, e-conomic will look at the sign of the total gross amount - and, from that, decide whether it's an invoice or a credit note, and use the appropriate template.

Best regards,
answered Nov 30, 2011 by Christian Estrup
What if gross amount will be positive.

I mean, I have created credit note like following way,

I wan to return the same item just because of the previous item was wrong, So in this case I have simply change the quantity to Negative( - ) and create new item line to return proper item in the same invoice.

In this case my gross amount is positive, I mean one line with negative quantity and newly created line in positive with some additional amount ( because the item which user want is higher price in compare to item which I am going to return ).  Finally, order gross amount is in positive.

In the whole case, Credit Note template is not used, invoice template is used. So, it says Invoice instead of Credit Note.   

Please suggest me appripriate way to achive this kind of issue.
answered Sep 13, 2012 by gunjanpatel
Per definition if the gross amount is positive it is an invoice - thus it will use the invoice template.

This is the way e-conomic works.
answered Sep 13, 2012 by nkn
Visma e-conomic A/S