Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Endpoint ID:6010
Method:
Status
colourGreen
titleGET
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

Span
stylewhite-space:pre

Response body:

JSON data with information about the found cityvalid phone number 

 

{
Code Block
titleExample – Lookup city name for zip code 4000 in Denmark:
Parse +4529254029
{
	"phoneNumber":+4529254029
	"countryCode": "DK",
	"zipCodecountryDialCode": "400045",
	"citynumberType": "RoskildeLandLine"
}

 

 

 

Status codes:200

City name found successfully

 400

City lookup for the requested country is not supported

 404

The specified zip code was not found in the given country