# Auth


## Forgot Password


Use this end point to request verification code when the user forgets the password

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/forgot-password" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"email":"reiciendis"}'

```


> Example response (200):

```json
{
    "message": "You will receive a verification code on your registered email. This code will be valid for 24 hours."
}
```
> Example response (404):

```json
{
    "message": "User not found!"
}
```
> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "email": [
            "The email field is required."
        ]
    }
}
```
<div id="execution-results-POSTforgot-password" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTforgot-password"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTforgot-password"></code></pre>
</div>
<div id="execution-error-POSTforgot-password" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTforgot-password"></code></pre>
</div>
<form id="form-POSTforgot-password" data-method="POST" data-path="forgot-password" data-authed="0" data-hasfiles="0" data-headers='{"Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTforgot-password', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTforgot-password" onclick="tryItOut('POSTforgot-password');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTforgot-password" onclick="cancelTryOut('POSTforgot-password');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTforgot-password" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>forgot-password</code></b>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>email</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="email" data-endpoint="POSTforgot-password" data-component="body" required  hidden>
<br>
Email associated with account. Ex: john_does@yopmail.com
</p>

</form>


## Reset Password


Use this end point to reset the password

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/reset-password" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"user_id":19,"otp":"non","password":"id","password_confirmation":"ea"}'

```


> Example response (200):

```json
{
    "message": "Your password has been changed!"
}
```
> Example response (404):

```json
{
    "message": "User not found!"
}
```
> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "user_id": [
            "The user id field is required."
        ],
        "otp": [
            "The otp field is required."
        ],
        "password": [
            "The password field is required."
        ]
    }
}
```
<div id="execution-results-POSTreset-password" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTreset-password"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTreset-password"></code></pre>
</div>
<div id="execution-error-POSTreset-password" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTreset-password"></code></pre>
</div>
<form id="form-POSTreset-password" data-method="POST" data-path="reset-password" data-authed="0" data-hasfiles="0" data-headers='{"Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTreset-password', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTreset-password" onclick="tryItOut('POSTreset-password');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTreset-password" onclick="cancelTryOut('POSTreset-password');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTreset-password" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>reset-password</code></b>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>user_id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="user_id" data-endpoint="POSTreset-password" data-component="body" required  hidden>
<br>
User Id. Ex: 5
</p>
<p>
<b><code>otp</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="otp" data-endpoint="POSTreset-password" data-component="body" required  hidden>
<br>
Verification code. Ex: omvOZUXq
</p>
<p>
<b><code>password</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="password" name="password" data-endpoint="POSTreset-password" data-component="body" required  hidden>
<br>
Password of the user. Min:8, Max: 20 & must be of 8-20 length and include at least one of each: Alphabet, Number. Ex: Ems0162020
</p>
<p>
<b><code>password_confirmation</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="password" name="password_confirmation" data-endpoint="POSTreset-password" data-component="body" required  hidden>
<br>
Password confirmation. Ex: Ems016@2020
</p>

</form>


## Verify Code


Use this end point to verify the code (OTP)

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/verify-code" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"otp":"recusandae","email":"accusamus","type":"quisquam"}'

```


> Example response (200):

```json
{
    "message": "Verification successfull!",
    "data": {
        "otp": "2633",
        "type": "10",
        "user": {
            "id": 2,
            "email": "taha@elegantmicroweb.com",
            "username": "tahasethwala"
        }
    }
}
```
> Example response (404):

```json
{
    "message": "Email is not registered"
}
```
> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "otp ": [
            "The otp field is required."
        ],
        "type": [
            "The type field is required."
        ]
    }
}
```
<div id="execution-results-POSTverify-code" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTverify-code"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTverify-code"></code></pre>
</div>
<div id="execution-error-POSTverify-code" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTverify-code"></code></pre>
</div>
<form id="form-POSTverify-code" data-method="POST" data-path="verify-code" data-authed="0" data-hasfiles="0" data-headers='{"Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTverify-code', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTverify-code" onclick="tryItOut('POSTverify-code');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTverify-code" onclick="cancelTryOut('POSTverify-code');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTverify-code" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>verify-code</code></b>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>otp</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="otp" data-endpoint="POSTverify-code" data-component="body" required  hidden>
<br>
Verification code. Ex: 2633
</p>
<p>
<b><code>email</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="email" data-endpoint="POSTverify-code" data-component="body" required  hidden>
<br>
Email associated with account. Ex: john_does@yopmail.com
</p>
<p>
<b><code>type</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="type" data-endpoint="POSTverify-code" data-component="body" required  hidden>
<br>
Type of verification. Possible Value: 10 (Forgot Password) Ex: 10
</p>

</form>


## Reactivate Account Send OTP


Use this end point to send otp to reactivate deleted account

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/reactivate-account-send-otp" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"phone":"voluptatem","otp_signature":"FtSl93sVi2G"}'

```


> Example response (201):

```json
{
    "message": "OTP Sent Successfully"
}
```
> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "phone ": [
            "The phone field is required."
        ]
    }
}
```
<div id="execution-results-POSTreactivate-account-send-otp" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTreactivate-account-send-otp"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTreactivate-account-send-otp"></code></pre>
</div>
<div id="execution-error-POSTreactivate-account-send-otp" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTreactivate-account-send-otp"></code></pre>
</div>
<form id="form-POSTreactivate-account-send-otp" data-method="POST" data-path="reactivate-account-send-otp" data-authed="0" data-hasfiles="0" data-headers='{"Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTreactivate-account-send-otp', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTreactivate-account-send-otp" onclick="tryItOut('POSTreactivate-account-send-otp');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTreactivate-account-send-otp" onclick="cancelTryOut('POSTreactivate-account-send-otp');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTreactivate-account-send-otp" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>reactivate-account-send-otp</code></b>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>phone</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="phone" data-endpoint="POSTreactivate-account-send-otp" data-component="body" required  hidden>
<br>
Phone number (10 digits only). Ex: 1234567890
</p>
<p>
<b><code>otp_signature</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="otp_signature" data-endpoint="POSTreactivate-account-send-otp" data-component="body"  hidden>
<br>
Otp Signature.
</p>

</form>


## Send Verification Mail

<small class="badge badge-darkred">requires authentication</small>

Use this end point to send a mail to user to verify email.

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/user/send-verification-mail" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"email":"aut"}'

```


> Example response (200):

```json
{
    "message": "Verification mail sent successfully!"
}
```
> Example response (422):

```json

{
      "message": "Please enter required information",
      "errors": {
          "email": [
              "The email field is required."
          ],
      }
  }
```
<div id="execution-results-GETuser-send-verification-mail" hidden>
    <blockquote>Received response<span id="execution-response-status-GETuser-send-verification-mail"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETuser-send-verification-mail"></code></pre>
</div>
<div id="execution-error-GETuser-send-verification-mail" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETuser-send-verification-mail"></code></pre>
</div>
<form id="form-GETuser-send-verification-mail" data-method="GET" data-path="user/send-verification-mail" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETuser-send-verification-mail', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETuser-send-verification-mail" onclick="tryItOut('GETuser-send-verification-mail');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETuser-send-verification-mail" onclick="cancelTryOut('GETuser-send-verification-mail');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETuser-send-verification-mail" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>user/send-verification-mail</code></b>
</p>
<p>
<label id="auth-GETuser-send-verification-mail" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETuser-send-verification-mail" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>email</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="email" data-endpoint="GETuser-send-verification-mail" data-component="body" required  hidden>
<br>
Email. Ex: admin@test.com
</p>

</form>


## Get Current Versions Of App

<small class="badge badge-darkred">requires authentication</small>

Use this end point to get current versions of app

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/check-app-update" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json
{
    "message": "Current Versions",
    "data": {
        "android_version": "90",
        "android_force_update": "1",
        "ios_version": "19.0",
        "ios_force_update": "1"
    }
}
```
<div id="execution-results-GETcheck-app-update" hidden>
    <blockquote>Received response<span id="execution-response-status-GETcheck-app-update"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETcheck-app-update"></code></pre>
</div>
<div id="execution-error-GETcheck-app-update" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETcheck-app-update"></code></pre>
</div>
<form id="form-GETcheck-app-update" data-method="GET" data-path="check-app-update" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETcheck-app-update', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETcheck-app-update" onclick="tryItOut('GETcheck-app-update');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETcheck-app-update" onclick="cancelTryOut('GETcheck-app-update');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETcheck-app-update" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>check-app-update</code></b>
</p>
<p>
<label id="auth-GETcheck-app-update" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETcheck-app-update" data-component="header"></label>
</p>
</form>


## Check Maintenance Mode for App

<small class="badge badge-darkred">requires authentication</small>

Use this end point to check maintenance mode for app

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/check-maintenance-mode" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json

*       "maintenance_mode": "disabled"
  }
```
<div id="execution-results-GETcheck-maintenance-mode" hidden>
    <blockquote>Received response<span id="execution-response-status-GETcheck-maintenance-mode"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETcheck-maintenance-mode"></code></pre>
</div>
<div id="execution-error-GETcheck-maintenance-mode" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETcheck-maintenance-mode"></code></pre>
</div>
<form id="form-GETcheck-maintenance-mode" data-method="GET" data-path="check-maintenance-mode" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETcheck-maintenance-mode', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETcheck-maintenance-mode" onclick="tryItOut('GETcheck-maintenance-mode');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETcheck-maintenance-mode" onclick="cancelTryOut('GETcheck-maintenance-mode');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETcheck-maintenance-mode" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>check-maintenance-mode</code></b>
</p>
<p>
<label id="auth-GETcheck-maintenance-mode" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETcheck-maintenance-mode" data-component="header"></label>
</p>
</form>


## Update FCM token

<small class="badge badge-darkred">requires authentication</small>

Use this end point to update FCM token

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/update-fcm-token" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"fcm_token":"aliquam"}'

```


> Example response (200):

```json
{
    "message": "FCM token updated successfully!"
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "fcm_token": [
            "The fcm token is required"
        ]
    }
}
```
<div id="execution-results-POSTupdate-fcm-token" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTupdate-fcm-token"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTupdate-fcm-token"></code></pre>
</div>
<div id="execution-error-POSTupdate-fcm-token" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTupdate-fcm-token"></code></pre>
</div>
<form id="form-POSTupdate-fcm-token" data-method="POST" data-path="update-fcm-token" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTupdate-fcm-token', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTupdate-fcm-token" onclick="tryItOut('POSTupdate-fcm-token');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTupdate-fcm-token" onclick="cancelTryOut('POSTupdate-fcm-token');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTupdate-fcm-token" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>update-fcm-token</code></b>
</p>
<p>
<label id="auth-POSTupdate-fcm-token" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTupdate-fcm-token" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>fcm_token</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="fcm_token" data-endpoint="POSTupdate-fcm-token" data-component="body"  hidden>
<br>
FCM token. Ex: adlajda
</p>

</form>


## Balance

<small class="badge badge-darkred">requires authentication</small>

Use this end point to get balance

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/balance" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json
{
    "message": "My Balance!",
    "data": {
        "available_bucks": "0",
        "available_credits": "950",
        "available_cash": "0",
        "reward_earned_credits": "0",
        "challenges_won": [],
        "flag_feature_bettorlive": 1,
        "kyc_status": {
            "id": 1,
            "name": "Not performed",
            "created_at": "2022-05-16T06:02:06.000000Z",
            "updated_at": "2022-05-16T06:02:06.000000Z"
        },
        "geo_location_status": {
            "id": 4,
            "name": "DENIED",
            "created_at": "2022-05-17T07:31:13.000000Z",
            "updated_at": "2022-05-17T07:31:13.000000Z"
        },
        "is_dfs_geolocation_step_passed": 0,
        "cash_deposit_min": "10",
        "cash_deposit_max": "5000",
        "cash_transaction": null,
        "xpoint_client_key": "bettorfantasy15423dev",
        "games": [
            {
                "id": 4,
                "name": "Ice Hockey (NHL)",
                "image": "http:\/\/127.0.0.1:8000\/images\/icon-icehockey.png",
                "status": "Active",
                "sequence": 0,
                "created_at": null,
                "updated_at": null
            },
            {
                "id": 3,
                "name": "Baseball (MLB)",
                "image": "http:\/\/127.0.0.1:8000\/images\/icon-baseball.png",
                "status": "Active",
                "sequence": 1,
                "created_at": null,
                "updated_at": "2022-07-15T06:53:42.000000Z"
            },
            {
                "id": 2,
                "name": "Basketball (NBA)",
                "image": "http:\/\/127.0.0.1:8000\/images\/icon-basketball.png",
                "status": "Paused",
                "sequence": 2,
                "created_at": null,
                "updated_at": "2022-07-15T06:53:59.000000Z"
            }
        ],
        "kyc_dob": null,
        "websocket_host": null,
        "websocket_port": "6001",
        "websocket_key": "34864a25-3910-408d-8527-7f8aea0f9ccf",
        "privacy_show_recent_picks": 1,
        "navigations": [
            {
                "id": 1,
                "name": "Fantasy",
                "status": "Active",
                "sequence": 1
            },
            {
                "id": 2,
                "name": "Props",
                "status": "Active",
                "sequence": 2
            },
            {
                "id": 3,
                "name": "Survival",
                "status": "Active",
                "sequence": 3
            },
            {
                "id": 4,
                "name": "Pools",
                "status": "Active",
                "sequence": 4
            }
        ]
    }
}
```
<div id="execution-results-GETbalance" hidden>
    <blockquote>Received response<span id="execution-response-status-GETbalance"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETbalance"></code></pre>
</div>
<div id="execution-error-GETbalance" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETbalance"></code></pre>
</div>
<form id="form-GETbalance" data-method="GET" data-path="balance" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETbalance', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETbalance" onclick="tryItOut('GETbalance');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETbalance" onclick="cancelTryOut('GETbalance');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETbalance" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>balance</code></b>
</p>
<p>
<label id="auth-GETbalance" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETbalance" data-component="header"></label>
</p>
</form>


## Balance V2

<small class="badge badge-darkred">requires authentication</small>

Use this end point to get balance

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/balance/v2" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json

{
      {
          "message": "My Balance!",
          "data": {
              "username": "uemswati150920251",
              "available_bucks": "0",
              "available_credits": "6960",
              "available_cash": "0",
              "available_cash_excluding_site_credits": "0",
              "available_site_credits": "0",
              "reward_earned_credits": "0",
              "kyc_status": {
                  "id": 1,
                  "name": "Not performed"
              },
              "kyc_upload_url": null,
              "kyc_url_days_passed": null,
              "kyc_url_expiry": 14,
              "geo_location_status": {
                  "id": 3,
                  "name": "ALLOWED"
              },
              "cash_deposit_min": "10",
              "cash_deposit_max": "5000",
              "xpoint_client_key": "bettorfantasy15423dev",
              "games": [
                  {
                      "id": 1,
                      "name": "NFL",
                      "image": "http://127.0.0.1:8000/images/icon-football-v2.png",
                      "status": "Active",
                      "sequence": 0,
                      "created_at": null,
                      "updated_at": "2025-02-27T12:13:56.000000Z",
                      "featured_contest_image": "nfl_feature_contest.png",
                      "featured_contest_color1": "0xFF003EFF",
                      "featured_contest_color2": "0xFF001864",
                      "featured_contest_btn_color": "0xFF012084",
                      "featured_contest_color3": "0xFF0F2BB0",
                      "big_wins_color1": "0xFF1A44C8",
                      "big_wins_color2": "0xFF1A3482",
                      "big_wins_image": "nfl_big_wins.png",
                      "big_wins_arrow": "nfl_arrows.png",
                      "big_wins_text_color": "0xFFD1D8EE",
                      "cron_status": 1
                  }
              ],
              "kyc_dob": null,
              "privacy_show_recent_picks": 1,
              "is_appsflyer_withdrawal_done_recently": 0,
              "is_appsflyer_deposit": 0,
              "is_appsflyer_first_deposit": 0,
              "is_appsflyer_second_deposit": 0,
              "is_appsflyer_first_time_cash_entry": 0,
              "experience_level": "Beginner",
              "is_self_exclusion": 0,
              "trivia_reset_seconds": "20h 29m",
              "is_trivia_done": 0,
              "is_scoring_notice_dsa": 1,
              "reward_value": 20,
              "deposit_checkout_url": "http://127.0.0.1:8000/v2/payments/deposit/checkout?user_id=854&token=uK0ANI4bEXnf5tgD",
              "payment_methods_count": 3,
              "payment_methods": [
                  {
                      "id": 9,
                      "userPaymentOptionId": "135394628",
                      "payment_method": "apmgw_eCheckSelect",
                      "cardType": null,
                      "method_image": "http://127.0.0.1:8000/images/payments/ibt-white.png",
                      "method_name": "Online Banking",
                      "method_masked_number": "Online Banking ****6196",
                      "method_masked_number_new": "Online Banking ****6196",
                      "is_default": 0,
                      "expMonth": "--",
                      "expYear": "--",
                      "lastFourDigits": "--",
                      "firstName": "Taha",
                      "lastName": "EM",
                      "address": "Address 1",
                      "phone": "+11234567890",
                      "zip": "12344",
                      "city": "Abad",
                      "country": "US",
                      "state": "KY",
                      "email": "accountholder0@example.com",
                      "created_at": "2024-12-12T11:18:39.000000Z"
                  }
              ],
              "deposit_validations": {
                  "minimum_deposit_limit": "25",
                  "daily_deposit_limit": "250",
                  "week_deposit_limit": "500",
                  "month_deposit_limit": "1000",
                  "today_deposit": "0",
                  "week_deposit": "0",
                  "month_deposit": "0"
              },
              "referral_code_appsflyer": "https://fantasyspin1.onelink.me/kjUP/uemswati150920251",
              "is_email_verified_new": 1,
              "kyc_attempts": null,
              "fcm_token": null,
              "enjoying_fs_status": "not_eligible",
              "maintenance_mode": "disabled",
              "is_gameplay_sound_enabled": 1,
              "next_sound_key": "fantasyspin_classic",
              "user_background_sounds": [
                  {
                      "sound_key": "fantasyspin_classic",
                      "is_enabled": 1
                  }
              ],
              "current_streak": 0,
              "version_info": {
                  "android_version": "73.0",
                  "android_force_update": "1",
                  "android_release_notes": [
                      {
                          "title": "🚀 Featured Contests",
                          "description": "View and easily enter the top contests that are available on FantasySpin"
                      },
                      {
                          "title": "🚀 Referral Tier Bonuses",
                          "description": "Refer friends, earn more with tiered rewards--up to $700 for 20 referrals!"
                      }
                  ],
                  "ios_version": "19.0",
                  "ios_force_update": "1",
                  "ios_release_notes": [
                      {
                          "title": "🚀 Featured Contests",
                          "description": "View and easily enter the top contests that are available on FantasySpin"
                      },
                      {
                          "title": "🚀 Referral Tier Bonuses",
                          "description": "Refer friends, earn more with tiered rewards--up to $700 for 20 referrals!"
                      }
                  ]
              }
          }
      }
  }
```
<div id="execution-results-GETbalance-v2" hidden>
    <blockquote>Received response<span id="execution-response-status-GETbalance-v2"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETbalance-v2"></code></pre>
</div>
<div id="execution-error-GETbalance-v2" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETbalance-v2"></code></pre>
</div>
<form id="form-GETbalance-v2" data-method="GET" data-path="balance/v2" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETbalance-v2', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETbalance-v2" onclick="tryItOut('GETbalance-v2');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETbalance-v2" onclick="cancelTryOut('GETbalance-v2');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETbalance-v2" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>balance/v2</code></b>
</p>
<p>
<label id="auth-GETbalance-v2" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETbalance-v2" data-component="header"></label>
</p>
</form>


## Save Referral Link

<small class="badge badge-darkred">requires authentication</small>

Called by the mobile app after generating a referral link via the AppsFlyer SDK.
Saves the link to the user record and logs the call.

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/save-referral-link" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"referral_link":"https:\/\/fantasyspin1.onelink.me\/kjUP\/abc123"}'

```


> Example response (200):

```json
{
    "message": "Referral link saved successfully!"
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "referral_link": [
            "The referral link field is required."
        ]
    }
}
```
<div id="execution-results-POSTsave-referral-link" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTsave-referral-link"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTsave-referral-link"></code></pre>
</div>
<div id="execution-error-POSTsave-referral-link" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTsave-referral-link"></code></pre>
</div>
<form id="form-POSTsave-referral-link" data-method="POST" data-path="save-referral-link" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTsave-referral-link', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTsave-referral-link" onclick="tryItOut('POSTsave-referral-link');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTsave-referral-link" onclick="cancelTryOut('POSTsave-referral-link');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTsave-referral-link" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>save-referral-link</code></b>
</p>
<p>
<label id="auth-POSTsave-referral-link" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTsave-referral-link" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>referral_link</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="referral_link" data-endpoint="POSTsave-referral-link" data-component="body" required  hidden>
<br>
The AppsFlyer OneLink URL generated by the SDK.
</p>

</form>


## Device Info Logs

<small class="badge badge-darkred">requires authentication</small>

Use this end point to capture device info logs.

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/device-info-logs" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"platform":"officia","os":"nostrum","version":"dolores","brand":"corrupti","model":"impedit"}'

```


> Example response (200):

```json
{
    "message": "Log saved successfully!"
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "platform": [
            "The platform field is required."
        ],
        "os": [
            "The os field is required."
        ],
        "version": [
            "The version field is required."
        ]
    }
}
```
<div id="execution-results-POSTdevice-info-logs" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTdevice-info-logs"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTdevice-info-logs"></code></pre>
</div>
<div id="execution-error-POSTdevice-info-logs" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTdevice-info-logs"></code></pre>
</div>
<form id="form-POSTdevice-info-logs" data-method="POST" data-path="device-info-logs" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTdevice-info-logs', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTdevice-info-logs" onclick="tryItOut('POSTdevice-info-logs');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTdevice-info-logs" onclick="cancelTryOut('POSTdevice-info-logs');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTdevice-info-logs" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>device-info-logs</code></b>
</p>
<p>
<label id="auth-POSTdevice-info-logs" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTdevice-info-logs" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>platform</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="platform" data-endpoint="POSTdevice-info-logs" data-component="body" required  hidden>
<br>
Mobile Platform. Ex: IOS
</p>
<p>
<b><code>os</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="os" data-endpoint="POSTdevice-info-logs" data-component="body" required  hidden>
<br>
Mobile OS version. Ex: IOS 13
</p>
<p>
<b><code>version</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="version" data-endpoint="POSTdevice-info-logs" data-component="body" required  hidden>
<br>
App version. Ex: 2.0.0
</p>
<p>
<b><code>brand</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="brand" data-endpoint="POSTdevice-info-logs" data-component="body" required  hidden>
<br>
Mobile brand. Ex: Vivo
</p>
<p>
<b><code>model</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="model" data-endpoint="POSTdevice-info-logs" data-component="body" required  hidden>
<br>
Mobile model. Ex: V23232
</p>

</form>


## Sign Out

<small class="badge badge-darkred">requires authentication</small>

Use this end point to sign out.

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/sign-out" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json
{
    "message": "Sign out successfull!"
}
```
<div id="execution-results-GETsign-out" hidden>
    <blockquote>Received response<span id="execution-response-status-GETsign-out"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETsign-out"></code></pre>
</div>
<div id="execution-error-GETsign-out" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETsign-out"></code></pre>
</div>
<form id="form-GETsign-out" data-method="GET" data-path="sign-out" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETsign-out', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETsign-out" onclick="tryItOut('GETsign-out');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETsign-out" onclick="cancelTryOut('GETsign-out');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETsign-out" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>sign-out</code></b>
</p>
<p>
<label id="auth-GETsign-out" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETsign-out" data-component="header"></label>
</p>
</form>


## Delete Account

<small class="badge badge-darkred">requires authentication</small>

Use this end point to delete account

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/delete-account" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json
{
    "message": "Account deleted successfully!"
}
```
> Example response (422, Unable To Delete Account):

```json

{
      "message": "Validations",
      "error_box": {
          "heading": "Unable To Delete Account",
          "message": "We are unable to delete your account because you are currently entered into active cash contests and/or have funds in your account.",
          "cta": "Return",
          "color": "Blue",
          "cta_type": "Return",
      }
  }
```
<div id="execution-results-GETdelete-account" hidden>
    <blockquote>Received response<span id="execution-response-status-GETdelete-account"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETdelete-account"></code></pre>
</div>
<div id="execution-error-GETdelete-account" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETdelete-account"></code></pre>
</div>
<form id="form-GETdelete-account" data-method="GET" data-path="delete-account" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETdelete-account', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETdelete-account" onclick="tryItOut('GETdelete-account');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETdelete-account" onclick="cancelTryOut('GETdelete-account');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETdelete-account" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>delete-account</code></b>
</p>
<p>
<label id="auth-GETdelete-account" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETdelete-account" data-component="header"></label>
</p>
</form>


## Update In-App Rating Flag

<small class="badge badge-darkred">requires authentication</small>

Use this endpoint to mark that the user has closed the in-app rating popup.

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/update/in-app-rating-flag" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json
{
    "message": "App rating flag updated successfully!"
}
```
> Example response (404):

```json
{
    "message": "User not found"
}
```
<div id="execution-results-GETupdate-in-app-rating-flag" hidden>
    <blockquote>Received response<span id="execution-response-status-GETupdate-in-app-rating-flag"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETupdate-in-app-rating-flag"></code></pre>
</div>
<div id="execution-error-GETupdate-in-app-rating-flag" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETupdate-in-app-rating-flag"></code></pre>
</div>
<form id="form-GETupdate-in-app-rating-flag" data-method="GET" data-path="update/in-app-rating-flag" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETupdate-in-app-rating-flag', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETupdate-in-app-rating-flag" onclick="tryItOut('GETupdate-in-app-rating-flag');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETupdate-in-app-rating-flag" onclick="cancelTryOut('GETupdate-in-app-rating-flag');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETupdate-in-app-rating-flag" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>update/in-app-rating-flag</code></b>
</p>
<p>
<label id="auth-GETupdate-in-app-rating-flag" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETupdate-in-app-rating-flag" data-component="header"></label>
</p>
</form>


## Update User Mode

<small class="badge badge-darkred">requires authentication</small>

Use this endpoint to update the user app mode.

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/update/user-mode" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"user_mode":"Arcade."}'

```


> Example response (200):

```json
{
    "message": "User mode updated successfully!"
}
```
> Example response (404):

```json
{
    "message": "User not found"
}
```
> Example response (422):

```json

{
      "message": "Please enter required information",
      "errors": {
          "user_mode": [
              "The user_mode field is required."
          ],
        }
}
```
<div id="execution-results-POSTupdate-user-mode" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTupdate-user-mode"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTupdate-user-mode"></code></pre>
</div>
<div id="execution-error-POSTupdate-user-mode" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTupdate-user-mode"></code></pre>
</div>
<form id="form-POSTupdate-user-mode" data-method="POST" data-path="update/user-mode" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTupdate-user-mode', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTupdate-user-mode" onclick="tryItOut('POSTupdate-user-mode');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTupdate-user-mode" onclick="cancelTryOut('POSTupdate-user-mode');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTupdate-user-mode" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>update/user-mode</code></b>
</p>
<p>
<label id="auth-POSTupdate-user-mode" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTupdate-user-mode" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>user_mode</code></b>&nbsp;&nbsp;<small>enum</small>  &nbsp;
<input type="text" name="user_mode" data-endpoint="POSTupdate-user-mode" data-component="body" required  hidden>
<br>
Possible values: Cash, Arcade.
</p>

</form>


## Store Promo Code

<small class="badge badge-darkred">requires authentication</small>

Use this endpoint to store promo code after registration

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/updated/promo-code" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"promo_code":"molestias"}'

```


> Example response (201):

```json
{
    "message": "Promo code updated successfully",
    "data": {
        "user": {
            "id": 670,
            "email": "uemankita2905202517@yopmail.com",
            "username": "uemankita2905202517",
            "is_adult": 1,
            "phone": "5424349875",
            "avatar": "http:\/\/127.0.0.1:8000\/images\/avatar-default.png",
            "is_email_verified": 1,
            "email_verified_date_time": "2025-05-29 05:01:01",
            "created_at": "2025-05-29T03:31:01.000000Z",
            "updated_at": "2026-01-30T06:22:22.000000Z",
            "promo_code": "SPINTOWIN",
            "bucks": 0,
            "credits": -4,
            "available_cash": 10,
            "referral_code": "e6f657fb-0072-4b4c-8dcc-d23fd9202afc",
            "unique_onboarding_id": "fd4eb1a3-f3d2-4ed2-bc09-de3b684d79a3",
            "timezone": "Asia\/Kolkata",
            "platform": "Android"
        }
    }
}
```
> Example response (401):

```json
{
    "message": "User not found!"
}
```
<div id="execution-results-POSTupdated-promo-code" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTupdated-promo-code"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTupdated-promo-code"></code></pre>
</div>
<div id="execution-error-POSTupdated-promo-code" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTupdated-promo-code"></code></pre>
</div>
<form id="form-POSTupdated-promo-code" data-method="POST" data-path="updated/promo-code" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTupdated-promo-code', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTupdated-promo-code" onclick="tryItOut('POSTupdated-promo-code');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTupdated-promo-code" onclick="cancelTryOut('POSTupdated-promo-code');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTupdated-promo-code" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>updated/promo-code</code></b>
</p>
<p>
<label id="auth-POSTupdated-promo-code" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTupdated-promo-code" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>promo_code</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="promo_code" data-endpoint="POSTupdated-promo-code" data-component="body"  hidden>
<br>
. Ex: SPINTOWIN
</p>

</form>


## Check User Eligibility of Practice Draft

<small class="badge badge-darkred">requires authentication</small>

Use this endpoint to check if user is eligible to see practice draft popup

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/check/user/practice-draft-eligible" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (201):

```json

{
  "message": "User eligibility fetched successfully",
  "data": {
      'is_practice_draft_popup_eligible' => 1,
      'fantasy_spin_contest_id' => 23
  }
}
```
> Example response (401):

```json
{
    "message": "User not found!"
}
```
<div id="execution-results-GETcheck-user-practice-draft-eligible" hidden>
    <blockquote>Received response<span id="execution-response-status-GETcheck-user-practice-draft-eligible"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETcheck-user-practice-draft-eligible"></code></pre>
</div>
<div id="execution-error-GETcheck-user-practice-draft-eligible" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETcheck-user-practice-draft-eligible"></code></pre>
</div>
<form id="form-GETcheck-user-practice-draft-eligible" data-method="GET" data-path="check/user/practice-draft-eligible" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETcheck-user-practice-draft-eligible', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETcheck-user-practice-draft-eligible" onclick="tryItOut('GETcheck-user-practice-draft-eligible');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETcheck-user-practice-draft-eligible" onclick="cancelTryOut('GETcheck-user-practice-draft-eligible');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETcheck-user-practice-draft-eligible" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>check/user/practice-draft-eligible</code></b>
</p>
<p>
<label id="auth-GETcheck-user-practice-draft-eligible" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETcheck-user-practice-draft-eligible" data-component="header"></label>
</p>
</form>


## Check Sport-Wise Practice Draft Eligibility

<small class="badge badge-darkred">requires authentication</small>

Returns all active games with their icons and color codes, each indicating
whether a practice draft contest is currently available for that sport.

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/check/sport/practice-draft-eligible" \
    -H "Authorization: required Bearer token. Example: Bearer {YOUR_AUTH_TOKEN}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json
{
    "message": "Sport-wise practice draft eligibility fetched successfully",
    "data": [
        {
            "id": 1,
            "name": "NFL",
            "image": "https:\/\/example.com\/images\/icon-football.png",
            "featured_contest_color1": "#0A1931",
            "featured_contest_color2": "#1B5E20",
            "featured_contest_color3": "#2E7D32",
            "featured_contest_btn_color": "#4CAF50",
            "is_practice_draft_available": 1,
            "fantasy_spin_contest_id": 42
        },
        {
            "id": 2,
            "name": "NBA",
            "image": "https:\/\/example.com\/images\/icon-basketball.png",
            "featured_contest_color1": "#0A1931",
            "featured_contest_color2": "#1A237E",
            "featured_contest_color3": "#283593",
            "featured_contest_btn_color": "#3949AB",
            "is_practice_draft_available": 0,
            "fantasy_spin_contest_id": null
        }
    ]
}
```
> Example response (401):

```json
{
    "message": "User not found!"
}
```
<div id="execution-results-GETcheck-sport-practice-draft-eligible" hidden>
    <blockquote>Received response<span id="execution-response-status-GETcheck-sport-practice-draft-eligible"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETcheck-sport-practice-draft-eligible"></code></pre>
</div>
<div id="execution-error-GETcheck-sport-practice-draft-eligible" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETcheck-sport-practice-draft-eligible"></code></pre>
</div>
<form id="form-GETcheck-sport-practice-draft-eligible" data-method="GET" data-path="check/sport/practice-draft-eligible" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"required Bearer token. Example: Bearer {YOUR_AUTH_TOKEN}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETcheck-sport-practice-draft-eligible', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-GETcheck-sport-practice-draft-eligible" onclick="tryItOut('GETcheck-sport-practice-draft-eligible');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETcheck-sport-practice-draft-eligible" onclick="cancelTryOut('GETcheck-sport-practice-draft-eligible');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETcheck-sport-practice-draft-eligible" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>check/sport/practice-draft-eligible</code></b>
</p>
<p>
<label id="auth-GETcheck-sport-practice-draft-eligible" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETcheck-sport-practice-draft-eligible" data-component="header"></label>
</p>
</form>



