Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Parse and validated phone number

 

Endpoint ID:6010
Method:GET
URL:

 /services/phonenumber/parse/{phoneNumber}?countryCode={countryCode}&countryCodeFormat={countryCodeFormat} 

 phoneNumber

Phone number to be validated

 countryCode

Optional value to identify country of phoneNumber.

 countryCodeFormat 

Optional value to identify countryCode format.

Valid values are

  • ISO2
  • ISO3
  • ISON
  • Internet
  • Custom
Request body:None

Response body:

JSON data with information about the valid phone number 

 

Example – Parse +4529254029
{
	"phoneNumber":+4529254029
	"countryCode": "DK",
	"countryDialCode": "45",
	"numberType": "LandLine"
}

 

 

 

Status codes:200

Phone number is validated successfully.

 400

The following sub codes may be returned:

 

400.1Invalid Phone number.
400.2Phone number must be in international format if country code is not specified.
400.3Invalid Country code format.
 404

No matching country code found for country code format. 

 

 

 

 

  • No labels