PerformPayment

[POST] .../v1/promobonus/performpayment

Posts operation payment with customer card. Use this method after PromoBonus/CreatePayment to post the pending customer card payment operation. The request requires uuid, the promo bonus add permission and an operation that exists, is a payment operation, is not deleted and has enough available balance when it is an outcome. The method locks the uuid, marks the operation as performed, runs the withdrawal function for outcome payments, emits the payment-performed webhook and returns row_affected. Business errors such as a missing request body, missing uuid, denied access, missing operation, non-payment uuid, deleted operation, insufficient balance, missing active row, database errors or persistence failures are returned as HTTP 200 ErrorResult.

Request Parameters

Name Type Required Description
uuid String Required Customer card payment operation UUID.

Request Example

{
  "uuid": "00000000-0000-0000-0000-000000000000"
}

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