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

Places a single bet

POST
/bet/single
Places a single bet. When placing a single bet using live inplay bets, the system might generate a bet delay to allow a time margin to negate the effects of major changes (for example, goals) to the market. Note that the amount of bet delay will vary by category and event type. A delayedBetId will be recieved that can be used to resubmit the bet.

Request

Query Params

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

🟢202Delayed
🟠400Errors
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sandbox.whapi.com/v2/bets/bet/single' \
--header 'apiKey;' \
--header 'apiSecret;' \
--header 'apiTicket;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "delayedBetId": "string",
    "freeBetId": "string",
    "priceDen": 0,
    "priceNum": 0,
    "priceType": "string",
    "selectionId": "string",
    "stake": 0,
    "type": "string"
}'
Response Response Example
200 - response
{
 "placedBets" : [
 {
 "id" : 51097,
 "receipt" : "O/0013333/0000109/F", 
 "numLines" : 1, 
 "totalStake" : 2.50, 
 "placedDateTime" : "2015-12-12T00:11:00"
 }
 ]
}
Modified at 2023-08-16 06:51:28
Previous
Places a multiple or a complex bet.
Next
/betslips
Built with