Excerpt |
---|
Format phone number for out of country calling. Validate phone number and return the correctly formatted valid number ready to be called from a given country. |
Endpoint ID: | 6012 | |||||||||||||||
Method: |
| |||||||||||||||
URL: | /services/phonenumber/format/{phoneNumber}/from/{region}?countryCode={countryCode}&countryCodeFormat={countryCodeFormat} | |||||||||||||||
phoneNumber | Phone number to be formatted. Valid examples
| |||||||||||||||
regionregion | Desired country code in which the number to be formatted. | |||||||||||||||
countryCode | Optional value to identify country of phoneNumber. | |||||||||||||||
countryCodeFormat | Optional value to identify countryCode format. Valid values are
| |||||||||||||||
Request body: | None | |||||||||||||||
| JSON data with information of formatted phone number
| |||||||||||||||
Status codes: | 200 | Phone number is formatted successfully. | ||||||||||||||
400 | The following sub codes may be returned:
| 404 | No matching country code found for
|
...
|