# Introduction

## OfferEvent model

### Example

```json
{
    "offer_id": "14",
    "created_at": "2019-08-27T10:20:11.810Z",
    "context": {
        "collections_ids": [1, 2],
        "tags": ["t1"],
        "stores": ["a"],
        "search_string": "foo",
        "utm": "campaign-2018-22-01"
    }
}
```

Key | Type | Required? | Description
--------- | --------- | -------- | ---------
offer_id | integer | yes |  
created_at | Date| yes | Date of the event occurrence 
context | Object| no | Context of the event occurrence.   
context.collections_ids | ID[] | no |  
context.tags | string[] | no |  
context.stores | string[] | no |
context.search_string | string | no |
context.utm | string | no |

Context describes in what circumstances the event has occurred. 
For example, member clicked on a coupon that was displayed inside collection, the context should include this collection_id.