Refunds
Return funds to the customer's original instrument. Omit the amount for a full refund, or pass amountMinor for a partial one.
POST
/v1/payments/{id}/refundsRefund a payment (full or partial)
| Parameter | Type | Required | Description |
|---|---|---|---|
| amountMinor | integer | No | — |
| reason | string | No | — |
| metadata | object | No | — |
Request body
json
{
"amountMinor": 5000,
"reason": "string",
"metadata": {}
}Response
json
{
"status": "ok",
"data": {
"id": "a1b2c3d4-5678-90ab-cdef-1234567890ab",
"status": "SUCCEEDED",
"amountMinor": 5000,
"currency": "GHS"
}
}