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 multiple or a complex bet.

POST
/bet/complex
Places a multiple or a complex 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/complex' \
--header 'apiKey;' \
--header 'apiSecret;' \
--header 'apiTicket;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "bets": [
        {
            "delayedBetId": "string",
            "freeBetId": "string",
            "legs": [
                {
                    "parts": [
                        {
                            "includeInMultiple": true,
                            "priceDen": 0,
                            "priceNum": 0,
                            "priceType": 0,
                            "selectionId": 0
                        }
                    ],
                    "sort": "string",
                    "type": "string"
                }
            ],
            "number": 0,
            "stake": 0,
            "typeCode": "string"
        }
    ]
}'
Response Response Example
200 - response
{
 "placedBets" : [
 {
 "id" : 51097,
 "number": 1,
 "receipt" : "O/0013333/0000109/F", 
 "numLines" : 1, 
 "totalStake" : 2.50, 
 "placedDateTime" : "2015-12-12T00:11:00"
 }, 
 {
 "id" : 51098, 
 "number": 2,
 "receipt" : "O/0013333/0000109/F", 
 "numLines" : 1, 
 "totalStake" : 2.50, 
 "placedDateTime" : "2015-12-12T00:11:00"
 }
 ]
}
Modified at 2023-08-16 06:51:28
Next
Places a single bet
Built with