Bets API
  1. Bets
Bets API
  • Bets
    • Places a multiple or a complex bet.
      POST
    • Places a single bet
      POST
    • /betslips
      POST
    • Returns available free bets
      GET
    • Retrieves the customer’s bet history.
      GET
    • Allows a trusted application to cash in a bet (take a return on a bet) on behalf of the customer
      PUT
  1. Bets

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.
apiSecret
string 
required
Another unique identifier for your application.
apiTicket
string 
required
The ticket obtained from the sessions API

Responses

🟢200Success
application/json
Body
success
boolean 
required
Indicates whether the bet has been cashed-in.
🟠400Errors
🟠409Errors
Modified at 2023-08-16 06:51:28
Previous
Retrieves the customer’s bet history.
Built with