curl --location --request POST 'https://api.hub2.io/refunds' \ --header 'ApiKey: [REDACTED]' \ --header 'MerchantId: [REDACTED]' \ --header 'Environment: sandbox' \ --header 'Content-Type: application/json' \ --data-raw '{ "id": "tr_000000000000000000011", "zendeskTicketId": "zd_123456" }'
{ "id": 123, "status": "created", "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:00:00.000Z" }
This endpoint allows you to create a refund for a successful transfer.
tr_000000000000000000011
zd_123456
created
pending
pending_manual
successful
failed
XOF
USD
mobile_money
bank_transfer