Verify an ID with customer consent
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 Base64 of API ID:API Key.
In: header
Path Parameters
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
The customer's MTN number. Accepted formats: 233XXXXXXXXX and 0XXXXXXXXX
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" }}Validate a Ghana Card POST
Checks a Ghana Card number with the National Identification Authority and returns the holder's details when it matches. Use it to onboard customers for regulated products such as loans.
Look up a wallet's registered name GET
Returns whether a number is a registered mobile money wallet and the name it is registered to. Use it to confirm a recipient before a payout, or to reduce payment prompts to wrong numbers.