Allows a trusted application to cash in a bet (take a return on a bet) on behalf of the customer
PUT
/{betId}/cashin
Allows a trusted application to cash in a bet (take a return on a bet) on behalf of the customer. If the customers monitor bets they can cash in a bet at any point before the event ends.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request PUT 'https://sandbox.whapi.com/v2/bets//cashin?cashInValue=&cashinBetDelayId=' \
--header'apiKey;' \
--header'apiSecret;' \
--header'apiTicket;'
Response Response Example
200 - Example 1
{"success":true}
Request
Path Params
betId
string
required
The identifier of the bet
Query Params
cashInValue
number
required
The cash in value of the bet
cashinBetDelayId
string
required
The ID of this bet delay
Header Params
apiKey
string
required
A unique identifier of your application that is generated by the API portal.