CancelPayment

[POST] .../v1/promobonus/cancelpayment

Cancels operation payment with customer card Use this destructive method to cancel a bonus payment operation when the related retail payment must be reversed. The request requires uuid, the promo bonus delete permission and a payment operation that exists; the method locks the uuid and marks the operation as deleted. If the payment was already performed, the method runs the withdrawal-cancel function before completing the cancellation and emits the payment-canceled webhook; the response returns row_affected. Business errors such as a missing request body, missing uuid, denied access, missing operation, missing active payment 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
  }
}