[POST] .../v1/docorderfrompartner/delete
Deletes order-from-partner document. Use this destructive method only after DocOrderFromPartner/DeleteMark has marked the order-from-partner document for deletion. The request body must contain a valid document id; successful deletion removes the document header from active use and returns the number of affected rows. The caller must have order-from-partner 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 | Order-from-partner document ID. |
Request Example
{
"id": 4601
}
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
}
}