Knowladge Base

3F GET A LIST OF ALL YOUR PURCHASED DIDS

Method for Getting Purchased Numbers. This method returns the list of available DIDs which you have purchased in your account.

 

Example URL:

http://newapi.didx.net/DidxApis/api/getMyPurchasedNumbers.php?UserID=700290&Password=XXXX

 

Example Code in PHP:

<?php

$curl_handle = curl_init();

$url = "http://newapi.didx.net/DidxApis/api/getMyPurchasedNumbers.php?UserID=700290&Password=XXXX";

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. PageNo
    4. SortBy
    5. SortOrder

 

Returned Fields:

    1. DIDNumber
    2. OurSetupCost
    3. OurMonthlyCharges
    4. OurPerMinuteCharges
    5. Country Area
    6. CountryCode
    7. StateCode
    8. VendorID
    9. RateCenter
    10. DIDID
    11. HideNumber
    12. CountryID
    13. SMSEnable
    14. VoiceEnable
    15. VanityRating
    16. TestStatus
    17. PurchasedDate
    18. RingTo
    19. RingToType
    20. FreeMinutes

 

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 DID’s for this Area in our record.
-4 = The Area code does not exist.
-5 = There are no DID’s for this country in our record.
-6 = The Country Code does not exist.