Delete

[POST] .../v1/docreturnstopartner/delete

Deletes a supplier return document. Use this destructive method after DocReturnsToPartner/DeleteMark to delete a return-to-partner document that is already marked with deleted_mark = true. The request body must contain id and the response returns row_affected for the soft-deleted document row. The document must be locked by the current request user, not posted, not already deleted and the caller must have delete permission; missing id, denied access, lock conflicts, missing delete mark, 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
  }
}