Wagers & Payouts
Wagers and payouts are essential components of the Sentinal system, facilitating the tracking and management of bets and their corresponding payouts.
Capture a wager
This endpoint is designed for recording a new wager in the system. It captures crucial details such as the wager amount, customer information, and the wager's unique reference. Additionally, it allows for the optional inclusion of geographical coordinates for enhanced transaction context.
Capturing of wagers placed
POST
/captureWager
Headers
x-api-key*
string
Request Body
amount*
number
The total amount wagered.
ref*
string
External reference unique to the wager.
customer*
object
An object containing the customer details. An email
is required, and you can also pass a name
and phoneNumber
ip*
string
The IP address from which the wager is placed.
coordinates
object
Geographical coordinates where the wager is placed, containing lat
(latitude) and lng
(longitude).
type*
string
The product line of the wager. eg, Sports/Casino
{
"success": true,
"message": "Wager captured successfully.",
"content": {
"wagerId": "unique_wager_identifier"
}
}
Capture a payout
Following a successful wager, this endpoint facilitates the recording of a payout. It links the payout to the corresponding wager through a unique reference, ensuring integrity and traceability of transactions.
Capturing of payouts made
POST
https://api.sentinal.network/capturePayout
Headers
x-api-key*
string
Request Body
amount*
number
The total amount paid out.
ref*
string
External reference unique to the wager.
customer*
object
An object containing the customer details. An email
is required, and you can also pass a name
and phoneNumber
wagerReference*
string
Reference to the associated wager.
{
"success": true,
"message": "Payout captured and linked to wager successfully.",
"content": {
"payoutId": "unique_payout_identifier"
}
}
Last updated