[POST] .../v1/docopeningbalance/delete
Deletion opening settlement document with partner. Deletion available, if document marked on deletion deleted_mark = true, for marking on deletion used method DocOpeningBalance/DeleteMark Use this destructive method only after DocOpeningBalance/DeleteMark has set deleted_mark to true for the opening partner balance document. The request body is required, id is required, the caller needs the opening balance delete permission and the document must be locked for deletion. The document must be unposted, marked for deletion and not already deleted; missing, posted, unmarked or unavailable rows return business errors without changing the HTTP status. The response returns row_affected and fires the DocOpeningBalanceDeleted webhook; business errors such as missing body, invalid id, denied access, no matching row, posted state 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
}
}