Skip to content

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/void

Request Headers ​

HeaderDescriptionRequired
X-Api-KeyYour API keyYes
X-TimestampUnix timestamp in secondsYes
X-NonceUnique request identifierYes
X-SignatureHMAC-SHA256 signature (v1=...)Yes

See API Key Authentication for how to sign your requests.

Request Body ​

ParameterTypeRequiredDescription
refidstringNoYour unique reference ID used when calling the Make Payment endpoint. Provide either refid or trxid
trxidstringNoInternal IIMMPACT transaction ID. Alternative to refid — provide one or the other
user_emailarrayManaged Payments onlyThe 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_phonestringNoThe 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_typenumberYesReason for the void request (see below)
refund_reasonstringNoRequired only if refund_type is 3. Free-text description of the reason
descriptionstringNoAdditional 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 ​

ValueReason
1Incorrect Amount or Wrong Account
2Duplicate Transaction
3Other 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 ​

FieldTypeDescription
dataobjectResult
data.refidstringThe reference ID of the transaction
data.statusstringSuccess or Failed
data.messagestringDescription 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 ​

Reasondata.message
A support request is already openSorry, 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 oldSorry, refunds are not possible for transactions that are more than 30 days old.
Product is not refundableSorry, this product is not eligible for refunds. Please contact us at support@iimmpact.com if you need further assistance.
Transaction was already refundedThe 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_emailThis 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 dashboardThis 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_emailThis 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 sentSomething went wrong. If you dont receive an email shortly, please contact us at support@iimmpact.com.

Response 400 ​

FieldTypeDescription
messagestringThe given data was invalid.
errorsobjectValidation errors, keyed by field
KeyMessageCause
trxidInvalid transaction ID or reference IDTransaction not found for your account. Always keyed as trxid, even if you provided refid
trxid, refidThe trxid or refid must be provided.Neither ID was sent
refund_typeInvalid refund_type. Valid values are 1, 2, or 3.refund_type is missing or not 1, 2 or 3
refund_reasonrefund_reason is required when the refund_type is 'Others'.refund_type is 3 without refund_reason
user_phoneuser_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
bodyThe body field is required.The body could not be read, for example user_email sent as a string instead of an array
descriptiondescription 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:

FieldValueDescription
status_code53Indicates a voided/refunded transaction
statusFailedStatus 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.

IIMMPACT API Documentation