Delete

[POST] .../v1/docordertopartner/delete

Deletes partner order document. Use this destructive method only after DocOrderToPartner/DeleteMark has marked the supplier order for deletion. The request body must contain a valid document id; successful deletion removes the document header and returns the number of affected rows. The caller must have partner order delete permission and the document must be deletable according to lock, deleted_mark, operation and state checks. Missing body, invalid id, denied access, locked document, document-not-marked state or database failures are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id Int64 Required Partner order document ID.

Request Example

{
  "id": 4501
}

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
  }
}