PerformCancel
[POST] .../v1/docinvoice/performcancel
Cancels invoice posting. Return a posted invoice to an editable unposted state when business rules still allow cancellation. The request body must contain id and the response returns UpdateResult with row_affected for the invoice whose performed flag is set to false. The invoice must be locked by the current request user, must exist, not be marked for deletion or deleted and must have status New, ErrorSent or Received. The current request user must have invoice perform-cancel permission; missing body, invalid id, denied access, unlocked document, invalid status, tariff restriction, database or storage errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Invoice ID. |
Request Example
{
"id": 9101
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"row_affected": 1
}
}