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

Example of Creating a Batch Report Schedule Request for an Account Billing Overview


This example shows you how to use the analytics Web service to schedule a batch report request for an Account Billing Overview report.

Operation

Use the following operation to get a batch report summary:

GET /analytics/accounts/{account_id}/summary/batchrpts

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/summary/batchrpts

Sample XML Input

The following is an example of XML input:

<batchRequestInfo>
<reportName>AccountBillingOverview</reportName>
<runType>SINGLE</runType>
<csv>Y</csv>
<xml>Y</xml>
<privateFlag>N</privateFlag>
</batchRequestInfo>

Sample JSON Input

The following is an example of JSON input:

{
   "reportName": "AccountBillingOverview",
   "runType": "SINGLE",
   "csv": "Y",
   "xml": "Y",
   "privateFlag": "N"
}

XML Response

The following is an example of the XML response:

Batch report is created successfully!

Visit <link>http://myhost.example.com:7017/rs/api/v2/batchrpts/4</link>

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