Knowladge Base

GET A LIST OF AVAILABLE NXX LIST BY NPA

METHOD FOR GETTING AVAILABLE NXX LIST BY NPA

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.

Method Signature

sub getAvailableRatedNXX ($UserID,$Password,$CountryCode,$NPA,$VRatingFrom,$VRatingTo)

Example :

http://newapi.didx.net/DidxApisWithJsonResponse/api/getAvailableRatedNXX.php?UserID=700000&Password=23123123&NPA=570&CountryCode=1

The first two arguments passed to the method are user id and password. The third argument is the country code, the fourth represents the NPA, fifth starting Rating and the sixth represents the ending Rating. In this case, we’ve provided ratings from 5 to Vendor Rating 9. This will return the list of all available NXX of NPA 567.

Fields Returned:
CountryCode?
Country
AreaCode?
Area
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 available in our record.