Knowladge Base

GET COST OF A PARTICULAR DID

Method for Getting the cost of a DID

This method returns the cost (Setup Charges, Monthly Charges, Per Minute Cost) of the DID number that is being passed as an argument.

Method Signature

GetCostOfDIDByNumber ($UserID,$Password,$DIDNumber)

Example Usage

We are providing a sample code in PHP that accesses and uses this service.

<?php

require_once “nusoap.php”;

$parameters=array(“548136″,”548das”,”92216545332″);
$soapclient= new soapclient(‘http://api.didx.net/webservice/WebGetCostOfDIDServer.php’);
$SoapResult = array();
$SoapResult = $soapclient->call(“GetCostOfDIDByNumber”, $parameters,’urn:GetCostOfDIDByNumber’);

print_r($SoapResult);

?>

This code asks for the cost of DID number: 92216545332. The different charges are returned in the form of an array. The first element of the array represents Setup Cost, second Monthly Charges and the third represents Per Minute Charges, fourth one is vendor rating for this DID. If there is an error in the request, an error code is returned.

Field Returned:
OurSetupCost?
OurMonthlyCharges?
OurPerMinuteCharges?
VRating
OID

Error Codes

It will return an ‘Error Code’ in case there is some thing wrong with the information provided or there is no matching data in our record.

-1 = User ID does not exist
-2 = Your Password is Incorrect
-3 = DID number doesn’t exist.