[POST] .../v1/invoiceoperation/delete
Deletes operations from account-invoice. Use this destructive method to remove one or more item rows from a locked account-invoice before the invoice is posted or sent. The request body is a root JSON array; it must contain 1 to 250 operation ids and every id must be positive. All selected operations must belong to one invoice document and that parent invoice must be locked by the current request user, not performed, not deleted_mark and not deleted. The current request user must have invoice operation delete permission and the successful response returns row_affected and ids of deleted operations; validation, permission, lock, document-state, missing-row and database failures are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Invoice operation ID. |
Request Example
[
{
"id": 9101
}
]
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,
"ids": [
9101
]
}
}