Hi Steinar,
The fields you want to use are "termStartDate" & "termEndDate" as opposed to "startDate" & "endDate".
Example:
{
"customerNumber": {
"value": 10000
},
"documentDate": {
"value": "/Date(1573171200000)/"
},
"hold": {
"value": false
},
"invoiceLines": [
{
"operation": "Insert",
"lineNumber": {
"value": 0
},
"inventory": {
"value": "nonstocktest"
},
"quantity": {
"value": 1
},
"manualAmountInCurrency": {
"value": 10
},
"description": {
"value": "string"
},
"deferralCode": {
"value": "test2"
},
"termStartDate": {
"value": "2021-09-27T11:49:03.928Z"
},
"termEndDate": {
"value": "2021-11-27T11:49:03.928Z"
},
"sub": [
{
"segmentId": 1,
"segmentValue": "01"
},
{
"segmentId": 2,
"segmentValue": "001"
},
{
"segmentId": 3,
"segmentValue": "1"
}
],
"UOM": {
"value": "STK"
},
"project": {
"value": "X"
}
}
]
}
... View more