HubtelDevelopers
API referenceVerification

Verify an ID with customer consent

GET
/v2/merchantaccount/merchants/{accountNumber}/idcard/verify

Verifies a Ghana Card or Voter ID through the mobile network (MTN) with the customer's consent by USSD. The customer approves sharing their details on their phone before the result is returned.

Authorization

basicAuth
AuthorizationBasic <token>

Base64 of API ID:API Key.

In: header

Path Parameters

accountNumber*string

Your collection account number (POS sales), where customer payments land. Find it in your Hubtel merchant account under Programmable keys → Account ID. In the sandbox, use the collection account in Workbench.

Query Parameters

idtype*string
idnumber*string

The customer's MTN number. Accepted formats: 233XXXXXXXXX and 0XXXXXXXXX

network*string
consentType?string

The preferred consent type. Options include: 1. sms 2. ussd

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v2/merchantaccount/merchants/string/idcard/verify?idtype=ghanacard&idnumber=233XXXXXXXXX&network=MTN&consentType=ussd"

{  "message": "Success",  "responseCode": "0000",  "data": {    "name": "JOHN DONATUS MILLS",    "dateOfBirth": "1984 June 23",    "gender": "MALE",    "nationalId": "GHA-000000000-0"  }}