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:

http://newapi.didx.net/DidxApisWithJsonResponse/api/GetCostOfDIDByNumber.php?UserID=700223&Password=234334&DIDNumber=14194643509

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.