Here you can see an example payload for the POST Credit Note V2
{
"currencyId": {
"value": "NOK"
},
"customerRefNumber": {
"value": "test custRef"
},
"externalReference": {
"value": "test extRef"
},
"project": {
"value": "X"
},
"lines": [{
"operation": "Insert",
"inventoryNumber": {
"value": "1"
},
"lineNumber": {
"value": 1
},
"description": {
"value": "line1"
},
"quantity": {
"value": 10
},
"unitPriceInCurrency": {
"value": 50
},
"manualAmountInCurrency": {
"value": 50
},
"accountNumber": {
"value": "3000"
},
"vatCodeId": {
"value": "3"
},
"uom": {
"value": "STK"
},
"subaccount": [{
"segmentId": 1,
"segmentValue": "0"
}],
"note": {
"value": "lineNote"
}
}],
"applicationLines": [{
"operation": "Insert",
"documentType": {
"value": "Invoice"
},
"refNbr": {
"value": "000039"
},
"amountPaid": {
"value": 50
}
}],
"customerVatZoneId": {
"value": "01"
},
"invoiceAddress": {
"value": {
"overrideAddress": {
"value": true
},
"addressLine1": {
"value": "adr1"
},
"addressLine2": {
"value": "adr2"
},
"addressLine3": {
"value": "adr3"
},
"postalCode": {
"value": "7005"
},
"city": {
"value": "city"
},
"countryId": {
"value": "NO"
},
"county": {
"value": "1601"
}
}
},
"invoiceContact": {
"value": {
"overrideContact": {
"value": true
},
"name": {
"value": "xxx"
},
"email": {
"value": "xxx@xxx.com"
},
"phone1": {
"value": "11111"
}
}
},
"customerNumber": {
"value": "10000"
},
"documentDate": {
"value": "2020-05-06T10:46:10.777Z"
},
"hold": {
"value": false
},
"postPeriod": {
"value": "052021"
},
"financialPeriod": {
"value": "202105"
},
"invoiceText": {
"value": "invText"
},
"locationId": {
"value": "MAIN"
},
"note": {
"value": "Test Note"
},
"cashAccount": {
"value": "1910"
}
}
... View more