POST /v2/payments/cancel
Cancels a payment that is still in a pending or processing state. Use this when you need to abort a payment before the user completes it.
Request Parameters
Rebell payment identifier.
Merchant payment request ID.
At least one of
paymentId or paymentRequestId is required.Response Parameters
Standard result object
Payment identifier
Example Request
Example Response
Result Codes
| resultStatus | resultCode | Description |
|---|---|---|
S | SUCCESS | Payment cancelled successfully |
F | ORDER_NOT_EXIST | Payment not found |
F | ORDER_IS_CLOSED | Payment already completed or cancelled |
F | CANCEL_NOT_ALLOWED | Payment cannot be cancelled in current state |