Perform

[POST] .../v1/docinvoice/perform

Posts an invoice document. Use this method after the invoice header and InvoiceOperation lines are complete and before sending the invoice through EDI. The request body must contain id and the response returns UpdateResult with row_affected for the invoice whose performed flag is set to true. The invoice must be locked by the current request user, not marked for deletion and not deleted; posting changes the document workflow state but does not send it to the EDI provider. The current request user must have invoice perform permission; missing body, invalid id, denied access, unlocked document, deleted_mark/deleted state, tariff restriction, database or transaction failures are returned as HTTP 200 ErrorResult business errors.

Request Parameters

Name Type Required Description
id Int64 Required Invoice ID.

Request Example

{
  "id": 9101
}

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