Pickem Jackpot Callbacks
Place bet
This callback is triggered everytime player attempt to submit a bet slip.
https:/{your_server}/bets
Is called whenever a user tries to place a bet slip. To cancel the bet respond with a JSON object with an error property and HTTP status 402 Payment Required.
To fulfill the bet slip, deduct the appropriate amount of money from the user's wallet and respond with an OK.
This callback will be called with:
bets: [{
pool: {
client: String, // This will always be fanteam for now
uid: String, // unique id of the coupon
game: String, // This will always be pickem_jackpot
currency: String, // The base currency of the coupon
overdraw: Number, // Guaranted prize pool
amount: Number, // Minimal possible buy in (for sanity checks)
},
bet: {
uid: String, // Transaction id of the bet
amount: String, // The amount to deducte the user
rake: Number, // This will always be zero (Not relevant for this game)
currency: String, // The currency used for the bet
multiplier: Number, // Exchange rate for the prize pool
base_amount: Number, // The amount in the base currency of the pool
},
user: {
client: String, // Client name (customer)
uid: String, // Identifier of your user
name: String, // Username for your user
ip: String, // Ip address of the user placing the bet
},
}]
}
{
Refund bet
This will be called when a players bet for any reason needs to be rolled back (credited back to the user).
https:/{your_server}/bets/cancel
Is called when a bet slip has been canceled for any reason. Your endpoint should refund all specified bets in full (buy-in + rake) and respond with an OK.
This callback will be called with:
pools: [{
pool: {
client: String, // Should always be fanteam
uid: String, // Unique id of the coupon
game: String, // This will always be pickem_jackpot
currency: String, // The base currency of the coupon
cost: Number, // The minimum possible buy in (fot sanity check)
},
bets: [{
bet: {
uid: String, // Transaction id of the bet
amount: String, // The amount to deducte the user
base_amount: Number, // The amount in the base currency of the pool
rake: number, // This will always be zero (not relevant for this game)
currency: String, // The currency used for the bet
multiplier: Number, // Exchange rate for the prize pool
},
user: {
client: String, // Client name (customer)
uid: String, // Identifier of your user
name: String, // Username for your user
},
}],
}]
}
{
Settle bet
This will be triggered when all matches in a given coupon has been confirmed.
https:/{your_server}/winners Is called when a bet slip is settled, and prize distribution is requested.
This callback is triggered whether they won anything or not. If the endpoint responds with an error, the bet will not be marked as settled and might be tried again later.
Your endpoint should distribute the given winnings to the listed bets and respond with an OK.
pool: {
client: String, // Should always be fanteam
uid: String, // Unique id of the coupon
game: String, // This will always be pickem_jackpot
currency: String, // The base currency of the coupon
guaranteed: Number, // Guaranted prize pool
cost: Number, // The minimum possible buy in (for sanity check)
},
bet: {
uid: String, // Transaction id of the bet
amount: String, // The amount to deducte the user
rake: Number, // This will always be zero (not relevant for this game)
currency: String, // The currency used for the bet
multiplier: Number, // Exchange rate for the prize pool
payout: String, // The amount the player has won (The amount to credit the player)
pool: Number, // Total payout from prize pool in players currency
jackpot: Number, // Total winning of the in the players currency
base_payout: Number, // Total payout in the base currency (pool currency)
},
user: {
client: String, // Client name (customer)
uid: String, // Identifier of your user
name: String, // Username for your user
},
})),
}]
}
{