Spin the wheel

POST /v1/client/promotions/wheel/spin

Spin the promotion wheel to get a reward

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 reward-user-currency, reward-user-xp, or no-reward.

        • weight number(float) Required

          The weight of the reward; between 0 and 1

        • prize_data object Required

          One of:
  • 406 application/json

    VPN detected

    Hide response attribute Show response attribute object
    • data object
POST /v1/client/promotions/wheel/spin
curl \
 --request POST 'https://api.bitlabs.ai/v1/client/promotions/wheel/spin' \
 --header "X-Api-Token: $API_KEY" \
 --header "X-User-Id: $API_KEY"
Response examples (200)
{
  "data": {
    "prize": {
      "type": "reward-user-currency",
      "weight": 0.3,
      "prize_data": {
        "amount": "string"
      }
    }
  }
}
Response examples (406)
{
  "error": {
    "details": {
      "msg": "vpn detected",
      "http": "406 Not Acceptable"
    }
  }
}