to get a personalized navigation.
to get a personalized navigation.
Hi,
I am trying to create a supplier Invoice.
I am using the SupplerInvoice endpoint, but it threw me an error message in return. I used the following URL, Error code and Json:
https://integration.visma.net/API/controller/api/v1/supplierInvoice
Error code 400
{ "message": "Error creating supplierInvoice. Field Amount is not editable." }
Json:
{
"documentType": {
"value": "Invoice"
},
"hold": {
"value": true
},
"description": {
"value": "test"
},
"branch": {
"value": "Alfred Berg Kapitalforvaltning AS"
},
"branchNumber": {
"value": "1"
},
"supplierNumber": {
"value": 68747
},
"amount": {
"value": 1
},
"invoiceLines": [
{
"operation": "Insert",
"lineNumber": {
"value": 0
},
"transactionDescription": {
"value": 'Test'
},
"quantity": {
"value": 1
},
"unitCostInCurrency": {
"value": 1
},
"subaccount": [
{
"segmentId": 1,
"segmentValue": 000
}, {
"segmentId": 2,
"segmentValue": 0000
}, {
"segmentId": 3,
"segmentValue": 0000000
}, {
"segmentId": 4,
"segmentValue": 000
}, {
"segmentId": 5,
"segmentValue": 0000
}, {
"segmentId": 6,
"segmentValue": 000000000
}]
,
"accountNumber": {
"value": 6720
},
"vatCodeId": {
"value": 87
}
}
]}
Solved! Go to Solution.
Hello,
"amount": { "value": 0 }, "vatAmount": { "value": 0 },
fields exposed via SupplierInvoiceUpdateDto in POST / PUT Supplier Invoice Endpoints are connected to the setting that can be configured in the "Supplier Ledger Preferences" (ScreenId=AP101000) menu in the Financials ERP UI.
1) If the following validations are enabled in the "Supplier Ledger Preferences" (ScreenId=AP101000)
then the validation-control fields become available in the supplier invoice that should be filled manually to match the document Amount & VAT total for the checksum purposes.
Hi,
You need to set "Validate document details on entry" to true in Supplier ledger preferences(ScreenId=AP101000) to send the "amount" field:
Copyright © 2022 Visma.com. All rights reserved.