Skip to main content

Daily Revenue

Endpoint path

/api/opendirect/stats/lines/daily

POST body

{ 
  "start": "yyyy-mm-dd", // start date of the report
  "end": "yyyy-mm-dd" // end date of report (excluding)
}

Response codes

HTTP response code Description
200 OK
400 Invalid Request (start and/or end are wrong)
401 Authentication Issue, not allowed
500 Internal Error

Response object

When no results are available, an empty lines array is returned

{
    "reportdate": "2022-02-15T00:00:00.000Z",
    "reporttimezone": "Europe/Brussels",
    "reportparameters": {
      "start": "2022-01-01",
      "end": "2022-02-01"
    },    
    "lines": [
        {
            "lineid": "CI-ADH-12345678",
            "stats": [
                {
                    "impressions": 220000,
                    "clicks": 2500,
                    "spend": "4004.00",
                    "date": "2022-01-01"
                },
                {
                    "impressions": 220000,
                    "clicks": 2500,
                    "spend": "4004.00",
                    "date": "2022-01-02"
                },
                {
                    "impressions": 220000,
                    "clicks": 2500,
                    "spend": "4004.00",
                    "date": "2022-01-03"
                }
            ]
        }
    ]
}