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

Example of Creating a Batch Report Schedule Request for Most Frequently Called Countries Report (Individual Account)


This example shows you how to use the analytics Web service to create a batch report schedule request for Most Frequently Called Countries report for a particular account.

Operation

Use the following operation to create a batch report schedule request for Most Frequently Called Countries report:

POST /analytics/accounts/{accountId}/mostFrequentlyCalledCountries/batchrpt

Sample URL

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

http://myhost.example.com:7017/rs/api/v2/analytics/accounts/BS1|AC-B2B-123361-01/mostFrequentlyCalledCountries/batchrpts

Sample JSON Input

The following is an example of the JSON input:

{
"reportName": "MostFrequentlyCalledCountries",
"runType": "SINGLE",
"csv": "Y",
"xml": "Y",
"pdf": "Y",
"privateFlag": "Y",
"fromPeriod": "LATEST",
"toPeriod": "LATEST"
}

Sample JSON Response

The following is an example of the JSON response:

Batch report is created successfully!
Visit
<link>http://myhost.example.com:7017/rs/api/v2/batchrpts/17</link>

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