POST
/
v2
/
events
curl --request POST \
  --url https://api.topsort.com/v2/events \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "impressions": [
    {
      "id": "eb874c98-bf4d-40a9-ae6d-fcf4cecb535c",
      "occurredAt": "2019-01-01T12:59:59-05:00",
      "opaqueUserId": "71303ce0-de89-496d-8270-6434589615e8",
      "placement": {
        "path": "/categories/dairy",
        "position": 1,
        "page": 1,
        "pageSize": 15,
        "categoryId": "9BLIe"
      },
      "resolvedBidId": "WyJiX01mazE1IiwiMTJhNTU4MjgtOGVhZC00Mjk5LTgzMjctY2ViYjAwMmEwZmE4IiwibGlzdGluZ3MiLCJkZWZhdWx0IiwiIl0=",
      "deviceType": "mobile",
      "channel": "onsite"
    }
  ],
  "clicks": [
    {
      "id": "b39d39ed-ea0e-4059-9d15-4990b39c85a2",
      "occurredAt": "2019-01-01T13:01:42-05:00",
      "opaqueUserId": "71303ce0-de89-496d-8270-6434589615e8",
      "placement": {
        "path": "/categories/dairy",
        "position": 1,
        "page": 1,
        "pageSize": 15,
        "categoryId": "9BLIe"
      },
      "resolvedBidId": "WyJiX01mazE1IiwiMTJhNTU4MjgtOGVhZC00Mjk5LTgzMjctY2ViYjAwMmEwZmE4IiwibGlzdGluZ3MiLCJkZWZhdWx0IiwiIl0=",
      "deviceType": "mobile",
      "channel": "offsite"
    }
  ],
  "purchases": [
    {
      "id": "0e06c899-b2cd-4e0d-b0de-8aefb4b6d0a0",
      "items": [
        {
          "productId": "p_SA0238",
          "unitPrice": 12.95,
          "quantity": 2,
          "vendorId": "v_8fj2D"
        },
        {
          "productId": "p_oajf2D",
          "unitPrice": 1.49
        }
      ],
      "occurredAt": "2019-01-01T12:59:59-05:00",
      "opaqueUserId": "71303ce0-de89-496d-8270-6434589615e8",
      "deviceType": "desktop",
      "channel": "onsite"
    },
    {
      "id": "b7147656-504f-4ae7-b335-740829ff64c6",
      "items": [
        {
          "productId": "p_SA0279",
          "unitPrice": 119.95,
          "quantity": 5,
          "vendorId": "v_8fj2D"
        }
      ],
      "occurredAt": "2019-01-01T13:59:59-05:00",
      "opaqueUserId": "71303ce0-de89-496d-8270-6434589615e8",
      "channel": "instore"
    }
  ],
  "pageviews": [
    {
      "id": "8f648a8e-830c-4bb4-9d93-6ea80075ca82",
      "occurredAt": "2019-01-01T12:59:58-05:00",
      "opaqueUserId": "71303ce0-de89-496d-8270-6434589615e8",
      "page": {
        "type": "category",
        "pageId": "/categories/dairy",
        "value": "dairy"
      },
      "deviceType": "mobile",
      "channel": "onsite"
    }
  ]
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Response

204

All events were reported successfully.