Perform

[POST] .../v1/docpurchase/perform

Posts a purchase receipt document. Post a receipt-from-partner document after its header and purchase operations are complete. It changes the document to performed state, marks related additional-expense records as posted, sends the purchase-performed webhook and returns row_affected. The caller must have perform permission and provide a positive id; the method rejects missing or locked documents, documents that fail closed-period checks, component assembly conflicts, deleted-mark items in operations, additional-expense amount mismatches and other business errors such as 1016, 1115, 1169 or 1192 as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
id Int64 Required Record ID.

Request Example

{
  "id": 1
}

Response Parameters

Name Type Description
ok Boolean Indicates whether the request completed successfully.
result Update Update operation result.

Response Example

{
  "ok": true,
  "result": {
    "ids": [
      null
    ],
    "row_affected": 1
  }
}