getReport

get

/ccagent/v1/agentReports/{id}

Get Report. Returns the data for displaying chart with order count and order value information with the id set as 'chartOrders'.

Request

Supported Media Types
Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Following model is returned when operation succeeds.
Body ()
Root Schema : getReport_response
Type: object
Show Source
Nested Schema : orderCountData
Type: array
Data for orders created on each day between the start date and end date
Show Source
Nested Schema : orderValueData
Type: array
Data for value of orders created on each day between the start date and end date
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : items
Type: object
Show Source
Example Response (application/json)
{
    "orderValueData":[
        {
            "count":0,
            "creationDate":"2015-04-26T18:30:00.000Z"
        },
        {
            "count":0,
            "creationDate":"2015-04-27T18:30:00.000Z"
        },
        {
            "count":7701.98,
            "creationDate":"2015-04-28T18:30:00.000Z"
        },
        {
            "count":0,
            "creationDate":"2015-04-29T18:30:00.000Z"
        },
        {
            "count":0,
            "creationDate":"2015-04-30T18:30:00.000Z"
        },
        {
            "count":0,
            "creationDate":"2015-05-01T18:30:00.000Z"
        },
        {
            "count":0,
            "creationDate":"2015-05-02T18:30:00.000Z"
        }
    ],
    "orderCountData":[
        {
            "count":0,
            "creationDate":"2015-04-26T18:30:00.000Z"
        },
        {
            "count":0,
            "creationDate":"2015-04-27T18:30:00.000Z"
        },
        {
            "count":8,
            "creationDate":"2015-04-28T18:30:00.000Z"
        },
        {
            "count":0,
            "creationDate":"2015-04-29T18:30:00.000Z"
        },
        {
            "count":0,
            "creationDate":"2015-04-30T18:30:00.000Z"
        },
        {
            "count":0,
            "creationDate":"2015-05-01T18:30:00.000Z"
        },
        {
            "count":0,
            "creationDate":"2015-05-02T18:30:00.000Z"
        }
    ],
    "links":[
        {
            "rel":"self",
            "href":"http://localhost:9080/ccagent/v1/agentReports/chartOrders?startDate=2015-04-26T18%3A30%3A00.000Z&endDate=2015-05-03T18%3A30%3A00.000Z"
        }
    ]
}

Default Response

The error response. The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud: |Error Code|Description| |------------------|------------------| |50001|Generic Internal Error| |200125|Blank input parameters.|
Body ()
Root Schema : errorModel
Type: object
Show Source
Nested Schema : errors
Type: array
An optional list of errors if multiple errors were encountered
Show Source
Nested Schema : items
Type: object
Show Source
Back to Top