Delete

[POST] .../v1/docwholesalereturn/delete

Deletion document return to partner. Deletion is available when the document is marked with deleted_mark = true, for marking on deletion used method DocWholeSaleReturn/DeleteMark Use this destructive method after DocWholeSaleReturn/DeleteMark to permanently delete a wholesale return 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, database failures, webhook or persistence errors are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id Int64 Required Return-from-partner document ID.

Request Example

{
  "id": 6601
}

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