Knowladge Base

1K GET A LIST OF AVAILABLE Rated NXX

This method returns the list of available available NXX by NPA and Vendor Rating in the form of an array. The user is required to give User ID, Password, NPA and Vendor Ratings as arguments and he’ll get a list of available NXX list of that country. Note: Please note that this function works only for USA.

 

Example URL:

http://newapi.didx.net/DidxApis/api/getAvailableRatedNXX.php?UserID=700290&Password=XXXX&NPA=570&CountryCode=1

 

Example Code in PHP:

<?php

$curl_handle = curl_init();

$url = "http://newapi.didx.net/DidxApis/api/getAvailableRatedNXX.php?UserID=700290&Password=XXXX&NPA=570&CountryCode=1";

curl_setopt($curl_handle, CURLOPT_URL, $url);

curl_setopt($curl_handle, CURLOPT_RETURNTRANSFER, true);

$curl_data = curl_exec($curl_handle);

curl_close($curl_handle);

$response_data = json_decode($curl_data);

print_r($response_data);

die();

?>

 

Input Fields:

    1. UserID
    2. Password
    3. CountryCode
    4. NPA
    5. VRatingFrom
    6. VRatingTo

 

Returned Fields:

    1. CountryCode?
    2. Country
    3. AreaCode?
    4. Area
    5. NXX

 

Error Codes:

In case of any incorrect information provided by the user or in case of no matching data, an error code will be returned. Error codes correspond to the following messages:

-1 = User ID does not exist

-2 = Your Password is Incorrect

-3 = There are no rated DIDs’ Areas avaiable in our record.