v1
latestOpenAPI 3.0.02026-07-1315476656.4 KBVoucher
Update an existing voucher
Update a draft voucher using this method if you want to change simple values like the description. Complex changes like adding a position should use /Voucher/Factory/saveVoucher.<br> You can not change the status using this endpoint.
put/Voucher/{voucherId}
Path parameters
voucherIdinteger required
ID of voucher to update
Request body
Example request
{
"voucherDate": "01.01.2022",
"supplierName": "John Snow",
"description": "Voucher-1000",
"payDate": "01.01.2022",
"status": 50,
"taxType": "default",
"creditDebit": "C",
"voucherType": "VOU",
"currency": "EUR",
"propertyForeignCurrencyDeadline": "01.01.2022",
"propertyExchangeRate": 0.8912,
"taxSet": {
"objectName": "TaxSet"
},
"paymentDeadline": "01.01.2022",
"deliveryDate": "01.01.2022",
"deliveryDateUntil": "22.02.2022",
"document": {
"objectName": "Document"
},
"costCentre": {
"objectName": "CostCentre"
}
}Response
Successful operation - Returns changed voucher resource
Example response
{
"id": "0",
"mapAll": true,
"create": "01.01.2020",
"update": "01.01.2020",
"sevClient": {
"id": "0",
"objectName": "SevClient"
},
"createUser": {
"id": "0",
"objectName": "SevUser"
},
"voucherDate": "01.01.2020",
"supplier": {
"id": "0",
"objectName": "Contact"
},
"supplierName": "John Snow",
"description": "Voucher-1000",
"document": {
"id": "0",
"objectName": "Document"
},
"payDate": "01.01.2020",
"status": "50",
"sumNet": "0",
"sumTax": "0",
"sumGross": "0",
"sumNetAccounting": "0",
"sumTaxAccounting": "0",
"sumGrossAccounting": "0",
"sumDiscounts": "0",
"sumDiscountsForeignCurrency": "0",
"taxType": "default",
"creditDebit": "C",
"costCentre": {
"id": "0"
},
"voucherType": "VOU",
"currency": "EUR",
"propertyForeignCurrencyDeadline": "01.01.2022",
"propertyExchangeRate": "0.8912",
"recurringStartDate": "01.01.2020",
"recurringNextVoucher": "01.02.2020",
"recurringLastVoucher": "01.01.2021",
"recurringEndDate": "01.01.2021",
"enshrined": "2024-04-08T00:00:00+02:00",
"taxSet": {
"id": "0",
"objectName": "TaxSet"
},
"paymentDeadline": "01.01.2020",
"deliveryDate": "01.01.2020",
"deliveryDateUntil": "01.01.2020"
}