Refunds
Send all or part of a successful payment back to your customer. Mobile Money payments go back to their Mobile Money wallet, and Wire Gh wallet payments go back to their Wire Gh wallet at once.
Create a refund
Call Create Refund with the transaction reference or ID. Leave out amount to refund everything that has not already been refunded.
curl https://api.wiregh.com/refund \
-H "Authorization: Bearer YOUR_SECRET_KEY" \
-H "Content-Type: application/json" \
-d '{
"transaction": "WG2611096D4HQE52FMY9KW",
"amount": 2000,
"customer_note": "Sorry, this item is out of stock"
}' \
-X POSTconst response = await fetch('https://api.wiregh.com/refund', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_SECRET_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
transaction: 'WG2611096D4HQE52FMY9KW',
amount: 2000,
customer_note: 'Sorry, this item is out of stock'
})
});
const result = await response.json();
console.log(result);<?php
$ch = curl_init('https://api.wiregh.com/refund');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => json_encode([
'transaction' => 'WG2611096D4HQE52FMY9KW',
'amount' => 2000,
'customer_note' => 'Sorry, this item is out of stock',
]),
CURLOPT_HTTPHEADER => [
'Authorization: Bearer YOUR_SECRET_KEY',
'Content-Type: application/json',
],
]);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);
print_r($result);{
"status": true,
"message": "Refund has been queued for processing",
"data": {
"id": 34,
"integration": 100231,
"domain": "test",
"transaction": 173,
"transaction_reference": "WG2611096D4HQE52FMY9KW",
"amount": 2000,
"currency": "GHS",
"status": "processed",
"refunded_by": "merchant_api",
"customer_note": null,
"merchant_note": "Item out of stock",
"refunded_at": "2026-11-09T01:03:40.000Z",
"createdAt": "2026-11-09T01:03:40.000Z"
}
}Partial refunds
You can refund a transaction in several parts. Each refund can be up to the amount not yet refunded, and refunded_amount on the transaction shows the running total. When the full amount has been refunded, the transaction status becomes reversed.
Refund statuses
| Status | Meaning | Webhook |
|---|---|---|
pending | Queued for processing. | |
processing | Sent to the network, waiting for confirmation. | refund.pending |
processed | The money is back with the customer. | refund.processed |
failed | The refund could not be completed. The amount is returned to your balance. | refund.failed |
needs_attention | Our team is looking into it. No action is needed from you. |
Your balance
Refunds are paid from your Wire Gh balance, from the pending or available part depending on whether the payment has settled yet. If your balance cannot cover a refund, the request fails with insufficient_balance. Check your balance any time with Check Balance.