[POST] .../v1/docpurchase/delete
Deletes partner receipt document. Use this destructive method to permanently delete a receipt-from-partner document that has already been marked with deleted_mark. It sets the document deleted flag and returns row_affected; the normal workflow is DocPurchase/DeleteMark first, then DocPurchase/Delete when the deletion is confirmed. The caller must have delete permission and provide a positive id; posted documents, missing documents, locked documents, unmarked documents and documents with posted additional expenses are rejected by business rules and returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Record ID. |
Request Example
{
"id": 1
}
Response Parameters
| Name | Type | Description |
|---|---|---|
| ok | Boolean | Indicates whether the request completed successfully. |
| result | Update | Update operation result. |
Response Example
{
"ok": true,
"result": {
"ids": [
null
],
"row_affected": 1
}
}