Comment on page
Validate a phone number and receive phone details on return.
The number should be a string with the country code followed by the number.
If you send the number with any characters that is fine. They will be stripped out. So,
1 (201) 510-6000is also valid.
On input you can set which line types should return a
PHONE TYPE CHECK FAILED. For example, the above would fail if the number was detected as voip. Use any of the line types described below in the output data section.
The following are all values that will be returned in the result object of the response.
The phone validation returns information to your application about the number. Below are the return values.
PhoneMatch+Validate will process with the default base ruleset. Here are the rules:
The base ruleset will return a PASS when:
- The phone number is valid
- The phone number type is not on the exclusion list
The base ruleset will return a FAIL when:
- The phone number is not valid
- The phone number type is on the exclusion list