IsValidAdvanced
Validate a UK landline number
To connect to this service you'll need to use one of these endpoints:
Description
Checks a UK landline number for validity.
This service is not appropriate if you need to validate any number other than a UK landline number. If you need to validate mobile numbers or international numbers, you should consider the use of the PhoneValidation service.
This service is deprecated in favour of the PhoneValidation service. This service will remain operational for the foreseeable future, but the PhoneValidation service should be used for all new development.
Parameters
The following parameters can be supplied to this method
username |
username apikey- , e.g.
apikey-ABCD-1234-EFGH-5678
|
---|---|
password |
password |
number | number The telephone number to validate |
options | options |
Advanced Options
The following options can be specified as part of the option
parameter. Each option is specified
as a key/value pair. The list of available names is shown below, along with a description of the allowable values
for that name.
Common Options | |
---|---|
Name | Description |
ApplicationName | ApplicationName Gives the name of the calling application - used to break down usage by application in the usage reports on the dashboard |
Service-Specific Options | |
Name | Description |
IgnoreExtraDigits | IgnoreExtraDigits Indicates if any extra digits beyond those needed to dial the number should be ignored. With this option turned on, |
AllowedPrefixes | AllowedPrefixes An optional comma-separated list of telephone number prefixes that are allowed. If this option is specified, any telephone number that does not match one of these prefixes is automatically flagged as invalid. These numbers must be specified in international format. |
BarredPrefixes | BarredPrefixes An optional comma-separated list of telephone number prefixes that are not allowed. If this option is specified, any telephone number that matches one of these prefixes will automatically be flagged as invalid. These prefixes must be specified in international format. |
UseMobileValidation | UseMobileValidation If set to true then the service will use MobileValidation on any number it recognises as a mobile number and TelephoneLineValidation on all other numbers. Please ensure you have MobileValidation credits available before using this option. The option defaults to false. |
Results
This method returns an object containing the following fields:
Status |
Status Success field is true , the other results described below can be used to get the results of the method.
If Success is false , some error occurred in calling the method, such as the authentication failed or the
account is out of credits. The details of the error can be obtained from the ErrorMessage field, and any other results should be ignored
|
||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Result | Result One of the following options to indicate the validity of the supplied number:
|