POST /v2/payments/void
Voids a payment before it has been settled. Use this when you need to cancel a payment on the same day before the settlement batch runs.
Void is different from refund: voids cancel transactions before settlement, while refunds reverse transactions after settlement. Voids are typically faster and may avoid processing fees.
Request Parameters
Payment identifier to void.
Merchant-generated unique void request ID (idempotency key).Max length: 64 characters
Response Parameters
Standard result object
Rebell-assigned void identifier
Original payment identifier
Void processing time (ISO 8601)
Example Request
Example Response
Result Codes
| resultStatus | resultCode | Description | Action |
|---|---|---|---|
S | SUCCESS | Payment voided | Update order status |
F | ORDER_NOT_EXIST | Payment not found | Verify paymentId |
F | VOID_NOT_ALLOWED | Payment cannot be voided | Use refund instead |
F | ORDER_ALREADY_SETTLED | Payment already settled | Use refund instead |
U | VOID_IN_PROCESS | Void processing | Poll with inquiryVoid |
When to Use Void vs Refund
| Scenario | Use |
|---|---|
| Same-day cancellation before settlement | Void |
| Cancellation after settlement | Refund |
| Partial reversal | Refund |
| Customer changed mind (same day) | Void |
| Defective product return | Refund |
Related
Inquiry Void
Check void status