Delete

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

Deletion commercial offer document. Deletion is available when the document is marked with deleted_mark = true, for marking on deletion used method DocCommercialOffer/DeleteMark Use this destructive method to 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 and writes the delete action log; callers should use DocCommercialOffer/Get to verify deleted_mark before deletion. Business errors such as missing body, invalid id, denied access, disabled tariff option, lock failure, missing deletion mark, no affected row, database failures or action log failures 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
  }
}