Validate a Ghana Card
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.
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.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/v2/merchantaccount/merchants/string/ghanacard/verify" \ -H "Content-Type: application/json" \ -d '{ "ghanaCardNumber": "GHA-000000000-0", "surname": "Doe", "firstnames": "John", "gender": "male", "dateOfBirth": "dd/mm/yyyy" }'{ "message": "Success", "responseCode": "0000", "data": { "isValid": true, "score": "100%" }}Look up a bank account name GET
Returns the account holder's name for a bank code and account number. Compare it with the name your customer gave you before paying out.
Verify an ID with customer consent GET
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.