Validate MSISDN

Validate MSISDN

Validates a phone number (MSISDN) and returns information about its country, operator, validity, and normalized format.

Authentication

Required

Request Header

HeaderTypeRequiredDescription
x-merchant-refStringYesYour unique merchant reference.

Request

POST /api/v1/...

Request Body

{
  "msisdn": "2348126329414"
}

Response

Success Response

{
  "status": "success",
  "message": "Fetched",
  "data": {
    "data": {
      "country": {
        "alt": [
          "NG"
        ],
        "id": "NG"
      },
      "isFormallyValid": true,
      "isValid": true,
      "normalized": "2348126329414",
      "operator": {
        "alt": [
          1,
          18,
          19,
          20,
          2662
        ],
        "confidence": 0,
        "id": "20"
      },
      "original": "2348126329414"
    }
  }
}

Response Fields

FieldTypeDescription
statusStringIndicates whether the request was successful.
messageStringDescription of the response.
country.idStringISO country code identified from the MSISDN.
country.altArrayAlternative country identifiers associated with the number.
isFormallyValidBooleanIndicates whether the MSISDN conforms to the expected phone number format.
isValidBooleanIndicates whether the MSISDN is considered valid.
normalizedStringThe MSISDN converted to its normalized international format.
originalStringThe original MSISDN submitted for validation.
operator.idStringIdentifier of the detected mobile network operator.
operator.altArrayAlternative operator identifiers associated with the detected operator.
operator.confidenceNumberConfidence level of the detected operator.

Example

For the MSISDN 2348126329414:

  • Country: Nigeria (NG)
  • Formally valid: true
  • Valid: true
  • Normalized MSISDN: 2348126329414
  • Operator ID: 20

Did this page help you?