[POST] .../v1/docwholesalereturn/perform
Posts wholesale return-from-partner document. Use this method after DocWholeSaleReturn/Lock and WholeSaleReturnOperation/Add or Edit to post a wholesale return document and make its item operations affect stock and partner balances. The request body must contain id and the response returns row_affected for the posted document row. The document must be locked by the current request user, not marked for deletion, not deleted and the caller must have perform permission; closed periods, deleted operation items, denied access, lock conflicts, no affected rows, database failures, webhook or persistence errors are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Return-from-partner document ID. |
Request Example
{
"id": 6601
}
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
}
}