DeleteMark

[POST] .../v1/docinvoice/deletemark

Toggles the invoice deletion mark. Use this method to mark an invoice for deletion or to remove the deletion mark before the final DocInvoice/Delete call. The request body must contain id and the response returns UpdateResult with row_affected for the changed invoice. The invoice must be locked by the current request user and must not be posted; the method toggles deleted_mark and does not physically remove the record. The current request user must have invoice delete-mark permission; missing body, invalid id, denied access, unlocked document, posted document, tariff restriction, database or transaction failures are returned as HTTP 200 ErrorResult business errors.

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
  }
}