Hubtel Verification API Version 2
Hubtel Verification API Version 2
1
Contents
2
1.0 Overview of the APIs
This API is for checking whether a customer is registered on Mobile Money and also to query
the username on the Mobile Money account
This API is also checking the validity of a customer’s Basic details eg. age, gender etc whether
customer is eligible for a business partnership etc.
ID Type ghanacard
ID Type voterid
3
3.0 Getting Started With The APIs
3.1 Authentication
For this API, there are two required methods of authentication:
3.1 API Keys
3.2 Business IP whitelisting
API Keys
You need to authenticate every API request you make to the Hubtel Sales API using Basic
Auth. Authenticate by encoding your username and password to Base64 HTTP Basic
Authorization. Use your API ID as your username and API Key as your password.
A Base64 encoding of your API keys should have your Authorization header appear like this:
Basic a2hlcW2sb3U6bWdhtHd9YW8=. Try sample basic auth here
https://www.base64encode.org
PS: After creating API keys, kindly communicate with the Hubtel representative assisting
with your integration to add ‘Receive Money’ scopes to your API keys.
Business IP whitelisting
You will also have to share your business IP address with us for whitelisting. Only requests
from this IP will be accepted. Send this via email to [email protected] or share with the
Hubtel representative assisting with your integration.
4
4.0 Endpoint for Integration
NB: Replace the “AccountNumber” in the above endpoint with your Hubtel POS sales
number before proceeding. Find yours here https://bo.hubtel.com/money using the digits
under POS Sales.
Request Parameters:
5
Response Parameters:
Sample Request
GET
https://rnv.hubtel.com/merchantaccount/merchants/11684/mobilemoney/verify?cust
omerMsisdn=233207000000&channel=vodafone-gh
HTTP/1.1
Host:
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3=
Cache-Control: no-cache
Sample Response
{
"Message": "Success",
"ResponseCode": "0000",
"Data": {
"IsRegistered": true,
"Name": "Nii Nortei Nortey"
"Status": "active"
}
6
2. ID Card Verification Query
This endpoint can be used to query the validity of issued ID Cards and it’s information.
Request: To send a request, make an HTTP GET to the below URL with the required
parameters:
https://rnv.hubtel.com/merchantaccount/merchants/[HUBTEL_ACCOUNT_NUM
API Endpoint BER]/idcard/verify?idtype=[ ID_TYPE]&idnumber=[ID_NUMBER]
NB: Replace the “AccountNumber” in the above endpoint with your Hubtel POS sales
number before proceeding. Find yours here https://bo.hubtel.com/money using the digits
under POS Sales.
Request Parameters:
Response Parameters:
7
The unique response error code on the status of the
ResponseCode String
transaction.
Sample Request
GET
https://rnv.hubtel.com/merchantaccount/merchants/11691/idcard/verify?idtype=gh
anacard&idnumber=GHA-7xxxxxxx9-7
HTTP/1.1
Host:
Accept: application/json
Content-Type: application/json
Authorization: Basic endjeOBiZHhza250fT3=
Cache-Control: no-cache
Sample Response
{
"Message": "Success",
"ResponseCode": "0000",
"Data": {
"Name": "AUGUSTINE GYAWU ADJEI",
"DateOfBirth": "1986 June 25",
"Gender": "Male"
}
8
Contact Us
Hubtel
63 Olympics Street
Accra - Ghana
General: [email protected]
Sales: [email protected]
Help: [email protected]
www.hubtel.com