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

Returns available free bets

GET
/freebets
Retrieves the current free bets available for a customer.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://sandbox.whapi.com/v2/bets/freebets' \
--header 'apiKey;' \
--header 'apiSecret;' \
--header 'apiTicket;'
Response Response Example
200 - Example 1
[
    {
        "awardDateTime": "string",
        "displayText": "string",
        "expiryDateTime": "string",
        "id": 0,
        "offerDesc": "string",
        "offerId": 0,
        "offerName": "string",
        "startDateTime": "string",
        "value": 0
    }
]

Request

Query Params
fields
array[string]
optional
Specify an absolute field list to return (Comma Separated List)
include
array[string]
optional
Specify fields in addition to the default to return (Comma Separated List)
exclude
array[string]
optional
Specify fields from the default to exclude (Comma Separated List)
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
array of:
awardDateTime
string 
optional
The time the free bet was awarded. For example 2014-11-013T23:59:10
displayText
string 
optional
The message explaining the offer displayed to the customer along with the free bet
expiryDateTime
string 
optional
The time the free bet expired. For example 2014-11-013T23:59:10
id
integer 
required
The identifier of the free bet
offerDesc
string 
optional
The description of the offer that enabled the customer to place a free bet
offerId
integer 
optional
The identifier of the offer
offerName
string 
required
The name of the offer that enabled the customer to place a free bet
startDateTime
string 
optional
The time the free bet offer started. For example 2014-11-013T23:59:10
value
number 
required
The value of the free bet
🟢204No Free Bets
Modified at 2023-08-16 06:51:28
Previous
/betslips
Next
Retrieves the customer’s bet history.
Built with