Web Services Reference for Oracle Billing Insight > Examples of Web Services > Examples of the Analytics Web Services >

Example of Getting a Summary of Unbilled Usage for an Account


This example shows you how to use the analytics Web service to get a summary of the unbilled usage for an account.

Operation

Use the following operation to get a summary of unbilled usage for an account:

GET /analytics/accounts/{accountId}/unbilledSummary

Sample URL

The following is a sample URL for this Web service example:

http://myhost.example.com:7017/rs/api/v2/analytics/accounts/BS1%7CAC-B2B-123361-01/unbilledSummary

XML Response

The following is an example of the XML response:

<report>
<usageTypeList>
<count>1</count>
<header></header>
<usageType>
<LastStmtDate pattern="MM/dd/yyyy">10/21/2013</LastStmtDate>
<DaysUsed>1</DaysUsed>
<DaysInCycle>31</DaysInCycle>
</usageType>
</usageTypeList>
<usageTypeList>
<count>3</count>
<header></header>
<usageType>
<LastStmtDate pattern="MM/dd/yyyy">10/21/2013</LastStmtDate>
<UsageCode>VOICE</UsageCode>
<UsageName>Voice</UsageName>
<UnitName>Minutes</UnitName>
<Usage>880.00</Usage>
<Allowance>2,500.00</Allowance>
<DaysUsed>1</DaysUsed>
<DaysInCycle>31</DaysInCycle>
<alertThreshold>500.0</alertThreshold>
</usageType>
<usageType>
<LastStmtDate pattern="MM/dd/yyyy">10/21/2013</LastStmtDate>
<UsageCode>MESSAGE</UsageCode>
<UsageName>Message</UsageName>
<UnitName>Messages</UnitName>
<Usage>27.00</Usage>
<Allowance>2.00</Allowance>
<DaysUsed>1</DaysUsed>
<DaysInCycle>31</DaysInCycle>
<alertThreshold>0.4</alertThreshold>
</usageType>
<usageType>
<LastStmtDate pattern="MM/dd/yyyy">10/21/2013</LastStmtDate>
<UsageCode>DATA</UsageCode>
<UsageName>Data</UsageName>
<UnitName>Kilobytes</UnitName>
<Usage>225.00</Usage>
<Allowance>0.00</Allowance>
<DaysUsed>1</DaysUsed>
<DaysInCycle>31</DaysInCycle>
<alertThreshold>0.0</alertThreshold>
</usageType>
</usageTypeList>
</report>

Web Services Reference for Oracle Billing Insight Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.