⬆️ POST /v2/integration/lottery [Bet]

The lottery v2 endpoints take in more parameters in the post body and they do first take a bet request and after a settlement request.

Sample Request for a Bet Update

    
{
"ticket_id": "2019020103308257480",
"lottery_id": "1",
"lottery_name": "Mega Millions",
"lottery_type": "Lottery",
"draw_id": "1",
"draw_date": "2015-03-02T8:27:58.721607+06:00",
"currency": "EUR",
"exchange_rate": 1,
"bonus_code": "Welcome",
"amount": 4.0,
"discount_amount": 2.0,
"lines": [{
"line_id": 1,
"is_free_bet": false,
"numbers": [12,31,32,11,35,54],
"special_numbers": [35],
"is_quick_pick": true,
"meta": {}
},
{
"line_id": 2,
"is_free_bet": true,
"numbers": [32,23,12,11,35,54],
"special_numbers": [32],
"is_quick_pick": false,
"meta": {}
}],
"origin": "sub.example.com",
"timestamp": "2015-03-02T8:27:58.721607+06:00",
"type": "Bet",
"user_id": "52530",
"device_type": "Mobile",
"meta": {
"key1": 10.00,
"key2": "some string",
"key3": false
}
}