# User Management


## Verify Email Manually

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

Use this end point to get verify the users email manually

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/admin/user/email-verify-manually" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"id":17}'

```


> Example response (200):

```json
{
    "message": "User account is already verified!"
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "id": [
            "The id field is required."
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden!"
}
```
<div id="execution-results-POSTadmin-user-email-verify-manually" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTadmin-user-email-verify-manually"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTadmin-user-email-verify-manually"></code></pre>
</div>
<div id="execution-error-POSTadmin-user-email-verify-manually" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTadmin-user-email-verify-manually"></code></pre>
</div>
<form id="form-POSTadmin-user-email-verify-manually" data-method="POST" data-path="admin/user/email-verify-manually" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTadmin-user-email-verify-manually', 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-POSTadmin-user-email-verify-manually" onclick="tryItOut('POSTadmin-user-email-verify-manually');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTadmin-user-email-verify-manually" onclick="cancelTryOut('POSTadmin-user-email-verify-manually');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTadmin-user-email-verify-manually" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>admin/user/email-verify-manually</code></b>
</p>
<p>
<label id="auth-POSTadmin-user-email-verify-manually" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTadmin-user-email-verify-manually" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="id" data-endpoint="POSTadmin-user-email-verify-manually" data-component="body" required  hidden>
<br>
User Id. (Ex: )
</p>

</form>


## List

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

Use this end point to get the list of users

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/users?per_page=20&search=dicta&sort_field=ipsa&sort_method=rerum&page=10&is_email_verified=11&is_unclaimed_funds=13&is_unclaimed_funds_due_diligence_conducted=1&is_unclaimed_funds_delivered_to_treasurer=8&is_active=3&role_id=13" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json
{
    "message": "Users list",
    "data": {
        "users": {
            "current_page": 1,
            "data": [
                {
                    "id": 5,
                    "email": "taha@elegantmicroweb.com",
                    "username": "tahasethwala",
                    "is_adult": 1,
                    "phone": "9925738146",
                    "avatar": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/avatar-default.png",
                    "is_email_verified": 1,
                    "is_phone_verified": 0,
                    "email_verified_date_time": "2021-07-05 10:39:15",
                    "phone_verified_date_time": null,
                    "password_last_changed_date_time": null,
                    "created_at": "2021-07-05T10:38:53.000000Z",
                    "updated_at": "2021-07-05T10:39:15.000000Z",
                    "is_active": 1,
                    "bucks": 0,
                    "credits": 0,
                    "available_bucks": 0,
                    "available_credits": 0,
                    "open_bucks": 0,
                    "open_credits": 0,
                    "state": {
                        "id": 21,
                        "code": "MD",
                        "name": "Maryland"
                    },
                    "role": {
                        "id": 2,
                        "name": "User"
                    },
                    "leagues": [
                        {
                            "id": 3,
                            "name": "Jignesh's Team",
                            "sleeper_league_id": 706054541405143040,
                            "pivot": {
                                "user_id": 5,
                                "sleeper_league_id": 706054541405143040,
                                "is_active": 1,
                                "sleeper_username": "tahasethwala",
                                "fantasy_point_type": 30,
                                "created_at": "2021-07-05T10:40:04.000000Z",
                                "updated_at": "2021-07-05T14:42:26.000000Z",
                                "fantasy_point_type_name": "Half PPR"
                            }
                        }
                    ],
                    "foundations": [
                        {
                            "id": 3,
                            "name": "Matthew Stafford",
                            "about": "We help the underserved become self-reliant by partnering with individuals, organizations and communities to help develop their capacity for helping.",
                            "logo": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/foundation-logos\/Matthew-Stafford-1625462151.png",
                            "pivot": {
                                "user_id": 5,
                                "foundation_id": 3,
                                "created_at": "2021-07-05T10:40:10.000000Z",
                                "updated_at": "2021-07-05T10:40:10.000000Z"
                            }
                        }
                    ]
                },
                {
                    "id": 4,
                    "email": "swati@elegantmicroweb.com",
                    "username": "Swati",
                    "is_adult": 1,
                    "phone": "85134545156",
                    "avatar": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/avatar-default.png",
                    "is_email_verified": 1,
                    "is_phone_verified": 0,
                    "email_verified_date_time": "2021-07-05 05:19:49",
                    "phone_verified_date_time": null,
                    "password_last_changed_date_time": null,
                    "created_at": "2021-07-05T05:19:31.000000Z",
                    "updated_at": "2021-07-05T05:19:49.000000Z",
                    "is_active": 1,
                    "bucks": 0,
                    "credits": 0,
                    "available_bucks": 0,
                    "available_credits": 0,
                    "open_bucks": 0,
                    "open_credits": 0,
                    "state": {
                        "id": 10,
                        "code": "FL",
                        "name": "Florida"
                    },
                    "role": {
                        "id": 2,
                        "name": "User"
                    },
                    "leagues": [
                        {
                            "id": 2,
                            "name": "Twenty Nine June 2021",
                            "sleeper_league_id": 715469520269045760,
                            "pivot": {
                                "user_id": 4,
                                "sleeper_league_id": 715469520269045760,
                                "is_active": 1,
                                "sleeper_username": "tahasethwala",
                                "fantasy_point_type": 30,
                                "created_at": "2021-07-05T05:20:24.000000Z",
                                "updated_at": "2021-07-05T05:20:24.000000Z",
                                "fantasy_point_type_name": "Half PPR"
                            }
                        },
                        {
                            "id": 5,
                            "name": "ABC Football",
                            "sleeper_league_id": 710679964625772544,
                            "pivot": {
                                "user_id": 4,
                                "sleeper_league_id": 710679964625772544,
                                "is_active": 1,
                                "sleeper_username": "sahildotcom",
                                "fantasy_point_type": 30,
                                "created_at": "2021-07-05T11:25:38.000000Z",
                                "updated_at": "2021-07-05T11:25:38.000000Z",
                                "fantasy_point_type_name": "Half PPR"
                            }
                        }
                    ],
                    "foundations": [
                        {
                            "id": 1,
                            "name": "Patrick Mahomes",
                            "about": "Dedicated to improving the lives of children. The foundation supports initiatives that focus on health, wellness, and communities in need.",
                            "logo": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/foundation-logos\/Patrick-Mahomes-1625462101.png",
                            "pivot": {
                                "user_id": 4,
                                "foundation_id": 1,
                                "created_at": "2021-07-05T05:20:34.000000Z",
                                "updated_at": "2021-07-05T05:20:34.000000Z"
                            }
                        }
                    ]
                },
                {
                    "id": 3,
                    "email": "admin@bettorfantasy.com",
                    "username": "admin",
                    "is_adult": 1,
                    "phone": "123",
                    "avatar": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/avatar-default.png",
                    "is_email_verified": 1,
                    "is_phone_verified": 0,
                    "email_verified_date_time": null,
                    "phone_verified_date_time": null,
                    "password_last_changed_date_time": null,
                    "created_at": "2021-07-05T05:13:32.000000Z",
                    "updated_at": "2021-07-05T05:13:32.000000Z",
                    "is_active": 1,
                    "bucks": 0,
                    "credits": 0,
                    "available_bucks": 0,
                    "available_credits": 0,
                    "open_bucks": 0,
                    "open_credits": 0,
                    "state": {
                        "id": 3,
                        "code": "AZ",
                        "name": "Arizona"
                    },
                    "role": {
                        "id": 1,
                        "name": "Admin"
                    },
                    "leagues": [],
                    "foundations": []
                }
            ],
            "first_page_url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users?per_page=3&search=&sort_field=id&sort_method=desc&is_adult=&is_email_verified=&is_phone_verified=&role_id=&state_id=&is_active=&page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users?per_page=3&search=&sort_field=id&sort_method=desc&is_adult=&is_email_verified=&is_phone_verified=&role_id=&state_id=&is_active=&page=1",
            "links": [
                {
                    "url": null,
                    "label": "pagination.previous",
                    "active": false
                },
                {
                    "url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users?per_page=3&search=&sort_field=id&sort_method=desc&is_adult=&is_email_verified=&is_phone_verified=&role_id=&state_id=&is_active=&page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "pagination.next",
                    "active": false
                }
            ],
            "next_page_url": null,
            "path": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users",
            "per_page": 3,
            "prev_page_url": null,
            "to": 3,
            "total": 3
        }
    }
}
```
> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "per_page": [
            "The per page must be a number."
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden."
}
```
<div id="execution-results-GETusers" hidden>
    <blockquote>Received response<span id="execution-response-status-GETusers"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETusers"></code></pre>
</div>
<div id="execution-error-GETusers" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETusers"></code></pre>
</div>
<form id="form-GETusers" data-method="GET" data-path="users" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETusers', 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-GETusers" onclick="tryItOut('GETusers');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETusers" onclick="cancelTryOut('GETusers');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETusers" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>users</code></b>
</p>
<p>
<label id="auth-GETusers" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETusers" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Query Parameters</b></h4>
<p>
<b><code>per_page</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="per_page" data-endpoint="GETusers" data-component="query"  hidden>
<br>
Number of records per page. Send '-1' for all records. Default: 10. Ex: 15
</p>
<p>
<b><code>search</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="search" data-endpoint="GETusers" data-component="query"  hidden>
<br>
Search string. Search will be performed in email, username, phone. Ex: johndoe
</p>
<p>
<b><code>sort_field</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="sort_field" data-endpoint="GETusers" data-component="query"  hidden>
<br>
Sort by field. Possible values: id, email, username, is_adult, phone, is_email_verified, created_at, available_credits, available_bucks, available_cash, kyc_status_id. Ex: email
</p>
<p>
<b><code>sort_method</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="sort_method" data-endpoint="GETusers" data-component="query"  hidden>
<br>
Sort by method. Possible values: asc, desc. Ex: desc
</p>
<p>
<b><code>page</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="page" data-endpoint="GETusers" data-component="query"  hidden>
<br>
Page number. Ex: 2
</p>
<p>
<b><code>is_email_verified</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="is_email_verified" data-endpoint="GETusers" data-component="query"  hidden>
<br>
Possible values: 0 (No), 1 (Yes). Ex: 1
</p>
<p>
<b><code>is_unclaimed_funds</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="is_unclaimed_funds" data-endpoint="GETusers" data-component="query"  hidden>
<br>
Possible values: 0 (No), 1 (Yes). Ex: 1
</p>
<p>
<b><code>is_unclaimed_funds_due_diligence_conducted</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="is_unclaimed_funds_due_diligence_conducted" data-endpoint="GETusers" data-component="query"  hidden>
<br>
Possible values: 0 (No), 1 (Yes). Ex: 1
</p>
<p>
<b><code>is_unclaimed_funds_delivered_to_treasurer</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="is_unclaimed_funds_delivered_to_treasurer" data-endpoint="GETusers" data-component="query"  hidden>
<br>
Possible values: 0 (No), 1 (Yes). Ex: 1
</p>
<p>
<b><code>is_active</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="is_active" data-endpoint="GETusers" data-component="query"  hidden>
<br>
Possible values: 0 (Inactive), 1 (Active). Ex: 1
</p>
<p>
<b><code>role_id</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="role_id" data-endpoint="GETusers" data-component="query"  hidden>
<br>
Role Id of the user. Ex: 1
</p>
</form>


## Deleted users

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

Use this end point to get the list of deleted users

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/deleted-users?per_page=17&search=accusantium&sort_field=at&sort_method=impedit&page=4" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "per_page": [
            "The per page must be a number."
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden."
}
```
<div id="execution-results-GETdeleted-users" hidden>
    <blockquote>Received response<span id="execution-response-status-GETdeleted-users"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETdeleted-users"></code></pre>
</div>
<div id="execution-error-GETdeleted-users" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETdeleted-users"></code></pre>
</div>
<form id="form-GETdeleted-users" data-method="GET" data-path="deleted-users" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETdeleted-users', 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-GETdeleted-users" onclick="tryItOut('GETdeleted-users');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETdeleted-users" onclick="cancelTryOut('GETdeleted-users');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETdeleted-users" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>deleted-users</code></b>
</p>
<p>
<label id="auth-GETdeleted-users" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETdeleted-users" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Query Parameters</b></h4>
<p>
<b><code>per_page</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="per_page" data-endpoint="GETdeleted-users" data-component="query"  hidden>
<br>
Number of records per page. Send '-1' for all records. Default: 10. Ex: 15
</p>
<p>
<b><code>search</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="search" data-endpoint="GETdeleted-users" data-component="query"  hidden>
<br>
Search string. Search will be performed in email, username, phone. Ex: johndoe
</p>
<p>
<b><code>sort_field</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="sort_field" data-endpoint="GETdeleted-users" data-component="query"  hidden>
<br>
Sort by field. Possible values: id, email, username, phone, created_at. Ex: email
</p>
<p>
<b><code>sort_method</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="sort_method" data-endpoint="GETdeleted-users" data-component="query"  hidden>
<br>
Sort by method. Possible values: asc, desc. Ex: desc
</p>
<p>
<b><code>page</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="page" data-endpoint="GETdeleted-users" data-component="query"  hidden>
<br>
Page number. Ex: 2
</p>
</form>


## Dismiss Winnings Popup

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

Use this end point to dismiss the winnings popup after it has been shown to the user. (GET)

> Example request:

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


> Example response (200):

```json
{
    "message": "Winnings popup dismissed successfully."
}
```
> Example response (404):

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


## Show

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

Use this end point to view user details.

> Example request:

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


> Example response (200):

```json
{
    "message": "User details",
    "data": {
        "user": {
            "id": 4,
            "email": "swati@elegantmicroweb.com",
            "username": "Swati",
            "is_adult": 1,
            "phone": "85134545156",
            "avatar": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/avatar-default.png",
            "is_email_verified": 1,
            "is_phone_verified": 0,
            "email_verified_date_time": "2021-07-05 05:19:49",
            "phone_verified_date_time": null,
            "password_last_changed_date_time": null,
            "created_at": "2021-07-05T05:19:31.000000Z",
            "updated_at": "2021-07-05T05:19:49.000000Z",
            "is_active": 1,
            "bucks": 0,
            "credits": 0,
            "available_bucks": 0,
            "available_credits": 0,
            "open_bucks": 0,
            "open_credits": 0,
            "state": {
                "id": 10,
                "code": "FL",
                "name": "Florida"
            },
            "role": {
                "id": 2,
                "name": "User"
            },
            "leagues": [
                {
                    "id": 2,
                    "name": "Twenty Nine June 2021",
                    "sleeper_league_id": 715469520269045760,
                    "pivot": {
                        "user_id": 4,
                        "sleeper_league_id": 715469520269045760,
                        "is_active": 1,
                        "sleeper_username": "tahasethwala",
                        "fantasy_point_type": 30,
                        "created_at": "2021-07-05T05:20:24.000000Z",
                        "updated_at": "2021-07-05T05:20:24.000000Z",
                        "fantasy_point_type_name": "Half PPR"
                    }
                },
                {
                    "id": 5,
                    "name": "ABC Football",
                    "sleeper_league_id": 710679964625772544,
                    "pivot": {
                        "user_id": 4,
                        "sleeper_league_id": 710679964625772544,
                        "is_active": 1,
                        "sleeper_username": "sahildotcom",
                        "fantasy_point_type": 30,
                        "created_at": "2021-07-05T11:25:38.000000Z",
                        "updated_at": "2021-07-05T11:25:38.000000Z",
                        "fantasy_point_type_name": "Half PPR"
                    }
                }
            ],
            "foundations": [
                {
                    "id": 1,
                    "name": "Patrick Mahomes",
                    "about": "Dedicated to improving the lives of children. The foundation supports initiatives that focus on health, wellness, and communities in need.",
                    "logo": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/foundation-logos\/Patrick-Mahomes-1625462101.png",
                    "pivot": {
                        "user_id": 4,
                        "foundation_id": 1,
                        "created_at": "2021-07-05T05:20:34.000000Z",
                        "updated_at": "2021-07-05T05:20:34.000000Z"
                    }
                }
            ]
        }
    }
}
```
> Example response (404):

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

```json
{
    "message": "Access Forbidden."
}
```
<div id="execution-results-GETusers--id-" hidden>
    <blockquote>Received response<span id="execution-response-status-GETusers--id-"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETusers--id-"></code></pre>
</div>
<div id="execution-error-GETusers--id-" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETusers--id-"></code></pre>
</div>
<form id="form-GETusers--id-" data-method="GET" data-path="users/{id}" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETusers--id-', 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-GETusers--id-" onclick="tryItOut('GETusers--id-');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETusers--id-" onclick="cancelTryOut('GETusers--id-');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETusers--id-" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>users/{id}</code></b>
</p>
<p>
<label id="auth-GETusers--id-" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETusers--id-" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>URL Parameters</b></h4>
<p>
<b><code>id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="id" data-endpoint="GETusers--id-" data-component="url" required  hidden>
<br>
The ID of the user. Ex: 1
</p>
</form>


## Create

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

Use this end point to create user.

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/users/store" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: multipart/form-data" \
    -H "Accept: application/json" \
    -F "is_adult=20" \
    -F "email=dolorum" \
    -F "username=eum" \
    -F "password=debitis" \
    -F "password_confirmation=qui" \
    -F "phone=consectetur" \
    -F "state_id=1" \
    -F "role_id=9" \
    -F "is_active=4" \
    -F "flag_feature_bettorlive=19" \
    -F "avatar=@/tmp/php6XqtuC" 
```


> Example response (201):

```json

{
      "message": "User created successfull.",
      "data": {
          "user": {
              "id": 19,
              "email": "tahasethwala@yahoo.com",
              "username": "tahayahoo1",
              "is_adult": 1,
              "phone": "83209706101",
              "avatar": null,
              "is_email_verified": 1,
              "is_phone_verified": 1,
              "email_verified_date_time": null,
              "phone_verified_date_time": null,
              "password_last_changed_date_time": null,
              "created_at": "2021-06-10T14:10:27.000000Z",
              "updated_at": "2021-06-10T14:10:27.000000Z",
              "is_active": 1,
              "bucks": 0,
              "credits": 0,
              "available_bucks": 0,
              "available_credits": 0,
              "open_bucks": 0,
              "open_credits": 0,
              "state": {
                  "id": 1,
                  "code": "AK",
                  "name": "Alaska"
              },
              "role": {
                  "id": 1,
                  "name": "Admin"
              },
              "leagues": [],
              "foundations": [],
          }
      }
  }
```
> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "is_adult": [
            "The is adult field is required."
        ],
        "email": [
            "The email field is required."
        ],
        "username": [
            "The username field is required."
        ],
        "password": [
            "The password field is required."
        ],
        "phone": [
            "The phone field is required."
        ],
        "state_id": [
            "The state id field is required."
        ],
        "role_id": [
            "The role id field is required."
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden."
}
```
<div id="execution-results-POSTusers-store" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTusers-store"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTusers-store"></code></pre>
</div>
<div id="execution-error-POSTusers-store" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTusers-store"></code></pre>
</div>
<form id="form-POSTusers-store" data-method="POST" data-path="users/store" data-authed="1" data-hasfiles="1" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"multipart\/form-data","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTusers-store', 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-POSTusers-store" onclick="tryItOut('POSTusers-store');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTusers-store" onclick="cancelTryOut('POSTusers-store');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTusers-store" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>users/store</code></b>
</p>
<p>
<label id="auth-POSTusers-store" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTusers-store" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>is_adult</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_adult" data-endpoint="POSTusers-store" data-component="body" required  hidden>
<br>
Possible values: 0 (No), 1 (Yes). Ex: 1
</p>
<p>
<b><code>email</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="email" data-endpoint="POSTusers-store" data-component="body" required  hidden>
<br>
Email address of the user. Max: 255. Ex: john_does@yopmail.com
</p>
<p>
<b><code>username</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="username" data-endpoint="POSTusers-store" data-component="body" required  hidden>
<br>
Username of the user. Min: 5. Max: 25. Alphanumeric. No space in between Ex: johndotcom
</p>
<p>
<b><code>password</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="password" name="password" data-endpoint="POSTusers-store" 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="POSTusers-store" data-component="body" required  hidden>
<br>
Password confirmation. Ex: Ems016@2020
</p>
<p>
<b><code>phone</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="phone" data-endpoint="POSTusers-store" data-component="body" required  hidden>
<br>
Phone #. Max: 255. Ex: 0987654321
</p>
<p>
<b><code>state_id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="state_id" data-endpoint="POSTusers-store" data-component="body" required  hidden>
<br>
State ID. Ex: 1
</p>
<p>
<b><code>role_id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="role_id" data-endpoint="POSTusers-store" data-component="body" required  hidden>
<br>
Role ID. Possible values: 1 (Admin), 2 (User) Ex: 1
</p>
<p>
<b><code>is_active</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_active" data-endpoint="POSTusers-store" data-component="body" required  hidden>
<br>
Possible values: 1 (Active), 0 (Inactive). Ex: 1
</p>
<p>
<b><code>avatar</code></b>&nbsp;&nbsp;<small>file</small>     <i>optional</i> &nbsp;
<input type="file" name="avatar" data-endpoint="POSTusers-store" data-component="body"  hidden>
<br>
optional The profile picture of the user.
</p>
<p>
<b><code>flag_feature_bettorlive</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="flag_feature_bettorlive" data-endpoint="POSTusers-store" data-component="body"  hidden>
<br>
Possible values: 1 (Yes), 0 (No). Ex: 1
</p>

</form>


## Update

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

Use this end point to update user details.

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/users/11/update" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: multipart/form-data" \
    -H "Accept: application/json" \
    -F "is_adult=7" \
    -F "email=aut" \
    -F "username=iste" \
    -F "password=eaque" \
    -F "password_confirmation=alias" \
    -F "phone=saepe" \
    -F "state_id=7" \
    -F "role_id=2" \
    -F "is_active=5" \
    -F "flag_feature_bettorlive=14" \
    -F "is_kyc_locked=8" \
    -F "kyc_lock_remark=nihil" \
    -F "avatar=@/tmp/phpuKAWkF" 
```


> Example response (200):

```json
{
    "message": "User updated successfully",
    "data": {
        "user": {
            "id": 1,
            "email": "admin@bettorfantasy.com",
            "username": "tahasethwala",
            "is_adult": 1,
            "phone": "212",
            "avatar": "http:\/\/127.0.0.1:8000\/images\/avatar-default.png",
            "is_email_verified": 0,
            "is_phone_verified": 0,
            "email_verified_date_time": null,
            "phone_verified_date_time": null,
            "password_last_changed_date_time": "2021-06-14 13:34:32",
            "created_at": "2021-06-11T05:15:46.000000Z",
            "updated_at": "2021-06-21T09:34:41.000000Z",
            "is_active": 1,
            "bucks": 0,
            "credits": 0,
            "available_bucks": 0,
            "available_credits": 0,
            "open_bucks": 0,
            "open_credits": 0,
            "state": {
                "id": 1,
                "code": "AK",
                "name": "Alaska"
            },
            "role": {
                "id": 1,
                "name": "Admin"
            },
            "leagues": [
                {
                    "id": 1,
                    "name": "Taha's League",
                    "sleeper_league_id": 706045922735390720,
                    "pivot": {
                        "user_id": 1,
                        "league_id": 1,
                        "is_active": 1,
                        "sleeper_username": null,
                        "fantasy_point_type": 10,
                        "created_at": "2021-06-18T05:47:07.000000Z",
                        "updated_at": "2021-06-21T09:28:52.000000Z",
                        "fantasy_point_type_name": "Non PPR"
                    }
                },
                {
                    "id": 2,
                    "name": "Jignesh's Team",
                    "sleeper_league_id": 706054541405143040,
                    "pivot": {
                        "user_id": 1,
                        "league_id": 2,
                        "is_active": 1,
                        "sleeper_username": "tahagmail",
                        "fantasy_point_type": 10,
                        "created_at": "2021-06-18T05:47:20.000000Z",
                        "updated_at": "2021-06-21T09:28:52.000000Z",
                        "fantasy_point_type_name": "Non PPR"
                    }
                }
            ],
            "foundations": [
                {
                    "id": 2,
                    "name": "Player Foundation 2",
                    "about": "Player Foundation Bio 2",
                    "logo": "http:\/\/127.0.0.1:8000\/foundation-logos\/Player-Foundation-2-1622641523.jpg",
                    "pivot": {
                        "user_id": 1,
                        "foundation_id": 2,
                        "created_at": null,
                        "updated_at": null
                    }
                }
            ]
        }
    }
}
```
> Example response (422):

```json
{
    "message": "Validation Failed.",
    "errors": {
        "is_adult": [
            "The is adult field is required."
        ],
        "email": [
            "The email field is required."
        ],
        "username": [
            "The username field is required."
        ],
        "phone": [
            "The phone field is required."
        ],
        "state_id": [
            "The state id field is required."
        ],
        "role_id": [
            "The role id field is required."
        ],
        "is_active": [
            "The active\/inactive field is required"
        ]
    }
}
```
> Example response (404):

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

```json
{
    "message": "Access Forbidden."
}
```
<div id="execution-results-POSTusers--id--update" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTusers--id--update"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTusers--id--update"></code></pre>
</div>
<div id="execution-error-POSTusers--id--update" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTusers--id--update"></code></pre>
</div>
<form id="form-POSTusers--id--update" data-method="POST" data-path="users/{id}/update" data-authed="1" data-hasfiles="1" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"multipart\/form-data","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTusers--id--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-POSTusers--id--update" onclick="tryItOut('POSTusers--id--update');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTusers--id--update" onclick="cancelTryOut('POSTusers--id--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-POSTusers--id--update" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>users/{id}/update</code></b>
</p>
<p>
<label id="auth-POSTusers--id--update" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTusers--id--update" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>URL Parameters</b></h4>
<p>
<b><code>id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="id" data-endpoint="POSTusers--id--update" data-component="url" required  hidden>
<br>
The ID of the user. Ex: 1
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>is_adult</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_adult" data-endpoint="POSTusers--id--update" data-component="body" required  hidden>
<br>
Possible values: 0 (No), 1 (Yes). Ex: 1
</p>
<p>
<b><code>email</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="email" data-endpoint="POSTusers--id--update" data-component="body" required  hidden>
<br>
Email address of the user. Max: 255. Ex: john_does@yopmail.com
</p>
<p>
<b><code>username</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="username" data-endpoint="POSTusers--id--update" data-component="body" required  hidden>
<br>
Username of the user. Min: 5. Max: 25. Alphanumeric. No space in between Ex: johndotcom
</p>
<p>
<b><code>password</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="password" name="password" data-endpoint="POSTusers--id--update" data-component="body"  hidden>
<br>
Password of the user. Min:8, Max: 16 & must be of 8-16 length and include at least one of each: Uppercase, Lowercase, Number, Special character from (^_.%,!@#\$&*~). Ex: Ems016@2020
</p>
<p>
<b><code>password_confirmation</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="password" name="password_confirmation" data-endpoint="POSTusers--id--update" data-component="body"  hidden>
<br>
Password confirmation. Ex: Ems016@2020
</p>
<p>
<b><code>phone</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="phone" data-endpoint="POSTusers--id--update" data-component="body" required  hidden>
<br>
Phone #. Max: 255. Ex: 0987654321
</p>
<p>
<b><code>state_id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="state_id" data-endpoint="POSTusers--id--update" data-component="body" required  hidden>
<br>
State ID. Ex: 1
</p>
<p>
<b><code>role_id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="role_id" data-endpoint="POSTusers--id--update" data-component="body" required  hidden>
<br>
Role ID. Possible values: 1 (Admin), 2 (User) Ex: 1
</p>
<p>
<b><code>is_active</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_active" data-endpoint="POSTusers--id--update" data-component="body" required  hidden>
<br>
Possible values: 1 (Active), 0 (Inactive). Ex: 1
</p>
<p>
<b><code>avatar</code></b>&nbsp;&nbsp;<small>file</small>     <i>optional</i> &nbsp;
<input type="file" name="avatar" data-endpoint="POSTusers--id--update" data-component="body"  hidden>
<br>
optional The profile picture of the user.
</p>
<p>
<b><code>flag_feature_bettorlive</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="flag_feature_bettorlive" data-endpoint="POSTusers--id--update" data-component="body"  hidden>
<br>
Possible values: 1 (Yes), 0 (No). Ex: 1
</p>
<p>
<b><code>is_kyc_locked</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="is_kyc_locked" data-endpoint="POSTusers--id--update" data-component="body"  hidden>
<br>
Possible values: 1 (Yes), 0 (No). Ex: 1
</p>
<p>
<b><code>kyc_lock_remark</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="kyc_lock_remark" data-endpoint="POSTusers--id--update" data-component="body"  hidden>
<br>
KYC lock remark. Ex: Lorem ipsum
</p>

</form>


## Update Unclaimed Funds Checklist

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

Use this end point to update user's unclaimed funds checklist.

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/users/1/unclaimed-funds-checklist" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"is_unclaimed_funds_due_diligence_conducted":1,"is_unclaimed_funds_delivered_to_treasurer":1}'

```


> Example response (200):

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

```json

{
      "message": "Validation Failed.",
      "errors": {
          "is_unclaimed_funds_due_diligence_conducted": [
              "The is unclaimed funds due diligence conducted field is required."
          ],
      }
  }
```
> Example response (404):

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

```json
{
    "message": "Access Forbidden."
}
```
<div id="execution-results-POSTusers--id--unclaimed-funds-checklist" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTusers--id--unclaimed-funds-checklist"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTusers--id--unclaimed-funds-checklist"></code></pre>
</div>
<div id="execution-error-POSTusers--id--unclaimed-funds-checklist" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTusers--id--unclaimed-funds-checklist"></code></pre>
</div>
<form id="form-POSTusers--id--unclaimed-funds-checklist" data-method="POST" data-path="users/{id}/unclaimed-funds-checklist" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTusers--id--unclaimed-funds-checklist', 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-POSTusers--id--unclaimed-funds-checklist" onclick="tryItOut('POSTusers--id--unclaimed-funds-checklist');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTusers--id--unclaimed-funds-checklist" onclick="cancelTryOut('POSTusers--id--unclaimed-funds-checklist');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTusers--id--unclaimed-funds-checklist" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>users/{id}/unclaimed-funds-checklist</code></b>
</p>
<p>
<label id="auth-POSTusers--id--unclaimed-funds-checklist" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTusers--id--unclaimed-funds-checklist" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>URL Parameters</b></h4>
<p>
<b><code>id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="id" data-endpoint="POSTusers--id--unclaimed-funds-checklist" data-component="url" required  hidden>
<br>
The ID of the user.
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>is_unclaimed_funds_due_diligence_conducted</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_unclaimed_funds_due_diligence_conducted" data-endpoint="POSTusers--id--unclaimed-funds-checklist" data-component="body" required  hidden>
<br>
Possible values: 0 (No), 1 (Yes).
</p>
<p>
<b><code>is_unclaimed_funds_delivered_to_treasurer</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_unclaimed_funds_delivered_to_treasurer" data-endpoint="POSTusers--id--unclaimed-funds-checklist" data-component="body" required  hidden>
<br>
Possible values: 0 (No), 1 (Yes).
</p>

</form>


## Delete

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

Use this end point to delete user(s).

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/users/delete" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"ids":[4,2]}'

```


> Example response (200):

```json
{
    "message": "User deleted successfully!"
}
```
> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "ids": [
            "The ids field is required."
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden."
}
```
<div id="execution-results-POSTusers-delete" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTusers-delete"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTusers-delete"></code></pre>
</div>
<div id="execution-error-POSTusers-delete" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTusers-delete"></code></pre>
</div>
<form id="form-POSTusers-delete" data-method="POST" data-path="users/delete" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTusers-delete', 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-POSTusers-delete" onclick="tryItOut('POSTusers-delete');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTusers-delete" onclick="cancelTryOut('POSTusers-delete');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTusers-delete" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>users/delete</code></b>
</p>
<p>
<label id="auth-POSTusers-delete" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTusers-delete" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>ids</code></b>&nbsp;&nbsp;<small>integer[]</small>  &nbsp;
<input type="number" name="ids.0" data-endpoint="POSTusers-delete" data-component="body" required  hidden>
<input type="number" name="ids.1" data-endpoint="POSTusers-delete" data-component="body" hidden>
<br>
User Id
</p>

</form>


## Change Status

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

Use this end point to change status of user(s).

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/users/change-status" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"ids":[15,9],"is_active":19}'

```


> Example response (200):

```json
{
    "message": "Status changed successfully"
}
```
> Example response (422):

```json
{
    "message": "Validation Failed.",
    "errors": {
        "ids": [
            "The ids field is required."
        ],
        "is_active": [
            "The active\/inactive field is required"
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden!"
}
```
<div id="execution-results-POSTusers-change-status" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTusers-change-status"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTusers-change-status"></code></pre>
</div>
<div id="execution-error-POSTusers-change-status" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTusers-change-status"></code></pre>
</div>
<form id="form-POSTusers-change-status" data-method="POST" data-path="users/change-status" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTusers-change-status', 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-POSTusers-change-status" onclick="tryItOut('POSTusers-change-status');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTusers-change-status" onclick="cancelTryOut('POSTusers-change-status');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTusers-change-status" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>users/change-status</code></b>
</p>
<p>
<label id="auth-POSTusers-change-status" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTusers-change-status" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>ids</code></b>&nbsp;&nbsp;<small>integer[]</small>  &nbsp;
<input type="number" name="ids.0" data-endpoint="POSTusers-change-status" data-component="body" required  hidden>
<input type="number" name="ids.1" data-endpoint="POSTusers-change-status" data-component="body" hidden>
<br>
Foundation Id
</p>
<p>
<b><code>is_active</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_active" data-endpoint="POSTusers-change-status" data-component="body" required  hidden>
<br>
Possible values: 1 (Active), 0 (Inactive). Ex: 1
</p>

</form>


## Sync Charity

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

Use this end point to sync user's charity.

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/users/4/sync-foundations" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"ids":[13,20]}'

```


> Example response (200):

```json
{
    "message": "Foundations synced."
}
```
> Example response (422):

```json
{
    "message": "Validation Failed.",
    "errors": {
        "ids": [
            "The selected ids is invalid."
        ]
    }
}
```
> Example response (404):

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

```json
{
    "message": "Access Forbidden!"
}
```
<div id="execution-results-POSTusers--id--sync-foundations" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTusers--id--sync-foundations"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTusers--id--sync-foundations"></code></pre>
</div>
<div id="execution-error-POSTusers--id--sync-foundations" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTusers--id--sync-foundations"></code></pre>
</div>
<form id="form-POSTusers--id--sync-foundations" data-method="POST" data-path="users/{id}/sync-foundations" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTusers--id--sync-foundations', 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-POSTusers--id--sync-foundations" onclick="tryItOut('POSTusers--id--sync-foundations');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTusers--id--sync-foundations" onclick="cancelTryOut('POSTusers--id--sync-foundations');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTusers--id--sync-foundations" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>users/{id}/sync-foundations</code></b>
</p>
<p>
<label id="auth-POSTusers--id--sync-foundations" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTusers--id--sync-foundations" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>URL Parameters</b></h4>
<p>
<b><code>id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="id" data-endpoint="POSTusers--id--sync-foundations" data-component="url" required  hidden>
<br>
The ID of the User. Ex: 5
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>ids</code></b>&nbsp;&nbsp;<small>integer[]</small>  &nbsp;
<input type="number" name="ids.0" data-endpoint="POSTusers--id--sync-foundations" data-component="body" required  hidden>
<input type="number" name="ids.1" data-endpoint="POSTusers--id--sync-foundations" data-component="body" hidden>
<br>
Foundation Id
</p>

</form>


## Verify Account Manually

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

Use this end point to get verify the users account manually

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/users/verify-account-manually" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"id":9}'

```


> Example response (200):

```json
{
    "message": "User account verified successfully"
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "id": [
            "The id field is required."
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden!"
}
```
<div id="execution-results-POSTusers-verify-account-manually" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTusers-verify-account-manually"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTusers-verify-account-manually"></code></pre>
</div>
<div id="execution-error-POSTusers-verify-account-manually" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTusers-verify-account-manually"></code></pre>
</div>
<form id="form-POSTusers-verify-account-manually" data-method="POST" data-path="users/verify-account-manually" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTusers-verify-account-manually', 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-POSTusers-verify-account-manually" onclick="tryItOut('POSTusers-verify-account-manually');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTusers-verify-account-manually" onclick="cancelTryOut('POSTusers-verify-account-manually');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTusers-verify-account-manually" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>users/verify-account-manually</code></b>
</p>
<p>
<label id="auth-POSTusers-verify-account-manually" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTusers-verify-account-manually" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="id" data-endpoint="POSTusers-verify-account-manually" data-component="body" required  hidden>
<br>
User Id. (Ex: )
</p>

</form>


## Disabled Scoring Notice Message

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

Use this end point to disabled scoring notice message of user(s).

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/users/disable-scoring-notice-message" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"is_scoring_notice_dsa":15}'

```


> Example response (200):

```json
{
    "message": "Scoring notice message disabled successfully"
}
```
> Example response (422):

```json
{
    "message": "Validation Failed.",
    "errors": {
        "is_scoring_notice_dsa": [
            "The is scoring notice dsa field is required."
        ]
    }
}
```
> Example response (404):

```json
{
    "message": "User not found!"
}
```
<div id="execution-results-POSTusers-disable-scoring-notice-message" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTusers-disable-scoring-notice-message"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTusers-disable-scoring-notice-message"></code></pre>
</div>
<div id="execution-error-POSTusers-disable-scoring-notice-message" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTusers-disable-scoring-notice-message"></code></pre>
</div>
<form id="form-POSTusers-disable-scoring-notice-message" data-method="POST" data-path="users/disable-scoring-notice-message" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTusers-disable-scoring-notice-message', 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-POSTusers-disable-scoring-notice-message" onclick="tryItOut('POSTusers-disable-scoring-notice-message');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTusers-disable-scoring-notice-message" onclick="cancelTryOut('POSTusers-disable-scoring-notice-message');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTusers-disable-scoring-notice-message" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>users/disable-scoring-notice-message</code></b>
</p>
<p>
<label id="auth-POSTusers-disable-scoring-notice-message" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTusers-disable-scoring-notice-message" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>is_scoring_notice_dsa</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="is_scoring_notice_dsa" data-endpoint="POSTusers-disable-scoring-notice-message" data-component="body" required  hidden>
<br>
Possible values: 1 (Don't show again), 0 (Still show). Ex: 1
</p>

</form>


## Update Enjoying FS Status

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

Use this end point to update enjoying fs status of user(s).

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/users/update-enjoying-fs-status" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"enjoying_fs_status":"sint"}'

```


> Example response (200):

```json
{
    "message": "Enjoying fs status updated successfully"
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "enjoying_fs_status": [
            "The selected enjoying fs status is invalid.."
        ]
    }
}
```
> Example response (404):

```json
{
    "message": "User not found!"
}
```
<div id="execution-results-POSTusers-update-enjoying-fs-status" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTusers-update-enjoying-fs-status"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTusers-update-enjoying-fs-status"></code></pre>
</div>
<div id="execution-error-POSTusers-update-enjoying-fs-status" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTusers-update-enjoying-fs-status"></code></pre>
</div>
<form id="form-POSTusers-update-enjoying-fs-status" data-method="POST" data-path="users/update-enjoying-fs-status" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTusers-update-enjoying-fs-status', 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-POSTusers-update-enjoying-fs-status" onclick="tryItOut('POSTusers-update-enjoying-fs-status');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTusers-update-enjoying-fs-status" onclick="cancelTryOut('POSTusers-update-enjoying-fs-status');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTusers-update-enjoying-fs-status" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>users/update-enjoying-fs-status</code></b>
</p>
<p>
<label id="auth-POSTusers-update-enjoying-fs-status" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTusers-update-enjoying-fs-status" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>enjoying_fs_status</code></b>&nbsp;&nbsp;<small>enum</small>  &nbsp;
<input type="text" name="enjoying_fs_status" data-endpoint="POSTusers-update-enjoying-fs-status" data-component="body" required  hidden>
<br>
Possible values: not_eligible, eligible, review_prompt, feedback_prompt, cancel, completed. Ex: eligible
</p>

</form>


## Add Free Roll Credits

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

Use this end point to add free roll credits to users account.

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/users/add/free-roll-credits" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"user_id":14,"value":11}'

```


> Example response (200):

```json
{
    "message": "Added free roll credits to user account successfully"
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "user_id": [
            "The user id field is required."
        ],
        "type": [
            "The type field is required."
        ]
    }
}
```
> Example response (404):

```json
{
    "message": "User not found!"
}
```
<div id="execution-results-POSTusers-add-free-roll-credits" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTusers-add-free-roll-credits"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTusers-add-free-roll-credits"></code></pre>
</div>
<div id="execution-error-POSTusers-add-free-roll-credits" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTusers-add-free-roll-credits"></code></pre>
</div>
<form id="form-POSTusers-add-free-roll-credits" data-method="POST" data-path="users/add/free-roll-credits" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTusers-add-free-roll-credits', 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-POSTusers-add-free-roll-credits" onclick="tryItOut('POSTusers-add-free-roll-credits');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTusers-add-free-roll-credits" onclick="cancelTryOut('POSTusers-add-free-roll-credits');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTusers-add-free-roll-credits" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>users/add/free-roll-credits</code></b>
</p>
<p>
<label id="auth-POSTusers-add-free-roll-credits" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTusers-add-free-roll-credits" data-component="header"></label>
</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="POSTusers-add-free-roll-credits" data-component="body" required  hidden>
<br>
User ID. Ex: 123
</p>
<p>
<b><code>value</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="value" data-endpoint="POSTusers-add-free-roll-credits" data-component="body" required  hidden>
<br>
Transaction value. Can be a positive or negative number with decimals. Ex: -50, 12.85, 6521
</p>

</form>


## Disabled Team Position Contest Popup

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

Use this end point to disabled team position contest popup of user(s).

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/users/disable/team-position-popup" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"do_not_show_team_position_popup":14}'

```


> Example response (200):

```json
{
    "message": "Team position contest popup updated successfully"
}
```
> Example response (422):

```json
{
    "message": "Validation Failed.",
    "errors": {
        "do_not_show_team_position_popup": [
            "The do not show team position popup field is required."
        ]
    }
}
```
> Example response (404):

```json
{
    "message": "User not found!"
}
```
<div id="execution-results-GETusers-disable-team-position-popup" hidden>
    <blockquote>Received response<span id="execution-response-status-GETusers-disable-team-position-popup"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETusers-disable-team-position-popup"></code></pre>
</div>
<div id="execution-error-GETusers-disable-team-position-popup" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETusers-disable-team-position-popup"></code></pre>
</div>
<form id="form-GETusers-disable-team-position-popup" data-method="GET" data-path="users/disable/team-position-popup" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETusers-disable-team-position-popup', 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-GETusers-disable-team-position-popup" onclick="tryItOut('GETusers-disable-team-position-popup');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETusers-disable-team-position-popup" onclick="cancelTryOut('GETusers-disable-team-position-popup');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETusers-disable-team-position-popup" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>users/disable/team-position-popup</code></b>
</p>
<p>
<label id="auth-GETusers-disable-team-position-popup" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETusers-disable-team-position-popup" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>do_not_show_team_position_popup</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="do_not_show_team_position_popup" data-endpoint="GETusers-disable-team-position-popup" data-component="body" required  hidden>
<br>
Possible values: 1 (Don't show again), 0 (Still show). Ex: 1
</p>

</form>


## List

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

Use this end point to get the list of users

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/process-1099/index?per_page=11&search=eaque&sort_field=nostrum&sort_method=dolorum&page=8&is_active=11&year=20&role_id=17" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json
{
    "message": "Users list",
    "data": {
        "users": {
            "current_page": 1,
            "data": [
                {
                    "id": 5,
                    "email": "taha@elegantmicroweb.com",
                    "username": "tahasethwala",
                    "is_adult": 1,
                    "phone": "9925738146",
                    "avatar": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/avatar-default.png",
                    "is_email_verified": 1,
                    "is_phone_verified": 0,
                    "email_verified_date_time": "2021-07-05 10:39:15",
                    "phone_verified_date_time": null,
                    "password_last_changed_date_time": null,
                    "created_at": "2021-07-05T10:38:53.000000Z",
                    "updated_at": "2021-07-05T10:39:15.000000Z",
                    "is_active": 1,
                    "bucks": 0,
                    "credits": 0,
                    "available_bucks": 0,
                    "available_credits": 0,
                    "open_bucks": 0,
                    "open_credits": 0,
                    "state": {
                        "id": 21,
                        "code": "MD",
                        "name": "Maryland"
                    },
                    "role": {
                        "id": 2,
                        "name": "User"
                    },
                    "leagues": [
                        {
                            "id": 3,
                            "name": "Jignesh's Team",
                            "sleeper_league_id": 706054541405143040,
                            "pivot": {
                                "user_id": 5,
                                "sleeper_league_id": 706054541405143040,
                                "is_active": 1,
                                "sleeper_username": "tahasethwala",
                                "fantasy_point_type": 30,
                                "created_at": "2021-07-05T10:40:04.000000Z",
                                "updated_at": "2021-07-05T14:42:26.000000Z",
                                "fantasy_point_type_name": "Half PPR"
                            }
                        }
                    ],
                    "foundations": [
                        {
                            "id": 3,
                            "name": "Matthew Stafford",
                            "about": "We help the underserved become self-reliant by partnering with individuals, organizations and communities to help develop their capacity for helping.",
                            "logo": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/foundation-logos\/Matthew-Stafford-1625462151.png",
                            "pivot": {
                                "user_id": 5,
                                "foundation_id": 3,
                                "created_at": "2021-07-05T10:40:10.000000Z",
                                "updated_at": "2021-07-05T10:40:10.000000Z"
                            }
                        }
                    ]
                },
                {
                    "id": 4,
                    "email": "swati@elegantmicroweb.com",
                    "username": "Swati",
                    "is_adult": 1,
                    "phone": "85134545156",
                    "avatar": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/avatar-default.png",
                    "is_email_verified": 1,
                    "is_phone_verified": 0,
                    "email_verified_date_time": "2021-07-05 05:19:49",
                    "phone_verified_date_time": null,
                    "password_last_changed_date_time": null,
                    "created_at": "2021-07-05T05:19:31.000000Z",
                    "updated_at": "2021-07-05T05:19:49.000000Z",
                    "is_active": 1,
                    "bucks": 0,
                    "credits": 0,
                    "available_bucks": 0,
                    "available_credits": 0,
                    "open_bucks": 0,
                    "open_credits": 0,
                    "state": {
                        "id": 10,
                        "code": "FL",
                        "name": "Florida"
                    },
                    "role": {
                        "id": 2,
                        "name": "User"
                    },
                    "leagues": [
                        {
                            "id": 2,
                            "name": "Twenty Nine June 2021",
                            "sleeper_league_id": 715469520269045760,
                            "pivot": {
                                "user_id": 4,
                                "sleeper_league_id": 715469520269045760,
                                "is_active": 1,
                                "sleeper_username": "tahasethwala",
                                "fantasy_point_type": 30,
                                "created_at": "2021-07-05T05:20:24.000000Z",
                                "updated_at": "2021-07-05T05:20:24.000000Z",
                                "fantasy_point_type_name": "Half PPR"
                            }
                        },
                        {
                            "id": 5,
                            "name": "ABC Football",
                            "sleeper_league_id": 710679964625772544,
                            "pivot": {
                                "user_id": 4,
                                "sleeper_league_id": 710679964625772544,
                                "is_active": 1,
                                "sleeper_username": "sahildotcom",
                                "fantasy_point_type": 30,
                                "created_at": "2021-07-05T11:25:38.000000Z",
                                "updated_at": "2021-07-05T11:25:38.000000Z",
                                "fantasy_point_type_name": "Half PPR"
                            }
                        }
                    ],
                    "foundations": [
                        {
                            "id": 1,
                            "name": "Patrick Mahomes",
                            "about": "Dedicated to improving the lives of children. The foundation supports initiatives that focus on health, wellness, and communities in need.",
                            "logo": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/foundation-logos\/Patrick-Mahomes-1625462101.png",
                            "pivot": {
                                "user_id": 4,
                                "foundation_id": 1,
                                "created_at": "2021-07-05T05:20:34.000000Z",
                                "updated_at": "2021-07-05T05:20:34.000000Z"
                            }
                        }
                    ]
                },
                {
                    "id": 3,
                    "email": "admin@bettorfantasy.com",
                    "username": "admin",
                    "is_adult": 1,
                    "phone": "123",
                    "avatar": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/images\/avatar-default.png",
                    "is_email_verified": 1,
                    "is_phone_verified": 0,
                    "email_verified_date_time": null,
                    "phone_verified_date_time": null,
                    "password_last_changed_date_time": null,
                    "created_at": "2021-07-05T05:13:32.000000Z",
                    "updated_at": "2021-07-05T05:13:32.000000Z",
                    "is_active": 1,
                    "bucks": 0,
                    "credits": 0,
                    "available_bucks": 0,
                    "available_credits": 0,
                    "open_bucks": 0,
                    "open_credits": 0,
                    "state": {
                        "id": 3,
                        "code": "AZ",
                        "name": "Arizona"
                    },
                    "role": {
                        "id": 1,
                        "name": "Admin"
                    },
                    "leagues": [],
                    "foundations": []
                }
            ],
            "first_page_url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users?per_page=3&search=&sort_field=id&sort_method=desc&is_adult=&is_email_verified=&is_phone_verified=&role_id=&state_id=&is_active=&page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users?per_page=3&search=&sort_field=id&sort_method=desc&is_adult=&is_email_verified=&is_phone_verified=&role_id=&state_id=&is_active=&page=1",
            "links": [
                {
                    "url": null,
                    "label": "pagination.previous",
                    "active": false
                },
                {
                    "url": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users?per_page=3&search=&sort_field=id&sort_method=desc&is_adult=&is_email_verified=&is_phone_verified=&role_id=&state_id=&is_active=&page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "pagination.next",
                    "active": false
                }
            ],
            "next_page_url": null,
            "path": "http:\/\/35.154.99.45\/bettorfantasy\/bettor_webapi\/public\/users",
            "per_page": 3,
            "prev_page_url": null,
            "to": 3,
            "total": 3
        }
    }
}
```
> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "per_page": [
            "The per page must be a number."
        ]
    }
}
```
> Example response (403):

```json
{
    "message": "Access Forbidden."
}
```
<div id="execution-results-GETprocess-1099-index" hidden>
    <blockquote>Received response<span id="execution-response-status-GETprocess-1099-index"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETprocess-1099-index"></code></pre>
</div>
<div id="execution-error-GETprocess-1099-index" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETprocess-1099-index"></code></pre>
</div>
<form id="form-GETprocess-1099-index" data-method="GET" data-path="process-1099/index" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETprocess-1099-index', 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-GETprocess-1099-index" onclick="tryItOut('GETprocess-1099-index');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETprocess-1099-index" onclick="cancelTryOut('GETprocess-1099-index');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETprocess-1099-index" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>process-1099/index</code></b>
</p>
<p>
<label id="auth-GETprocess-1099-index" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETprocess-1099-index" data-component="header"></label>
</p>
<h4 class="fancy-heading-panel"><b>Query Parameters</b></h4>
<p>
<b><code>per_page</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="per_page" data-endpoint="GETprocess-1099-index" data-component="query"  hidden>
<br>
Number of records per page. Send '-1' for all records. Default: 10. Ex: 15
</p>
<p>
<b><code>search</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="search" data-endpoint="GETprocess-1099-index" data-component="query"  hidden>
<br>
Search string. Search will be performed in email, username, phone. Ex: johndoe
</p>
<p>
<b><code>sort_field</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="sort_field" data-endpoint="GETprocess-1099-index" data-component="query"  hidden>
<br>
Sort by field. Possible values: id, email, username, is_adult, phone, is_email_verified, created_at, available_credits, available_bucks, available_cash, kyc_status_id. Ex: email
</p>
<p>
<b><code>sort_method</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="sort_method" data-endpoint="GETprocess-1099-index" data-component="query"  hidden>
<br>
Sort by method. Possible values: asc, desc. Ex: desc
</p>
<p>
<b><code>page</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="page" data-endpoint="GETprocess-1099-index" data-component="query"  hidden>
<br>
Page number. Ex: 2
</p>
<p>
<b><code>is_active</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="is_active" data-endpoint="GETprocess-1099-index" data-component="query"  hidden>
<br>
Possible values: 0 (Inactive), 1 (Active). Ex: 1
</p>
<p>
<b><code>year</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="year" data-endpoint="GETprocess-1099-index" data-component="query"  hidden>
<br>
Year Ex: 2023, 2024
</p>
<p>
<b><code>role_id</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="role_id" data-endpoint="GETprocess-1099-index" data-component="query"  hidden>
<br>
Role Id of the user. Ex: 1
</p>
</form>



