Delete

[POST] .../v1/ordertopartneroperation/delete

Deletes item lines from a supplier order document. Delete one or more requested item lines from a DocOrderToPartner supplier order when the lines were added by mistake or should no longer be processed. The request body is a JSON array batch where every item must contain an operation id and the response returns row_affected plus the ids of rows actually deleted. The operation must belong to a DocOrderToPartner document, the parent document must be locked by the current user and eligible for editing and the caller must have delete permission; null, empty or oversized arrays, missing ids, denied access, already restricted documents or storage failures are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Order-to-partner operation ID.

Request Example

[
  {
    "id": 8401
  }
]

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": [
      8401
    ]
  }
}