DeleteMark

[POST] .../v1/docpurchase/deletemark

Toggles deleted_mark for partner receipt document. Use this method to mark a receipt-from-partner document for deletion or to remove that mark before final deletion. It toggles the deleted_mark flag for one document and returns row_affected; call DocPurchase/Delete afterwards only when the document must be deleted permanently. The caller must have delete-mark permission and provide a positive id; the persistent layer rejects missing, posted, locked or blocked-by-posted-additional-expense documents and returns business errors such as 1002, 1008, 1150, 1152, 1155 or storage errors 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
  }
}