DeleteMark
[POST] .../v1/docreturnstopartner/deletemark
Toggles the deletion mark of a supplier return document. Mark or unmark a return-to-partner document for deletion before the final DocReturnsToPartner/Delete call. The request body must contain id and the response returns row_affected for the toggled deleted_mark value. The document must be locked by the current request user, not posted, not deleted and the caller must have delete-mark permission; missing id, denied access, lock conflicts, already posted documents, no affected rows, storage errors, webhook or persistence errors are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Return-to-partner document ID. |
Request Example
{
"id": 4401
}
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
}
}