HubtelDevelopers
API referenceVerification

Validate a Voter ID

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

Checks a Voter ID card number and returns the holder's details when it matches. Use it when your verification process requires Voter ID details.

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/voteridcard/verify" \  -H "Content-Type: application/json" \  -d '{    "voterIdCardNumber": "0000000000",    "surname": "Doe",    "othernames": "John",    "sex": "male",    "dateOfBirth": "yyyy/mm/dd"  }'

{  "message": "Success",  "responseCode": "0000",  "data": {    "isValid": true,    "score": "100%"  }}