resource URL - https://api.infact.no/{versionNo}/statistic versionNo - version of API (last version: v1) statistic- name of resource to access
| URL | HTTP Method | Short description |
|---|---|---|
| /statistic | GET | Returns campaign statistic |
GET resource URL/{CampaignId}
[
{
"CampaignId": "3",
"ClientId": "DemoKundeAPiId",
"UserId": "11111",
"S0": 0,
"S1": 0,
"S2": 0,
"M0": 1,
"M1": 1,
"M2": 0,
"SL": 0,
"ML": 0,
"US": 0,
"UM": 0
}
]
[
{
"CampaignId": "string",
"ClientId": "string",
"UserId": "string",
"S0": 0,
"S1": 0,
"S2": 0,
"M0": 0,
"M1": 0,
"M2": 0,
"SL": 0,
"ML": 0,
"US": 0,
"UM": 0
}
]
| Field | Required | Type | Description |
|---|---|---|---|
| CampaignId | yes | String | Unique identifier forCampaign |
| ClintId | yes | String | Unique identifier for chain. Example Cubus or Dressmann |
| UserId | yes | String | Identity of receiver (user) |
| S0 | yes | Int | SMS campaign (0 – no, 1 – yes) |
| S1 | no | Int | Is SMS received (0 – no, 1 - yes) |
| S2 | no | Int | Is SMS could not be delivered (0 – no, 1 - yes) |
| M0 | yes | Int | Email campaign (0- - no, 1 – yes) |
| M1 | yes | Int | Mail opened by receiver (0 – no, 1 - yes) |
| M2 | yes | Int | Mail could not be delivered (bounce) (0 – no, 1 - yes) |
| SL | yes | Int | Number of link clicks done by receiver in SMS |
| ML | yes | Int | Number of link clicks done by receiver of email |
| US | yes | Int | Is Unsubscribed from SMS (0 – no, 1 - yes) |
| UM | yes | Int | Is Unsubscribed from email (0 – no, 1 - yes) |