[POST] .../v1/docsetprice/delete
Deletes document setting prices. Deletion is available when the document is marked with deleted_mark = true, for marking on deletion used method DocSetPrice/DeleteMark. Use this destructive method to permanently delete a price setting document after it was marked with deleted_mark by DocSetPrice/DeleteMark. The request body must contain a positive document id and the document must be locked by the current user, unposted, not deleted and currently marked for deletion. The response returns row_affected for the deleted document and the current request user must have price setting document delete permission. Missing body, invalid id, denied access, unavailable tariff, lock conflicts, already posted documents, missing delete mark, no affected rows, database failures or webhook failures are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Price setting document ID. |
Request Example
{
"id": 6101
}
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
}
}