{"_id":"55cba6d437edd823001a85e2","category":{"_id":"55cba6d337edd823001a85da","__v":1,"pages":["55cba6d437edd823001a85e0","55cba6d437edd823001a85e1","55cba6d437edd823001a85e2","55cba6d437edd823001a85e3","55cba6d437edd823001a85e4","55cba6d437edd823001a85e5"],"project":"55c80e130300460d00c91c1d","version":"55cba6d237edd823001a85d7","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-11T19:40:06.209Z","from_sync":false,"order":2,"slug":"lead-validation-end-api","title":"LEAD VALIDATION END API"},"parentDoc":null,"editedParams2":true,"__v":2,"user":"55ca76068705a70d00b8fbef","version":{"_id":"55cba6d237edd823001a85d7","project":"55c80e130300460d00c91c1d","__v":3,"createdAt":"2015-08-12T20:04:34.776Z","releaseDate":"2015-08-12T20:04:34.776Z","categories":["55cba6d337edd823001a85d8","55cba6d337edd823001a85d9","55cba6d337edd823001a85da","55cba6d337edd823001a85db","55cbd8e84cf2180d00bb1c15","561312bc41a9ec0d00a3fdfc"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"project":"55c80e130300460d00c91c1d","editedParams":true,"updates":["56467f8ba74cd10d00a3f09e"],"next":{"pages":[],"description":""},"createdAt":"2015-08-12T17:39:46.196Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"get","results":{"codes":[{"code":"{  \n       \"Criteria\":{  \n              \"Host\":\"XXXX\",\n              \"RequestDate\":\"2015-07-14T15:31:51.3449564Z\",\n              \"RequestIP\":\"192.168.1.1\",\n              \"TransactionId\":\"e5be8f0e-a6ee-46b0-bd9b-e2450efbb70e\",\n              \"Telephone\":\"2065551212\",\n              \"PostalCode\":\"98101\"\n           },\n           \"PhoneResult\":{  \n              {  \n                 \"AreaCode\":\"206\",\n                 \"Prefix\":\"555\",\n                 \"Suffix\":\"1212\",\n                 \"City\":\"Seattle\",\n                 \"State\":\"WA\",\n                 \"CountryCode\":\"1\",\n                 \"CountyFips\":\"1234\",\n                 \"CountyName\":\"King\",\n                 \"Distance\":\"6\",                 \n                 \"Msa\":\"7602\",\n                 \"Pmsa\":\"7600\",\n                 \"TimeZone\":\"Pacific Time\",\n                 \"TimeZoneCode\":\"08\",\n                 \"LineType\":\"S\",\n                 \"Codes\":[\n                    {\n                        \"Status\":\"Status\",\n                        \"Code\":\"P2\",\n                        \"Description\":\"Area code, exchange and the first digit of the suffix verified.\"\n                    },\n                    {\n                        \"Status\":\"Status\",\n                        \"Code\":\"P22\",\n                        \"Description\":\"Phone number connection status has been verified.\"\n                    }\n                 ]\n           }\n      }\n}","name":"","status":200,"language":"json"}]},"settings":"","examples":{"codes":[{"language":"php","code":"<?php\n    \n$licensekey = \"YOURKEYHERE\";\n\n$url =  \"https://api.accurateappend.com/Services/V2/ValidatePhone/\" . $licensekey . \"/?\";\n$querystring = \"phone=2065551212\" .\n               \"&postalcode=98101\" .\n               \"&verifyconnectionstatus=true\";\n\n\n\n$url .= $querystring;\n//echo \"request url: \" . $url . \"<br>\\n<br>\\n\";\n\nif(strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')\n{\n    // windows operating system as the requesting server\n    $cacert_path_file = dirname(__FILE__) . \"\\cacert.pem\";\n}\nelse\n{\n    // other os\n    $cacert_path_file = \"cacert.pem\";\n}\n\n$ch = curl_init();\ncurl_setopt($ch, CURLOPT_URL, $url);\ncurl_setopt($ch, CURLOPT_HTTPGET, true);\ncurl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json'));\ncurl_setopt($ch, CURLOPT_SSLVERSION, 'CURL_SSLVERSION_DEFAULT');  // on a windows server the single quotes are required on 3rd parameter\ncurl_setopt($ch, CURLOPT_CAINFO, $cacert_path_file);\ncurl_setopt($ch, CURLOPT_RETURNTRANSFER, true);\ncurl_setopt($ch, CURLOPT_VERBOSE, true);\n\n$json_string = curl_exec($ch);\n$curl_err = curl_error($ch);\n\nif($curl_err)\n{\n    echo \"curl error: $curl_err\";\n}\nelse\n{\n    curl_close($ch);\n\n    // decode json\n    $parsed_json = json_decode($json_string);\n\n    // instantiate an associative array\n    $response = array();\n    // load json data into associative array\n    $response = json_to_associative($parsed_json);\n\n    // print the associative array to the screen\n    foreach ($response as $key => $value)\n    {\n        echo $key . \" = \" . $value . \"<br>\\n\";\n    }\n}\n\n\necho \"<br>\\n\";\necho \"<br>\\n\";\necho \"<br>\\n\";\necho \"<br>\\n\";\necho \"<br>\\n\";\necho \"<br>\\n\";\necho \"<br>\\n\";\n\n\n\n// --------------------------------------------------------- //\n//\n// --------------------------------------------------------- //\nfunction json_to_associative($parsed_json)\n{\n    $response = array();\n\n    // load the associative array with all response key/value pairs\n    $response['Host'] = $parsed_json->{'Criteria'}->Host;\n    $response['RequestDate'] = $parsed_json->{'Criteria'}->RequestDate;\n    $response['RequestIP'] = $parsed_json->{'Criteria'}->RequestIP;\n    $response['TransactionId'] = $parsed_json->{'Criteria'}->TransactionId;\n    $response['PostalCode'] = $parsed_json->{'Criteria'}->PostalCode;\n    $response['Telephone'] = $parsed_json->{'Criteria'}->Telephone;\n\n\n    // typecast the stdClass to array\n    $obj_arr = (array)$parsed_json->{'PhoneResult'};\n\n    if(!empty($obj_arr))\n    {\n        if(array_key_exists(\"AreaCode\", $obj_arr))\n        {\n            $response['AreaCode'] = $obj_arr['AreaCode'];\n        }\n        if(array_key_exists(\"CountryCode\", $obj_arr))\n        {\n            $response['CountryCode'] = $obj_arr['CountryCode'];\n        }\n\n        if(array_key_exists(\"Prefix\", $obj_arr))\n        {\n            $response['Prefix'] = $obj_arr['Prefix'];\n        }\n\n        if(array_key_exists(\"State\", $obj_arr))\n        {\n            $response['State'] = $obj_arr['State'];\n        }\n\n        if(array_key_exists(\"Suffix\", $obj_arr))\n        {\n            $response['Suffix'] = $obj_arr['Suffix'];\n        }\n\n        // iteration required for mulitple Phones response\n        for($i = 0; $i < count($parsed_json->{'PhoneResult'}->{'Codes'}); $i++)\n        {\n            $keynum = $i + 1;\n\n            $response['Code' . $keynum] = $parsed_json->{'PhoneResult'}->{'Codes'}[$i]->Code;\n            $response['Description' . $keynum] = $parsed_json->{'PhoneResult'}->{'Codes'}[$i]->Description;\n            $response['Status' . $keynum] = $parsed_json->{'PhoneResult'}->{'Codes'}[$i]->Status;\n        }\n    }\n    return $response;\n}\n\n/*\nCopyright (c) 2015, AccurateAppend Corp\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted \nprovided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions \n   and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions \n   and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse \n   or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR \nIMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND \nFITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS \nBE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \nBUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS \nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR \nTORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF \nADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/\n\n?>","name":""},{"language":"csharp","code":"using System;\nusing System.Collections.Generic;\nusing System.Net;\nusing RestSharp;\n\nnamespace Samples\n{\n    // This example uses the RestSharp NuGet package (https://www.nuget.org/packages/RestSharp)\n  \n    public static class Program\n    {\n        private const String Key = \"YOURKEYHERE\";\n        private const String RootUri = :::at:::\"http://api.accurateappend.com/Services/V2\";\n\n        public static void Main(String[] args)\n        {\n            ValidatePhone();\n        }\n\n\n        #region Validation\n\n        public class Result\n        {\n            public String Type { get; set; }\n\n            public String Status { get; set; }\n\n            public String Code { get; set; }\n\n            public String Description { get; set; }\n        }\n\n\n        #region Validate Phone\n\n        private static void ValidatePhone()\n        {\n            const String Resource =\n                \"/ValidatePhone/\" + Key +\n                \"/?phone=2065551212&postalcode=98101&verifyconnectionstatus=true\";\n\n            var request = new RestRequest(Resource) { Method = Method.GET };\n\n            var client = new RestClient(RootUri);\n            var response = client.Execute<ValidatePhoneResponse>(request);\n            if (response.StatusCode != HttpStatusCode.OK)\n            {\n                // Error Handling Omitted For Brevity\n            }\n            var data = response.Data;\n            Console.WriteLine(\"{0} - {1} - {2}\", data.PhoneResult.AreaCode, data.PhoneResult.Prefix, data.PhoneResult.Suffix);\n        }\n\n        public class ValidatePhoneResponse\n        {\n            public PhoneValidationResult PhoneResult { get; set; }\n        }\n\n        public class PhoneValidationResult\n        {\n            public String AreaCode { get; set; }\n\n            public String Prefix { get; set; }\n\n            public String Suffix { get; set; }\n\n            public String City { get; set; }\n\n            public String State { get; set; }\n\n            public String CountryCode { get; set; }\n\n            public String CountyFips { get; set; }\n\n            public String CountyName { get; set; }\n\n            public String Distance { get; set; }\n\n            public String Latitude { get; set; }\n\n            public String Longitude { get; set; }\n\n            public String Msa { get; set; }\n\n            public String Pmsa { get; set; }\n\n            public String TimeZone { get; set; }\n\n            public String TimeZoneCode { get; set; }\n\n            public String LineType { get; set; }\n            \n            public List<Result> Results { get; set; }\n        }\n\n        #endregion\n    }\n}\n\n/*\nCopyright (c) 2015, AccurateAppend Corp\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without modification, are permitted \nprovided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this list of conditions \n   and the following disclaimer.\n\n2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions \n   and the following disclaimer in the documentation and/or other materials provided with the distribution.\n\n3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse \n   or promote products derived from this software without specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR \nIMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND \nFITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS \nBE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, \nBUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS \nINTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR \nTORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF \nADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n*/"}]},"auth":"required","params":[{"_id":"55cbcaf74cf2180d00bb1bf2","ref":"","in":"path","required":true,"desc":"License key issued by customer support.","default":"","type":"string","name":"licensekey"},{"_id":"55cbcaf74cf2180d00bb1bf1","ref":"","in":"query","required":true,"desc":"7 or 10 digit phone number","default":"","type":"string","name":"phone"},{"_id":"55cbcaf74cf2180d00bb1bf0","ref":"","in":"query","required":false,"desc":"5 digit postal code","default":"","type":"string","name":"postalcode"},{"_id":"55cbcaf74cf2180d00bb1bef","ref":"","in":"query","required":true,"desc":"Verify land line connection status","default":"true","type":"boolean","name":"verifyconnectionstatus"}],"url":"/ValidatePhone/:licensekey/"},"isReference":false,"order":2,"body":"[block:callout]\n{\n  \"type\": \"warning\",\n  \"title\": \"HTTP Headers\",\n  \"body\": \"When making a call to this API, the HTTP header \\\"content-type\\\" MUST be supplied with a value of \\\"application/json\\\". Failure to include this header will result in an HTTP 400 Bad Request response. Your choice of client library may automatically include this header. Please consult your documentation.\"\n}\n[/block]\n## PhoneResult\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Field name\",\n    \"h-1\": \"Type\",\n    \"h-2\": \"Description\",\n    \"0-0\": \"AreaCode\",\n    \"0-2\": \"Area code\",\n    \"0-1\": \"string\",\n    \"1-0\": \"Prefix\",\n    \"1-2\": \"3 digit prefix\",\n    \"1-1\": \"string\",\n    \"2-0\": \"Suffix\",\n    \"2-1\": \"string\",\n    \"3-1\": \"string\",\n    \"2-2\": \"4 digit suffix\",\n    \"3-0\": \"City\",\n    \"3-2\": \"City\",\n    \"4-0\": \"State\",\n    \"5-0\": \"CountryCode\",\n    \"5-2\": \"Country code\",\n    \"4-2\": \"State\",\n    \"4-1\": \"string\",\n    \"5-1\": \"string\",\n    \"6-0\": \"CountyFips\",\n    \"6-1\": \"string\",\n    \"6-2\": \"County Fips code\",\n    \"7-0\": \"CountyName\",\n    \"7-2\": \"County name\",\n    \"7-1\": \"string\",\n    \"8-0\": \"Distance\",\n    \"8-1\": \"string\",\n    \"8-2\": \"Distance from input postal code\",\n    \"9-0\": \"Msa\",\n    \"9-1\": \"string\",\n    \"9-2\": \"Metropolitan Statistical Area\",\n    \"10-0\": \"Pmsa\",\n    \"10-1\": \"string\",\n    \"10-2\": \"Primary Metropolitan Statistical Area\",\n    \"11-0\": \"TimeZone\",\n    \"11-1\": \"string\",\n    \"11-2\": \"Time zone\",\n    \"12-0\": \"TimeZoneCode\",\n    \"12-1\": \"string\",\n    \"12-2\": \"Time zone code\",\n    \"13-0\": \"LineType\",\n    \"13-1\": \"string\",\n    \"13-2\": \"See Line Type.\",\n    \"14-0\": \"Codes\",\n    \"14-1\": \"array\",\n    \"14-2\": \"Parsing and validation results. See Status codes.\"\n  },\n  \"cols\": 3,\n  \"rows\": 15\n}\n[/block]\n## LineType\nFor a list of codes and descriptions click [here](https://accurateappendapi.readme.io/docs/phone-linetype).\t\n\n## ValidatePhone Status Codes\nThis section lists the following types of status codes for the ValidatePhone method\n\n## Result Codes\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Code\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"P1\",\n    \"0-1\": \"Phone number was verified to the full 10-digit level\",\n    \"1-0\": \"P2\",\n    \"1-1\": \"Area code exchange and the first digit of the suffix verified\",\n    \"2-0\": \"P3\",\n    \"2-1\": \"Area code was changed according to the postal code it belongs to\",\n    \"3-0\": \"P6\",\n    \"3-1\": \"Area code updated. The area code was previously split\",\n    \"4-0\": \"P7\",\n    \"4-1\": \"The phone number belongs to a wireless phone\",\n    \"5-0\": \"P8\",\n    \"5-1\": \"The phone number belongs to a standard land line\",\n    \"6-0\": \"P9\",\n    \"6-1\": \"The phone number is assigned to a Voice Over IP (VOIP)\",\n    \"7-0\": \"P10\",\n    \"7-1\": \"Residential: The phone number belongs to a residence\",\n    \"8-0\": \"P11\",\n    \"8-1\": \"Business: The phone number is assigned to a business\",\n    \"9-0\": \"P12\",\n    \"9-1\": \"SOHO: The phone number is assigned to a small business or home office\",\n    \"10-0\": \"P20\",\n    \"10-1\": \"Phone number connection status has been verified\",\n    \"11-0\": \"P21\",\n    \"11-1\": \"Phone number connection status is unknown\"\n  },\n  \"cols\": 2,\n  \"rows\": 12\n}\n[/block]\n## Error Codes\n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Code\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"P13\",\n    \"0-1\": \"The area code does not exist in our database or contains non-numbers\",\n    \"1-0\": \"P14\",\n    \"1-1\": \"Blank phone number\",\n    \"2-0\": \"P15\",\n    \"2-1\": \"Invalid phone number: Too many or too few digits\",\n    \"3-0\": \"P16\",\n    \"3-1\": \"Multiple area code and prefix matches found\",\n    \"4-0\": \"P17\",\n    \"4-1\": \"The prefix does not exist in the database\",\n    \"5-0\": \"P18\",\n    \"5-1\": \"An invalid ZIP Code was provided\"\n  },\n  \"cols\": 2,\n  \"rows\": 6\n}\n[/block]\n## Time Zone Codes \n[block:parameters]\n{\n  \"data\": {\n    \"h-0\": \"Code\",\n    \"h-1\": \"Description\",\n    \"0-0\": \"4\",\n    \"0-1\": \"Atlantic Time\",\n    \"1-0\": \"5\",\n    \"1-1\": \"Eastern Time\",\n    \"2-0\": \"6\",\n    \"2-1\": \"Central Time\",\n    \"3-0\": \"7\",\n    \"3-1\": \"Mountain Time\",\n    \"4-0\": \"8\",\n    \"4-1\": \"Pacific Time\",\n    \"5-0\": \"9\",\n    \"5-1\": \"Alaska Time\",\n    \"6-0\": \"10\",\n    \"6-1\": \"Hawaii Time\",\n    \"7-0\": \"11\",\n    \"7-1\": \"Samoa Time\",\n    \"8-0\": \"12\",\n    \"8-1\": \"Marshall Island Time\",\n    \"9-0\": \"13\",\n    \"10-0\": \"14\",\n    \"9-1\": \"Guam Time\",\n    \"10-1\": \"Palau Time\"\n  },\n  \"cols\": 2,\n  \"rows\": 11\n}\n[/block]\n## Error Messages\nFor a list of codes and descriptions click [here](http://docs.accurateappend.com/docs/error-messages).","excerpt":"This section describes request parameters, responses and potential error messages for the ValidatePhone method.\n\n- Parses phone number in area code, prefix, and suffix.\n- Identifies syntactically incorrect phone numbers and phone numbers that have not been issued according to the North American Numbering Plan Association (NANPA).\nIdentifies city, state, and county where NANPA block was issued.\n- Appends MSA (Metro Statistical Area) identifier and PMSA (Primary Metropolitan Statistical Area) identifier.\nIdentifies whether line type is land line, mobile, or pager.\nIdentifies whether line category is residential, business or small business/home office.\n- Appends time zone.\nIn many cases, identifies land lines that are currently connected.","slug":"validatephone","type":"endpoint","title":"Validate Phone"}

getValidate Phone

This section describes request parameters, responses and potential error messages for the ValidatePhone method. - Parses phone number in area code, prefix, and suffix. - Identifies syntactically incorrect phone numbers and phone numbers that have not been issued according to the North American Numbering Plan Association (NANPA). Identifies city, state, and county where NANPA block was issued. - Appends MSA (Metro Statistical Area) identifier and PMSA (Primary Metropolitan Statistical Area) identifier. Identifies whether line type is land line, mobile, or pager. Identifies whether line category is residential, business or small business/home office. - Appends time zone. In many cases, identifies land lines that are currently connected.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Path Params

licensekey:
required
string
License key issued by customer support.

Query Params

phone:
required
string
7 or 10 digit phone number
postalcode:
string
5 digit postal code
verifyconnectionstatus:
required
booleantrue
Verify land line connection status

Examples


Result Format


Documentation

[block:callout] { "type": "warning", "title": "HTTP Headers", "body": "When making a call to this API, the HTTP header \"content-type\" MUST be supplied with a value of \"application/json\". Failure to include this header will result in an HTTP 400 Bad Request response. Your choice of client library may automatically include this header. Please consult your documentation." } [/block] ## PhoneResult [block:parameters] { "data": { "h-0": "Field name", "h-1": "Type", "h-2": "Description", "0-0": "AreaCode", "0-2": "Area code", "0-1": "string", "1-0": "Prefix", "1-2": "3 digit prefix", "1-1": "string", "2-0": "Suffix", "2-1": "string", "3-1": "string", "2-2": "4 digit suffix", "3-0": "City", "3-2": "City", "4-0": "State", "5-0": "CountryCode", "5-2": "Country code", "4-2": "State", "4-1": "string", "5-1": "string", "6-0": "CountyFips", "6-1": "string", "6-2": "County Fips code", "7-0": "CountyName", "7-2": "County name", "7-1": "string", "8-0": "Distance", "8-1": "string", "8-2": "Distance from input postal code", "9-0": "Msa", "9-1": "string", "9-2": "Metropolitan Statistical Area", "10-0": "Pmsa", "10-1": "string", "10-2": "Primary Metropolitan Statistical Area", "11-0": "TimeZone", "11-1": "string", "11-2": "Time zone", "12-0": "TimeZoneCode", "12-1": "string", "12-2": "Time zone code", "13-0": "LineType", "13-1": "string", "13-2": "See Line Type.", "14-0": "Codes", "14-1": "array", "14-2": "Parsing and validation results. See Status codes." }, "cols": 3, "rows": 15 } [/block] ## LineType For a list of codes and descriptions click [here](https://accurateappendapi.readme.io/docs/phone-linetype). ## ValidatePhone Status Codes This section lists the following types of status codes for the ValidatePhone method ## Result Codes [block:parameters] { "data": { "h-0": "Code", "h-1": "Description", "0-0": "P1", "0-1": "Phone number was verified to the full 10-digit level", "1-0": "P2", "1-1": "Area code exchange and the first digit of the suffix verified", "2-0": "P3", "2-1": "Area code was changed according to the postal code it belongs to", "3-0": "P6", "3-1": "Area code updated. The area code was previously split", "4-0": "P7", "4-1": "The phone number belongs to a wireless phone", "5-0": "P8", "5-1": "The phone number belongs to a standard land line", "6-0": "P9", "6-1": "The phone number is assigned to a Voice Over IP (VOIP)", "7-0": "P10", "7-1": "Residential: The phone number belongs to a residence", "8-0": "P11", "8-1": "Business: The phone number is assigned to a business", "9-0": "P12", "9-1": "SOHO: The phone number is assigned to a small business or home office", "10-0": "P20", "10-1": "Phone number connection status has been verified", "11-0": "P21", "11-1": "Phone number connection status is unknown" }, "cols": 2, "rows": 12 } [/block] ## Error Codes [block:parameters] { "data": { "h-0": "Code", "h-1": "Description", "0-0": "P13", "0-1": "The area code does not exist in our database or contains non-numbers", "1-0": "P14", "1-1": "Blank phone number", "2-0": "P15", "2-1": "Invalid phone number: Too many or too few digits", "3-0": "P16", "3-1": "Multiple area code and prefix matches found", "4-0": "P17", "4-1": "The prefix does not exist in the database", "5-0": "P18", "5-1": "An invalid ZIP Code was provided" }, "cols": 2, "rows": 6 } [/block] ## Time Zone Codes [block:parameters] { "data": { "h-0": "Code", "h-1": "Description", "0-0": "4", "0-1": "Atlantic Time", "1-0": "5", "1-1": "Eastern Time", "2-0": "6", "2-1": "Central Time", "3-0": "7", "3-1": "Mountain Time", "4-0": "8", "4-1": "Pacific Time", "5-0": "9", "5-1": "Alaska Time", "6-0": "10", "6-1": "Hawaii Time", "7-0": "11", "7-1": "Samoa Time", "8-0": "12", "8-1": "Marshall Island Time", "9-0": "13", "10-0": "14", "9-1": "Guam Time", "10-1": "Palau Time" }, "cols": 2, "rows": 11 } [/block] ## Error Messages For a list of codes and descriptions click [here](http://docs.accurateappend.com/docs/error-messages).

User Information

Try It Out

get
{{ tryResults.results }}
Method{{ tryResults.method }}
Request Headers
{{ tryResults.requestHeaders }}
URL{{ tryResults.url }}
Request Data
{{ tryResults.data }}
Status
Response Headers
{{ tryResults.responseHeaders }}