Skip to main content
POST
/
api
/
v3
/
customer
/
validate
/
mobile-money
Validate phone number
curl --request POST \
  --url https://sandbox-api.kotanipay.com/api/v3/customer/validate/mobile-money \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "phoneNumber": "+254719399210"
}
'
{
  "success": true,
  "message": "Phone number validated successfully.",
  "data": {
    "isValid": true,
    "isSupported": true,
    "accountType": "mobile_money",
    "requiresInternationalization": false,
    "countryCode": "KE",
    "countryName": "Kenya",
    "callingCode": "<string>",
    "internationalNumber": "+254719399210",
    "nationalNumber": "0719399210",
    "bankName": "<string>",
    "currency": "KES",
    "message": "<string>"
  }
}
Validates a mobile money account by checking the phone number format and country support. Optionally verifies if the account exists and returns account holder information.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
phoneNumber
string
required

Phone number to validate (with or without country code). Examples: 0719399210, +254719399210, +27123456789

Example:

"+254719399210"

Response

success
boolean
Example:

true

message
string
Example:

"Phone number validated successfully."

data
object