HubtelDevelopers
API reference

Refunds

Refund a completed mobile money payment within 45 days.

Preview documentation

Host: refund-api.hubtel.com. Requests must come from an allowlisted IP.

Authenticate with your API ID and API Key. See Authentication and accounts.

OperationRequest
Refund a paymentPOST /refund/{accountNumber}/order/{transactionId}

Response codes

The codes this service returns in ResponseCode, as documented for production. Codes shared by all payment APIs are also explained in Errors.

ResponseCodeStatusDescription
0001202Transaction pending. Expect callback request for final state. Data contains order ID
3000404Could not find order with ID {orderId}. Data is null
4000404Cannot honour refund request because amount on order is less than 1 cedi. Data is null
4509404Order with ID {orderId} is not eligible for a refund. Data is null
4515423Order with ID {orderId} is currently being processed. Please wait for callback on your supplied URL. This means you have made an initial refund request with the same order ID.