Skip to main content
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

paymentId
string
Rebell payment identifier.
paymentRequestId
string
Merchant payment request ID.
At least one of paymentId or paymentRequestId is required.

Response Parameters

result
object
required
Standard result object
paymentId
string
Payment identifier

Example Request

{
  "paymentId": "2024011012345678901234",
  "paymentRequestId": "QR-20240110-001"
}

Example Response

{
  "result": {
    "resultCode": "SUCCESS",
    "resultStatus": "S",
    "resultMessage": "success"
  },
  "paymentId": "2024011012345678901234"
}

Result Codes

resultStatusresultCodeDescription
SSUCCESSPayment cancelled successfully
FORDER_NOT_EXISTPayment not found
FORDER_IS_CLOSEDPayment already completed or cancelled
FCANCEL_NOT_ALLOWEDPayment cannot be cancelled in current state