Skip to content

Bet Placing Webhook

Description:

The Rewards Webhook is triggered whenever a user wins a bet, providing detailed transaction information to ensure accuracy, transparency, and traceability

https://yourdomain.com/webhooks/hypetech/rewards

Request Body Schema: application/json

Domain and Token Configuration

Request Fields
Field Type Description
user_id string ID of the user placing the bet (same ID stored on the client platform).
currency string Currency used on transaction.
amount double Amount that will be received by the user.
provider string Reference to the platform on which the bet is being made.
provider_tx_id string Transaction ID generated by the user.
game string Name of the game that the bet is being made.
action string Indicates the action that generated the transaction.
round_id string ID of the round that the bet was made.
session_token string User session token generated by Hypetech API.
Example Payload

Content type: application/json

        {
        "user_id": "26",
        "currency": "USD",
        "amount": 200,
        "provider": "hypetech",
        "provider_tx_id": "559",
        "game": "aviador",
        "action": "win",
        "round_id": "255",
        "session_token": "b72afc947ed1809d9a993d378733cfea",
        }
            
Response Samples
200 Bet information

RESPONSE SCHEMA: application/json

Field Type Description
operator_tx_id string Transaction ID on client’s platform.
new_balance string New user balance.
old_balance string Balance before bet.
user_id string User ID.
currency string Currency used on transaction.
provider string Reference to the platform where the bet was made.
provider_tx_id string Transaction ID generated.
{
    "operator_tx_id": "559",
    "new_balance": "2050.00",
    "old_balance": "2300.00",
    "user_id": "13",
    "currency": "BRL",
    "provider": "hypetech",
    "provider_tx_id": "559"
}

404 Route not found

Description: The specified route could not be found.

Goal:

This webhook facilitates efficient and secure rewards management, ensuring transparency in all user transactions.