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
  • Schemas
    • Schemas
      • bet
      • betDelayed
      • delayedBets
      • delayedBets
      • betHistoryResponse
      • betPlaced
      • placedBets
      • placedBets
      • betSlipRequest
      • betSlipResponse
      • betslipbet
      • betslipleg
      • betslippart
      • cashInResponse
      • complexBetRequestBody
      • error
      • errors
      • freeBet
      • freeBetDetail
      • historyBets
      • leg
      • part
      • placedBet
      • placedBetLeg
      • placedBetPart
      • priceFormatted
      • singleBetRequestBody
      • solution
  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

Path Params

Query Params

Header Params

Responses

🟢200Success
application/json
Body

🟠400Errors
🟠409Errors
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
}
Modified at 2023-08-16 06:51:28
Previous
Retrieves the customer’s bet history.
Next
bet
Built with