post https://{domain}.apps.scrimmage.co/api/integrations/rewards
Example of a rewardable event
Only userId
and dataType
are required. All other fields are optional.
{
"userId": "15",
"dataType": "betExecuted",
"eventId": "test",
"body": {
"betType": "single",
"odds": 5.2,
"description": "Just a cool bet",
"wagerAmount": 1500,
"netProfit": 1500,
"outcome": "win",
"betDate": 1678933476000,
"bets": [
{
"type": "spread",
"odds": 5.2,
"teamBetOn": "Bulls",
"teamBetAgainst": "Huricane",
"league": "NBA",
"sport": "Basketball"
}
]
}
}