This method returns the cost (Setup Charges, Monthly Charges, Per Minute Cost) of the DID number that is being passed as an argument.
2E GET COST OF A DID NUMBER
Example URL:
Example Code in PHP:
<?php $curl_handle = curl_init(); $url = "http://newapi.didx.net/DidxApis/api/GetCostOfDIDByNumber.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:
-
- OurSetupCost?
- OurMonthlyCharges?
- OurPerMinuteCharges?
- VRating OID
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 = DID number doesn’t exist.