Delete

[POST] .../v1/doccommercialoffer/delete

Deletes a commercial offer document. Final-delete a commercial offer document after it has already been marked for deletion with DocCommercialOffer/DeleteMark. The request requires the commercial offer delete permission and the commercial offer tariff option; id is required, the document must satisfy the document lock contract, must not already be deleted and must have deleted_mark = true. The method sets the internal deleted flag; callers should use DocCommercialOffer/Get to verify deleted_mark before deletion. Errors such as missing body, invalid id, denied access, disabled tariff option, lock failure, missing deletion mark, no affected row, storage errors are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Commercial offer document 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
  }
}