Backend API

Receive an event when someone reaches a milestone

Format Example

{
  "type": "milestoneReached",
  "user": {
    "firstname": "Alex",
    "lastname": "Tur.",
    "email": "[email protected]",
    "referralCode": "abc456",
    "createdAt": "2021-04-01 13:00:01"
  },
  "milestone": {
    "referralsNeeded": 1,
    "milestoneReachedAt": "2021-04-01 13:00:01",
    "rewards": [
      {
        "type": "manual",
        "itemId": "yw3g8m-z",
        "itemName" : "Red Guitar",
      }
    ]
  }
}