POST: Pay Hero Wallet- Withdraw To Bank
This end point is used to withdraw funds from your payments wallet to Bank
Request Method
Endpoint enables you to withdraw funds to Bank
POST
https://backend.payhero.co.ke/api/v2/withdraw
Headers
Authorization:*
String
Basic basicAuthToken
Request Body
external_reference
String
Your unique reference to track this transaction Eg: INV-009
amount*
Integer
Eg: 100
account_number*
String
Eg: 9762536252625,
This represents the bank account number.
network_code*
String
A unique digit code is used for identifying the various banks.
Refer to the list below
callback_url
String
Your endpoint URL that we will use to send payment status response eg: https://example.com/callback.php
channel*
String
Value: bank
channel_id
Integer
Your payment wallet channel ID
payment_service
String
Value: b2c
Bank Network Codes
01 KCB
02 Standard Chartered Bank KE
03 Absa Bank
07 NCBA
10 Prime Bank
11 Cooperative Bank
12 National Bank
14 M-Oriental
16 Citibank
18 Middle East Bank
19 Bank of Africa
23 Consolidated Bank
25 Credit Bank
31 Stanbic Bank
35 ABC Bank
36 Choice Microfinance Bank
43 Eco Bank
50 Paramount Universal Bank
51 Kingdom Bank
53 Guaranty Bank
54 Victoria Commercial Bank
55 Guardian Bank
57 I&M Bank
61 HFC Bank
63 DTB
65 Mayfair Bank
66 Sidian Bank
68 Equity Bank
70 Family Bank
72 Gulf African Bank
74 First Community Bank
75 DIB Bank
76 UBA
78 KWFT Bank
89 Stima Sacco
97 Telcom Kenya
Sample Code
This represents PHP Curl example of how to make the request, you can implement this in your specific language of choice
Callback URL Response Sample
This represents the JSON that will be sent to your request callback_url
Last updated
Was this helpful?