Hi,
From what I can see, to start with you need to specify an operation for the invoice line:
"operation": "Insert" - To create a new line
There should be an inventoryNumber, or if the line does not have an item, at least a description of the line.
"inventoryNumber": {
"value": "string"
},
"description": {
"value": "string"
},
Please also have a look in the UI what subaccount you want to use, the value you have provided would translate that the second segment in the subaccount should be "0". E.g xx-0
Subaccount numbers are built up in the segments that you have specified in the ui(ScreenId=GL203000) as such:
"subaccount": [
{
"segmentId": 1,
"segmentValue": "1stSegment"
},
{
"segmentId": 2,
"segmentValue": "2segment"
},
{
"segmentId": 3,
"segmentValue": "3Segment"
}
],
Please have a look at this article that contains some basic usage of Customer Ledger endpoints:
How to use Visma.Net API Endpoints: Customer Ledger
... View more