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

/betslips

POST
/betslips
Organises the betslip when one or more selections are made. It returns a bet slip structure organised by betting opportunities.

Request

Query Params

Header Params

Body Params application/json

Examples

Responses

🟢200Success
application/json
Body

Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://sandbox.whapi.com/v2/bets/betslips' \
--header 'apiKey;' \
--header 'apiSecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "legs": [
        {
            "parts": [
                {
                    "includeInMultiple": true,
                    "priceDen": 0,
                    "priceNum": 0,
                    "priceType": 0,
                    "selectionId": 0
                }
            ],
            "sort": "string",
            "type": "string"
        }
    ]
}'
Response Response Example
{
 "betslip" : [
 {
 number: 1, 
 numLines: 1
 ...
 }
 ]
}
Modified at 2023-08-16 06:51:28
Previous
Places a single bet
Next
Returns available free bets
Built with