GetUsagesDetails
This XML API is used to get the information from the subscriber's account.
Sample Request
<?xml version="1.0" encoding="utf-8"?> <VCAREOSSAPI xmlns="http://www.oss.vcarecorporation.com/oss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <CREDENTIALS> <VENDORID></VENDORID> <USERNAME></USERNAME> <PASSWORD></PASSWORD> <PIN></PIN> <REFERENCENUMBER></REFERENCENUMBER> </CREDENTIALS> <VCAREOSS> <GETUSAGESDETAILS> <TELEPHONENUMBER></TELEPHONENUMBER> <DATEFROM></DATEFROM> <DATETO></DATETO> <MIN></MIN> <MAX></MAX> <SOURCE></SOURCE> <AGENTID></AGENTID> <AGENTPASSWORD></AGENTPASSWORD> </GETUSAGESDETAILS> </VCAREOSS> </VCAREOSSAPI>
Sample Response
<?xml version="1.0" encoding="utf-8"?> <VcareOssApi xmlns="http://www.oss.vcarecorporation.com/oss" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <credentials> <vendorId>dev-vertexvoice</vendorId> <referenceNumber>4053391535</referenceNumber> </credentials> <GetUsagesDetails> <statusCode></statusCode> <description></description> <errorDescription></errorDescription><usages> <totalusage> <voiceminutes></voiceminutes> <smsmessages></smsmessages> <datamb></datamb> </totalusage> <usagesdetails> <details> <resource></resource> <otherpartynumber></otherpartynumber> <effectivedate></effectivedate> <redirectingparty></redirectingparty> <unit></unit> <unitun></unitun> <calltype></calltype> <usagetype></usagetype> <dialleddigit></dialleddigit> </details> </usagesdetails> </usages> </GetUsagesDetails> </VcareOssApi>
All the status codes are listed under the status code sections. Please click here to go to the status code.