[POST] .../v1/docpayment/perform
Posts payment document. Use this method to post an unposted payment document after it has been created and checked. Posting changes the document workflow state, writes an action log entry, sends the DocPaymentPerformed webhook and lets database-side finance logic apply the payment to account and partner balances. The current request user must have perform permission and outgoing payments are blocked when overdraft is disabled and the account balance is insufficient. The method can be used only for an existing unposted payment document that is not marked for deletion and not deleted. Missing body, invalid id, denied permission, disabled payment tariff, insufficient account balance, already posted documents, marked/deleted documents, transaction failures and storage conflicts are returned as HTTP 200 ErrorResult business errors.
Request Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| id | Int64 | Required | Required payment document ID. |
Request Example
{
"id": 42
}
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
}
}