Free Bets
This section describes how to use the Free Bets feature. The endpoint allows customer platform users to access and redeem free bets granted by the Hypetech system. These free bets can be used as promotional credits to encourage user engagement and participation without risking their actual balance.
To enable this feature, ensure that the free bet configurations are correctly set up. For additional support, contact the Hypetech team through the email provided in the documentation header.
Redeem Free Bet POST
This endpoint is used to redeem a free bet for a user. Once redeemed, the free bet amount is credited to the user's account, and it can be used for betting in the specified games.
Authorizations: accessToken
HTTP: accessToken
Token generated through the Hypetech administrative panel to authenticate requests for free bets.Bearer
Request Body schema: application/json
Request Fields
|
Production Server Example Payload Content type: application/json { "game_slug": "aviator", "user_id": "99e27bf0-35da-46e2-a82d-07c492d1ed25", "quantity": "5", "value": 10.0, "currency": "USD", "expires_at": "2024-12-31T23:59:59Z", "bonus_code": "FREEBET2024" } |
201 - Success "Successfully created a new free bet.
RESPONSE SCHEMA: application/json
Field | Type | Description |
---|---|---|
free_bet |
string | Details of the newly created free bet. |
{
"free_bet": "New free bet created successfully."
}
401 Not authorized
RESPONSE SCHEMA: application/json
Field | Type | Description |
---|---|---|
title |
string | Error title. |
statusCode |
integer | HTTP code for returned status. |
{
"title": "Unauthorized",
"statusCode": 401,
}
404 Not found.
RESPONSE SCHEMA: application/json
Field | Type | Description |
---|---|---|
title |
string | Error title. |
statusCode |
integer | HTTP code for returned status. |
{
"title": "Not found",
"statusCode": 404,
}
500 Internal server error.
RESPONSE SCHEMA: application/json
Field | Type | Description |
---|---|---|
title |
string | Error title. |
statusCode |
integer | HTTP code for returned status. |
{
"title": "Invalid Operation.",
"statusCode": 500,
}