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

REST API: Create invoice line with department

0
Setting department on a line in 'invoices-experimental/drafts' doesn't work anymore.
Have tried both department and departmentDistribution with no luck.
 
When do you expect to release invoice to stable?
 
created May 19, 2015 by pederb
25% Accept Rate
Q 4 A 2 C 1

1 Answer

0

Hi Peder

I have just tested departmentalDistribution on the line with success:

{
    "draftInvoiceNumber": 168,
    ...snip...
    "lines": [
        {
            "lineNumber": 1,
            "sortKey": 1,
            "departmentalDistribution": {
                "departmentalDistributionNumber": 1,
                "distributionType": "department",
            }
        }
    ],
    "pdf": {
    },
}
 
Please let me know if you get it to work or otherwise please share the JSON that makes it fail.
answered May 19, 2015 by olej
Thx.

I forgot that the change from "department" to "departmentalDistribution" also applies to Products :-/
It works now.
Visma e-conomic A/S
...