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

Orderlines - recording sales on different accounts


We have setup different accounts that we would like to use to record income for sales of different types of products. For example we have these accounts setup in E-conomic:
1170 Heaters
1180 Gaz pumps
1190 Vacuum cleaners

When we sell these products we create a customer orders with the different orderlines. No problem here, but there doesn't appear to be a way of telling E-conomic that the sales for the different orderlines should get recorded to specific accounts. When the customer recieves his order we use the API to convert the order to an invoice using these API calls:


When we do this we can see changes in the chart of accounts, but not on the accounts that we would like. Can you tell me what I am missing?

When we do a create a creditor invoice with CashBookEntry_CreateCreditorInvoice we can very easily specify a contra account, and we would like to do something similar when we convert a customer order to an invoice. So to clarify: We are looking for a way to record sales from individual orderlines to accounts (in the carts of accounts) that we specify.
created Oct 20, 2011 by kwi
0% Accept Rate
Q 6 A 6 C 0

2 Answers


You cannot specify the revenue account on a per-line basis.

Instead, revenue accounts are specified on product groups.

So, based on a given order line, the revenue account will be the line's product's group's account.


Best regards,
answered Oct 20, 2011 by Christian Estrup
Ok, thanks!
answered Nov 3, 2011 by kwi
Visma e-conomic A/S