[POST] .../v1/docopeningbalance/deletemark
Toggles deleted_mark for opening settlement document with partner. Use this method to toggle deleted_mark for an opening partner balance document before the final destructive DocOpeningBalance/Delete step. The request body is required, id is required, the caller needs the opening balance delete-mark permission and the document must be locked for the current operation. The document must be unposted and not physically deleted; posted, missing or unavailable rows are returned as business errors instead of HTTP 4xx. The response returns row_affected and fires the DocOpeningBalanceDeleteMarked webhook; business errors such as missing body, invalid id, denied access, posted state, no matching row or database failures are returned as HTTP 200 ErrorResult.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Required opening partner balance document ID. |
Request Example
{
"id": 26
}
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
}
}