HubtelDevelopers
API referenceVerification

Validate a Ghana Card

POST
/v2/merchantaccount/merchants/{accountNumber}/ghanacard/verify

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
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.

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%"  }}