CancelPayment

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

Cancels a customer card bonus payment and reverses its posted effect. 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. Errors such as a missing request body, missing uuid, denied access, missing operation, missing active payment row, storage errors 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
  }
}