Reports API

Get Unique Impressions

GET /v1.0/merchants/:merchant_id/reports/impressions?from=:from&to=:to

Parameters

Name Description
from Start time for report (Unix timestamp)
to End time for report (Unix timestamp)

Request

Headers

Accept: application/json
Content-Type: application/json
X-Auth-Token: c3c16c2dac7e354b97883b1781b7133e382d0f8a371bd222812c5c636be72b9b

Route

GET /v1.0/merchants/111/reports/impressions?from=1455197825&to=1455629825

Query Parameters

from: 1455197825
to: 1455629825

Response

Headers

Content-Type: application/json; charset=utf-8
Date: Tue, 16 Feb 2016 13:37:05 GMT
Content-Length: 223

Status

200 OK

Body

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
 
{
  "report": {
    "impressions": {
      "data_items": [
        [
          [
            "13-Feb-16",
            "1"
          ],
          [
            "15-Feb-16",
            "1"
          ]
        ],
        [
          [
            "15-Feb-16",
            "2"
          ]
        ]
      ],
      "series": [
        {
          "name": "Buy 3 candy get 40% off next gloves",
          "value": "2"
        },
        {
          "name": "Buy candy get cigarette free",
          "value": "2"
        }
      ]
    }
  }
}