Method for Getting Purchased Numbers This method returns the list of available DIDs which you have purchased in your account.
3G GET A LIST OF ALL YOUR PURCHASED DIDS BY COUNTRY CODE AND AREA
Example URL:
Example Code in PHP:
<?php $curl_handle = curl_init(); $url = "http://newapi.didx.net/DidxApis/api/getMyPurchasedNumbersByCountryCodeAreaCode.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:
-
- UserID
- Password
- CountryCode
- AreaCode
Returned Fields:
-
- DIDNumber
- OurSetupCost
- OurMonthlyCharges
- OurPerMinuteCharges
- Country Area
- CountryCode
- StateCode
- VendorID
- RateCenter
- DIDID
- HideNumber
- CountryID
- SMSEnable
- VoiceEnable
- VanityRating
- TestStatus
- PurchasedDate
- RingTo
- RingToType
- 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 = In valid DID Number.
-3 = There are no Record found.
-4 = Invalid order requested to show.