Verify Phone Number

Phone-Number Verification

POST {{baseurl}}/v2/api/identity/ng/phone

Headers

Name
Type
Description

token*

String

API secret token

Request Body

Name
Type
Description

mobile*

String

Valid phone number

isSubjectConsent*

Boolean

Indicate subject has given consent. Must be true

metadata

Object

Metadata object. Any valid object can be passed here. It gets returned as is.

Phone Number Verification

The Basic Phone Number Verification is used to verify the owner of a phone number

{
    "mobile": "08000000000",
    "isSubjectConsent": true
}
{
        "success": true,
        "statusCode": 200,
        "message": "success",
        "data": {
            "parentId": "612ce40ab8919f39faf7ae49",
            "status": "found",
            "dataValidation": false,
            "selfieValidation": false,
            "phoneDetails": [
                {
                    "fullName": "EHICHIOYA FAMOUS PRIOR",
                    "dateOfBirth": "2000-01-01"
                },
                {
                    "fullName": "EHICHIOYA FAMOUS PRIOR",
                    "dateOfBirth": "2000-01-03"
                }
            ],
            "isConsent": true,
            "idNumber": "08036xxxxxx",
            "businessId": "619b683ecb55a2a588f4b83c",
            "type": "phone",
            "requestedAt": "2021-12-15T00:20:53.143Z",
            "country": "NG",
            "createdAt": "2021-12-15T00:20:53.334Z",
            "lastModifiedAt": "2021-12-15T00:20:53.334Z",
            "id": "61b934dfaab326675cdfaab326",
            "requestedBy": {
                "firstName": "API",
                "lastName": "User",
                "middleName": "",
                "id": "619b683ecb55a2a588f4b839"
            }
        },
        "links": []
    }
HTTP/1.1 402 Payment Required
  {
    "success": false,
    "statusCode": 402,
    "message": "Insufficient fund",
    "name": "PaymentRequiredError",
    "data": {}
}


HTTP/1.1 500 Internal Server Error
{
    "success": false,
    "statusCode": 500,
    "message": "Service unavailable",
    "name": "Error",
    "data": {}
}

HTTP/1.1 403 Forbidden
{
    "success": false,
    "statusCode": 403,
    "message": "Permission denied",
    "name": "UnauthorizedError",
    "data": {}
}

Last updated