v1
latestOpenAPI 3.0.02026-07-1315476656.4 KBCreditNote
Reset status to draft
Resets the status to "Draft" ("status": "100").<br> This is only possible if the credit note has the status "Open" ("status": "200").<br> If it has a higher status use CreditNote/{creditNoteId}/resetToOpen first.
put/CreditNote/{creditNoteId}/resetToDraft
Path parameters
creditNoteIdinteger required
ID of the credit note to reset
Response
Successful operation - Returns changed credit note
Example response
{
"objects": {
"id": "1",
"objectName": "CreditNote",
"create": "2023-04-18T15:45:38+02:00",
"update": "2023-04-18T15:45:38+02:00",
"creditNoteNumber": "GU-1000",
"contact": {
"id": "1",
"objectName": "Contact"
},
"creditNoteDate": "2023-04-18T15:45:38+02:00",
"status": "100",
"header": "My GU-1000",
"addressCountry": {
"id": "1",
"objectName": "StaticCountry"
},
"createUser": {
"id": "1",
"objectName": "SevUser"
},
"sevClient": {
"id": "1",
"objectName": "SevClient"
},
"deliveryDate": "2023-04-18T15:45:38+02:00",
"contactPerson": {
"id": "1",
"objectName": "SevUser"
},
"taxRate": "0",
"taxSet": {
"id": "1",
"objectName": "TaxSet"
},
"taxType": "default",
"sendDate": "2023-04-18T15:45:38+02:00",
"currency": "EUR",
"sumNet": "0",
"sumTax": "0",
"sumGross": "0",
"sumDiscounts": "0",
"sumNetForeignCurrency": "0",
"sumTaxForeignCurrency": "0",
"sumGrossForeignCurrency": "0",
"sumDiscountsForeignCurrency": "0"
}
}