v1

latestOpenAPI 3.0.02026-07-1315476656.4 KB
Voucher

Reset status to draft

Resets the status "Draft" ("status": "50"). Linked payments will be unlinked. Created asset depreciation will be reset.<br> This is not possible if the voucher is already enshrined!

You can only change the status from higher to lower ("Open" to "Draft").<br> To change to higher status use /Voucher/Factory/saveVoucher.

put/Voucher/{voucherId}/resetToDraft

Path parameters

voucherIdinteger required

ID of the voucher to reset

Response

Successful operation - Returns changed voucher

Example response

{
  "objects": {
    "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": "200",
    "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"
  }
}