Appearance
Void Transaction
Request a void or cancellation for a successfully completed transaction. This is primarily intended for bill payment transactions and is subject to biller approval.
TIP
For a walkthrough of the void process and webhook handling, see the Void Transaction Guide.
DANGER
AI-powered intelligence and automation are only active in production. Staging validates the request and returns a simulated Success response, but doesn't check eligibility, open a case or send email.
WARNING
Only use this API for Succesful transactions of refundable products that are no more than 30 days old. Not applicable for prepaid mobile top-ups, PIN-based products (e.g., game credits, gift cards), or other instant fulfillment services.
API Endpoint
http
POST https://api.iimmpact.com/v2/transactions/voidRequest Headers
| Header | Description | Required |
|---|---|---|
X-Api-Key | Your API key | Yes |
X-Timestamp | Unix timestamp in seconds | Yes |
X-Nonce | Unique request identifier | Yes |
X-Signature | HMAC-SHA256 signature (v1=...) | Yes |
See API Key Authentication for how to sign your requests.
Request Body
| Parameter | Type | Required | Description |
|---|---|---|---|
refid | string | No | Your unique reference ID used when calling the Make Payment endpoint. Provide either refid or trxid |
trxid | string | No | Internal IIMMPACT transaction ID. Alternative to refid — provide one or the other |
user_email | array | Managed Payments only | The end customer's email address, as an array holding exactly one address (a string returns 400 errors.body). Required when the transaction is a Managed Payments transaction, because IIMMPACT writes to the customer directly about the refund. For any other transaction it is accepted and ignored |
user_phone | string | No | The end customer's phone number, at most 32 characters. Used only for a Managed Payments transaction, where IIMMPACT support sees it on the case; ignored for any other transaction |
refund_type | number | Yes | Reason for the void request (see below) |
refund_reason | string | No | Required only if refund_type is 3. Free-text description of the reason |
description | string | No | Additional details, included in the support email. Up to 2000 characters after trimming |
INFO
At least one of refid or trxid must be provided. If both are supplied, trxid takes precedence.
Refund Types
| Value | Reason |
|---|---|
1 | Incorrect Amount or Wrong Account |
2 | Duplicate Transaction |
3 | Other Reason (requires refund_reason) |
Example Request:
json
{
"refid": "123456",
"user_email": ["customer@example.com"],
"refund_type": 3,
"refund_reason": "Paid the wrong bill"
}Response 200
| Field | Type | Description |
|---|---|---|
data | object | Result |
data.refid | string | The reference ID of the transaction |
data.status | string | Success or Failed |
data.message | string | Description of the outcome |
Example Response (Success — void request submitted):
json
{
"data": {
"refid": "123456",
"status": "Success",
"message": "We've received your request for a refund and will process it at once."
}
}Example Response (Failed — duplicate request):
json
{
"data": {
"refid": "123456",
"status": "Failed",
"message": "Sorry, a support request has already been created for this transaction. We're working on it and will provide an update shortly."
}
}Failed Messages
| Reason | data.message |
|---|---|
| A support request is already open | Sorry, a support request has already been created for this transaction. We're working on it and will provide an update shortly. |
| Transaction is more than 30 days old | Sorry, refunds are not possible for transactions that are more than 30 days old. |
| Product is not refundable | Sorry, this product is not eligible for refunds. Please contact us at support@iimmpact.com if you need further assistance. |
| Transaction was already refunded | The transaction is already refunded. Please contact us at support@iimmpact.com if you need further assistance. |
| Transaction is not successful (failed or in progress) | Sorry, Request Refund is not available for failed transactions as they are automatically refunded. Please contact us at support@iimmpact.com if you need further assistance. |
Managed Payments transaction without exactly one valid user_email | This transaction was paid for by the customer directly. Please send the customer's email address, exactly one, in user_email. |
| Managed Payments transaction reported from the dashboard | This transaction was paid for by the customer directly. Please report it from your app, which sends the customer's email address. |
Another transaction of the same Managed Payments order was reported with a different user_email | This order was already reported with a different customer email address. The customer should reply to the email they already received; a new report cannot use another address. |
| The support email could not be sent | Something went wrong. If you dont receive an email shortly, please contact us at support@iimmpact.com. |
Response 400
| Field | Type | Description |
|---|---|---|
message | string | The given data was invalid. |
errors | object | Validation errors, keyed by field |
| Key | Message | Cause |
|---|---|---|
trxid | Invalid transaction ID or reference ID | Transaction not found for your account. Always keyed as trxid, even if you provided refid |
trxid, refid | The trxid or refid must be provided. | Neither ID was sent |
refund_type | Invalid refund_type. Valid values are 1, 2, or 3. | refund_type is missing or not 1, 2 or 3 |
refund_reason | refund_reason is required when the refund_type is 'Others'. | refund_type is 3 without refund_reason |
user_phone | user_phone must be at most 32 characters after trimming. | user_phone is too long |
user_email[<index>] | Invalid email: <value> | An address is not a valid email |
body | The body field is required. | The body could not be read, for example user_email sent as a string instead of an array |
description | description must be at most 2000 characters after trimming. | description is too long |
Example Response:
json
{
"message": "The given data was invalid.",
"errors": {
"trxid": [
"Invalid transaction ID or reference ID"
]
}
}Response 503
The support service is temporarily unavailable. The response contains a message. Retry later; if the retry returns the duplicate-request message, the earlier request was received.
Webhook Notification
When a transaction has been successfully voided and the refund processed by both the biller and IIMMPACT, a webhook notification is sent to your registered endpoint.
Key data in the webhook payload:
| Field | Value | Description |
|---|---|---|
status_code | 53 | Indicates a voided/refunded transaction |
status | Failed | Status name for voided transactions |
Upon receiving this webhook, your system should process the refund back to the end-user (e.g., to their original payment method or e-wallet).
Email Notifications
Updates about a request go to the signed-in dashboard user or, for an API-key request, to the support contacts IIMMPACT holds for your account. To change those contacts, contact IIMMPACT support. For a Managed Payments transaction, IIMMPACT also emails the end customer at user_email.
