HubtelDevelopers
API referenceSend to Bank

Pay out to a bank account

POST
/api/merchants/{accountNumber}/send/bank/gh/{bankCode}

Sends money from your disbursement account to a Ghanaian bank account identified by bankCode in the path. Verify the account name first with Look up a bank account name. The final result is POSTed to PrimaryCallbackUrl.

Authorization

basicAuth
AuthorizationBasic <token>

Base64 of API ID:API Key.

In: header

Path Parameters

accountNumber*string

Your disbursement account number (prepaid), which funds payouts and purchases. Find it in your Hubtel merchant account under Programmable keys → Account ID. In the sandbox, use the disbursement account in Workbench.

bankCode*string

The recipient bank's GhIPSS code, for example 300304 for GCB Bank or 300312 for Ecobank. See the full list of bank codes.

Value in

  • "300302"
  • "300303"
  • "300304"
  • "300305"
  • "300306"
  • "300307"
  • "300309"
  • "300310"
  • "300311"
  • "300312"
  • "300313"
  • "300316"
  • "300317"
  • "300318"
  • "300319"
  • "300320"
  • "300322"
  • "300323"
  • "300324"
  • "300325"
  • "300329"
  • "300331"
  • "300334"
  • "300362"

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

Callbacks

curl -X POST "https://example.com/api/merchants/string/send/bank/gh/300302" \  -H "Content-Type: application/json" \  -d '{    "Amount": 10,    "BankName": "",    "BankBranch": "",    "BankBranchCode": "",    "BankAccountNumber": "4XXXXXXXXX",    "BankAccountName": "",    "ClientReference": "sendToBank101",    "PrimaryCallbackUrl": "https://webhook.site/b503d1a9-e726-f315254a6ede",    "Description": "Test Deposit",    "RecipientPhoneNumber": ""  }'
{  "ResponseCode": "0001",  "Data": {    "AmountDebited": 0,    "TransactionId": "367121386447",    "Description": "Your request has been accepted. We will notify you when the transaction is completed.",    "ClientReference": "sendToBank101",    "ExternalTransactionId": "",    "Amount": 10,    "Charges": 0,    "Meta": null,    "RecipientName": null  }}