Perform

[POST] .../v1/docreturnstopartner/perform

Posts partner return document. Use this method after DocReturnsToPartner/Lock and ReturnsToPartnerOperation/Add or Edit to post a return-to-partner 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 catalog items referenced by operations, insufficient stock balance, composite items in operations, 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-to-partner document ID.

Request Example

{
  "id": 4401
}

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