curl --location --request GET 'https://api.hub2.io/refunds/123' \ --header 'ApiKey: [REDACTED]' \ --header 'MerchantId: [REDACTED]' \ --header 'Environment: sandbox' \ --header 'Content-Type: application/json'
{ "id": 123, "status": "successful", "transactionId": "tr_000000000000000000011", "amount": 2000, "currency": "XOF", "reason": "Customer requested refund", "paymentMethod": "mobile_money", "fallbackAllowed": true, "fallbackUsed": false, "metadata": {}, "zendeskTicketId": "zd_123456", "createdAt": "2023-01-01T12:00:00.000Z", "updatedAt": "2023-01-01T12:30:00.000Z" }
This endpoint allows you to retrieve the details of a specific refund.
created
pending
pending_manual
successful
failed
XOF
USD
mobile_money
bank_transfer