This method retrieve general DID Information
2L GET DID GENERAL INFORMATION
Example URL:
http://newapi.didx.net/DidxApis/api/getDIDInfo.php?UserID=700290&Password=XXXX&DIDNumber=14194643509
Example Code in PHP:
<?php $curl_handle = curl_init(); $url = "http://newapi.didx.net/DidxApis/api/getDIDInfo.php?UserID=700290&Password=XXXX&DIDNumber=14194643509"; 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
- DIDNumber
Returned Fields:
-
- DID Number
- Free Minutes
- Per Minute Charges After Free Minutes
- No. of Channels
- Test Status
- Vendor ID
- Setup Charges
- Monthly Charges
- AreaID
- Status (0. Available, 1. Reserved, 2. Sold)
- Document Approval Status. (1. Approved)
- Document Required by This DID (1. Yes, 0. No)
- Message for Document (If this DID required Document)
- Document Type (1. Image, 2. Text 3. Image+Text)
- VendorRating
- Calling Card restriction (1. Yes. 0. No)
- Selling for Calling Card (1. Yes. 0. No)
- Codec Supported (1. Yes. 0. No)
- Selling Directly From Network (1. Yes. 0. No)
- Allow to be sold for Trigger CallBack (1. Yes. 0. No)
- Caller ID support(1. Yes. 0. No)
- Caller ID Name support(1. Yes. 0. No)
- State Name
- Free SMS
- Per SMS Charges After Free SMS
- DTMF support(1. Yes. 0. No)
- Country Area
- Expiry Date
- Used Free Minutes
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:
-2 = Invalid UserID / Password
-3 = There are no DID in our Database.