Skip to main content

Add Account

base_url: https://demo.etranzact.com/bankit-api/antPeer/v1

Description: This endpoint is used to add an account

Request Parameters

ParameterTypeDescriptionRequired
sessionIdstringSession IDYes
referencestringClient’s referenceYes
merchantIdstringMerchant IDYes
phoneNointegerCustomer’s phone number. This should be preceded with 234Yes
bankobjectAn object holding the bank details of the customerYes
bankNamestringCustomer’s Bank nameYes
bankCodestringCustomer’s Bank CodeYes
accountNostringCustomer’s account numberYes
pinstringCustomer transaction PIN. This is to be encrypted using the SHA 256 64 bit encryption algorithmYes
POST /user/addAccount
curl `${base_url}/user/addAccount`
-H "Content-type: application/json"
-H "Authorization: Bearer YOUR_SECRET_KEY"
-X POST
-d '{
"sessionId": "1uMifUW7I0El3Q3b",
"reference": "1dkD2PLYDL8M1k6LBUI9",
"merchantId": "ANT-PEER",
"phoneNo": 2347065099181,
"bank": {
"bankName": "UBA",
"bankCode": "033",
"accountNo": "1022024258"
},
"pin":"3udwo38rhfkle84udndkdo38934744hrnfie93IOU34n3h3u4b4n5nnnwerfgtes",
}
'