[POST] .../v1/purchaseoperation/delete
Deletes operation receipt from partner. Use this destructive method to delete one or more item lines from a receipt-from-partner document when those operations should no longer be part of the document. The request body is a JSON array batch and every item must contain a positive operation id; deletion returns row_affected and ids for the operations actually removed. The caller must have purchase-operation delete permission; null, empty or oversized arrays, missing ids, denied access, locked or invalid document state and persistent storage failures are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Receipt-from-partner operation ID. |
Request Example
[
{
"id": 7001
}
]
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": [
7001
]
}
}