Hello Frida,
Here you can see an example POST Supplier Invoice JSON.
{
"documentType": {
"value": "Invoice"
},
"referenceNumber": {
"value": "1732"
},
"hold": {
"value": "false"
},
"date": {
"value": "2021-09-24"
},
"financialPeriod": {
"value": "202109"
},
"supplierReference": {
"value": "7788"
},
"description": {
"value": "1900031"
},
"supplierNumber": {
"value": "00005"
},
"currencyId": {
"value": "EUR"
},
"creditTermsId": {
"value": "30"
},
"paymentMethod": {
"value": "2"
},
"note": {
"value": "Test Subaccount"
},
"branchNumber": {
"value": "1"
},
"invoiceLines": [{
"operation": "Insert",
"lineNumber": {
"value": 1
},
"transactionDescription": {
"value": "T-Sub"
},
"quantity": {
"value": "1.00"
},
"costInCurrency": {
"value": "57921.34"
},
"accountNumber": {
"value": "4300"
},
"vatCodeId": {
"value": "1"
},
"subaccount": [{
"segmentId": 1,
"segmentValue": "120"
},
{
"segmentId": 2,
"segmentValue": "000"
},
{
"segmentId": 3,
"segmentValue": "00"
},
{
"segmentId": 4,
"segmentValue": "18001"
}
]
}]
}
... View more