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

Example of Getting Service Agreement Details


This example shows you how to use the analytics Web service to get service agreement details that an authenticated user can access for a particular period.

Operation

Use the following operation to get service agreement details:

GET /analytics/accounts/{accountId}/serviceAgreements/{serviceNumber}/details

Sample URL

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

http://myhost.example.com:7017/rs/api/v2/analytics/accounts/BS1|7836380DEMO1/serviceAgreements/878-443-DEM1/details?reportPeriodStart=93&reportPeriodEnd=93

XML Response

The following is an example of the XML response:

<report>
<serviceList>
<count>12</count>
<totalPages>6</totalPages>
<firstPage>/analytics/BS1%7C7836380DEMO1/service_agreements/878-443-DEM1
/details?reportPeriodEnd=93&reportPeriodStart=93&page=1</firstPage>
<currentPage>/analytics/BS1%7C7836380DEMO1/service_agreements/878-443-DEM1/
details?reportPeriodEnd=93&reportPeriodStart=93&page=1</currentPage>
<nextPage>/analytics/BS1%7C7836380DEMO1/service_agreements/878-443-DEM1
/details?reportPeriodEnd=93&reportPeriodStart=93&page=2</nextPage>
<lastPage>/analytics/BS1%7C7836380DEMO1/service_agreements/878-443-DEM1
/details?reportPeriodEnd=93&reportPeriodStart=93&page=6</lastPage>
<header><Total>USD</Total></header>
<service>
<Call_date pattern="MM/dd/yyyy">08/15/2012</Call_date>
<Call_time>13 : 12</Call_time>
<service_number>878-443-DEM1</service_number>
<service_name>btwob ligan</service_name>
<Called_Number>650-359-8601</Called_Number>
<category>Business</category>
<memo_img/><memo/>
<dispute/>
<DISPUTE_NUM/>
<Dispute_detail_desc/>
<Usage_Type>Voice</Usage_Type>
<Call_Type>Roaming -Vodafone</Call_Type>
<DESTINATION_NAME>Foster City, TN USA</DESTINATION_NAME>
<Duration>32 Minutes</Duration>
<Total>3.00</Total>
<link>/analytics/BS1%7C7836380DEMO1/service_agreements/878-443-DEM1
/transaction_details?serviceDetailKey=263</link>
</service>
<service>
<Call_date pattern="MM/dd/yyyy">08/14/2012</Call_date>
<Call_time>21 : 11</Call_time>
<service_number>878-443-DEM1</service_number>
<service_name>BusinessUser</service_name>
<Called_Number/>
<category>Business</category>
<memo_img/><memo/>
<dispute/>
<DISPUTE_NUM/>
<Dispute_detail_desc/>
<Usage_Type>Data</Usage_Type>
<Call_Type>Data Transfers - Uploads</Call_Type>
<DESTINATION_NAME>Los Angeles, CA USA</DESTINATION_NAME>
<Duration>175 Kilobytes</Duration>
<Total>1.40</Total>
<link>/analytics/BS1%7C7836380DEMO1/service_agreements/878-443-DEM1
transaction_details?serviceDetailKey=257</link>
</service>
</serviceList>
</report>

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