Spin the wheel for the welcome bonus reward if available

POST /v1/client/promotions/welcome-bonus/wheel-spin

Spin the user's wheel for a welcome bonus reward if available

Responses

  • 200 application/json

    OK

    Hide response attribute Show response attribute object
    • data object

      Response from spinning the promotion wheel

      Hide data attribute Show data attribute object
      • prize object Required

        A reward available in the spin wheel

        Hide prize attributes Show prize attributes object
        • type string Required

          The type of reward

          Values are FLAT_AMOUNT or PERCENTAGE.

        • weight number(float) Required

          The weight of the reward; between 0 and 1

        • prize_data number(float) Required
POST /v1/client/promotions/welcome-bonus/wheel-spin
curl \
 --request POST 'https://api.bitlabs.ai/v1/client/promotions/welcome-bonus/wheel-spin' \
 --header "X-Api-Token: $API_KEY" \
 --header "X-User-Id: $API_KEY"
Response examples (200)
{
  "data": {
    "prize": {
      "type": "PERCENTAGE",
      "weight": 0.3,
      "prize_data": 44
    }
  }
}