# Transaction


## List

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

Use this end point to get the list of transactions

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/transactions?per_page=2&search=incidunt&sort_field=et&sort_method=quo&page=15&type=2&currency_type=3&user_id=10&created_at=suscipit&created_at_from=at&created_at_to=id" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json
{
    "message": "Transaction list",
    "data": {
        "transactions": {
            "current_page": 1,
            "data": [
                {
                    "id": 1,
                    "user_id": 1,
                    "type": 10,
                    "description": "Initital Balance",
                    "currency_type": 20,
                    "value": 200,
                    "created_by": 2,
                    "updated_by": 2,
                    "created_at": "2021-07-07T07:40:25.000000Z",
                    "updated_at": "2021-07-07T07:40:25.000000Z",
                    "currency_type_name": "Credits",
                    "type_name": "Admin",
                    "user": {
                        "id": 1,
                        "email": "taha@elegantmicroweb.com",
                        "username": "tahasethwala",
                        "is_adult": 1,
                        "phone": "9925738146",
                        "avatar": "http:\/\/127.0.0.1:8000\/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-07T07:33:20.000000Z",
                        "updated_at": "2021-07-07T07:40:25.000000Z",
                        "is_active": 1,
                        "bucks": 0,
                        "credits": 200,
                        "available_bucks": 0,
                        "available_credits": 200,
                        "open_bucks": 0,
                        "open_credits": 0
                    },
                    "added_by": {
                        "id": 2,
                        "username": "admin",
                        "email": "admin@bettorfantasy.com"
                    }
                }
            ],
            "first_page_url": "http:\/\/127.0.0.1:8000\/transactions?per_page=10&search=&sort_field=id&sort_method=asc&type=&currency_type=&user_id=&page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http:\/\/127.0.0.1:8000\/transactions?per_page=10&search=&sort_field=id&sort_method=asc&type=&currency_type=&user_id=&page=1",
            "links": [
                {
                    "url": null,
                    "label": "pagination.previous",
                    "active": false
                },
                {
                    "url": "http:\/\/127.0.0.1:8000\/transactions?per_page=10&search=&sort_field=id&sort_method=asc&type=&currency_type=&user_id=&page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "pagination.next",
                    "active": false
                }
            ],
            "next_page_url": null,
            "path": "http:\/\/127.0.0.1:8000\/transactions",
            "per_page": 10,
            "prev_page_url": null,
            "to": 1,
            "total": 1
        }
    }
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "currency_type": [
            "The selected currency type is invalid."
        ]
    }
}
```
<div id="execution-results-GETtransactions" hidden>
    <blockquote>Received response<span id="execution-response-status-GETtransactions"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETtransactions"></code></pre>
</div>
<div id="execution-error-GETtransactions" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETtransactions"></code></pre>
</div>
<form id="form-GETtransactions" data-method="GET" data-path="transactions" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETtransactions', 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-GETtransactions" onclick="tryItOut('GETtransactions');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETtransactions" onclick="cancelTryOut('GETtransactions');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETtransactions" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>transactions</code></b>
</p>
<p>
<label id="auth-GETtransactions" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETtransactions" 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="GETtransactions" 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="GETtransactions" data-component="query"  hidden>
<br>
Search string searched in value, description, user:username, email, addedBy:username, email. Ex: tahasethwala
</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="GETtransactions" data-component="query"  hidden>
<br>
Sort by field. Possible values: id, user_id, type, currency_type, value, created_at, description. Ex: value
</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="GETtransactions" 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="GETtransactions" data-component="query"  hidden>
<br>
Page number. Works if paginate is set to 1. Ex: 2
</p>
<p>
<b><code>type</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="type" data-endpoint="GETtransactions" data-component="query"  hidden>
<br>
Transaction type. Possible values: 10 (Admin), 20 (Betting), 30 (Challenge), 40 (Shop), 50 (Recruit). Ex: 10
</p>
<p>
<b><code>currency_type</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="currency_type" data-endpoint="GETtransactions" data-component="query"  hidden>
<br>
Currency type. Possible values: 20 (coins), 30 (Cash). Ex: 10
</p>
<p>
<b><code>user_id</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="user_id" data-endpoint="GETtransactions" data-component="query"  hidden>
<br>
User ID. Ex: 14
</p>
<p>
<b><code>created_at</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="created_at" data-endpoint="GETtransactions" data-component="query"  hidden>
<br>
Filter by date (Format YYYY-MM-DD): Ex: 2021-07-05
</p>
<p>
<b><code>created_at_from</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="created_at_from" data-endpoint="GETtransactions" data-component="query"  hidden>
<br>
Filter by from date (Format YYYY-MM-DD), Requires:created_at_to  Ex: 2021-07-04
</p>
<p>
<b><code>created_at_to</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="created_at_to" data-endpoint="GETtransactions" data-component="query"  hidden>
<br>
Filter by to date (Format YYYY-MM-DD), Requires:created_at_from Ex: 2021-07-07
</p>
</form>


## Store

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

Use this end point to store a transaction

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/transactions/store" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"user_id":7,"type":20,"currency_type":14,"value":4,"description":"deleniti"}'

```


> Example response (201):

```json
{
    "message": "Transaction stored successfully",
    "data": {
        "bucks": 0,
        "credits": -150,
        "available_bucks": 0,
        "available_credits": -250,
        "open_bucks": 0,
        "open_credits": 100
    }
}
```
> Example response (422):

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

```json
{
    "message": "User not found"
}
```
<div id="execution-results-POSTtransactions-store" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTtransactions-store"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTtransactions-store"></code></pre>
</div>
<div id="execution-error-POSTtransactions-store" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTtransactions-store"></code></pre>
</div>
<form id="form-POSTtransactions-store" data-method="POST" data-path="transactions/store" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTtransactions-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-POSTtransactions-store" onclick="tryItOut('POSTtransactions-store');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTtransactions-store" onclick="cancelTryOut('POSTtransactions-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-POSTtransactions-store" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>transactions/store</code></b>
</p>
<p>
<label id="auth-POSTtransactions-store" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTtransactions-store" 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="POSTtransactions-store" data-component="body" required  hidden>
<br>
User ID. Ex: 123
</p>
<p>
<b><code>type</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="type" data-endpoint="POSTtransactions-store" data-component="body" required  hidden>
<br>
Transaction Type. Possible values: 10 (Admin), 20 (Betting) Ex: 10
</p>
<p>
<b><code>currency_type</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="currency_type" data-endpoint="POSTtransactions-store" data-component="body" required  hidden>
<br>
Currency type. Possible valus: 20 (coins), 30 (Cash). Ex: 10
</p>
<p>
<b><code>value</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="value" data-endpoint="POSTtransactions-store" data-component="body" required  hidden>
<br>
Transaction value. Can be a positive or negative number with decimals. Ex: -50, 12.85, 6521
</p>
<p>
<b><code>description</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="description" data-endpoint="POSTtransactions-store" data-component="body"  hidden>
<br>
Description of Transaction. Ex: Initital Balance
</p>

</form>


## Admin Notes Store

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

Use this end point to store a admin added notes

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/transactions/admin-notes-store" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"user_id":9,"note":"qui"}'

```


> Example response (201):

```json
{
    "message": "Notes Added successfully"
}
```
> Example response (422):

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

```json
{
    "message": "User not found"
}
```
<div id="execution-results-POSTtransactions-admin-notes-store" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTtransactions-admin-notes-store"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTtransactions-admin-notes-store"></code></pre>
</div>
<div id="execution-error-POSTtransactions-admin-notes-store" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTtransactions-admin-notes-store"></code></pre>
</div>
<form id="form-POSTtransactions-admin-notes-store" data-method="POST" data-path="transactions/admin-notes-store" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTtransactions-admin-notes-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-POSTtransactions-admin-notes-store" onclick="tryItOut('POSTtransactions-admin-notes-store');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTtransactions-admin-notes-store" onclick="cancelTryOut('POSTtransactions-admin-notes-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-POSTtransactions-admin-notes-store" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>transactions/admin-notes-store</code></b>
</p>
<p>
<label id="auth-POSTtransactions-admin-notes-store" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTtransactions-admin-notes-store" 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="POSTtransactions-admin-notes-store" data-component="body" required  hidden>
<br>
User ID. Ex: 123
</p>
<p>
<b><code>note</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="note" data-endpoint="POSTtransactions-admin-notes-store" data-component="body" required  hidden>
<br>
Note. Ex: Initital Balance
</p>

</form>


## Notes List

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

Use this end point to get the list of transactions

> Example request:

```bash
curl -X GET \
    -G "https://apiqa.bettorfantasy.com/transactions/admin-notes?per_page=6&search=omnis&sort_field=assumenda&sort_method=voluptatem&page=13&type=10&currency_type=13&user_id=1&created_at=voluptatum&created_at_from=accusamus&created_at_to=adipisci" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json"
```


> Example response (200):

```json
{
    "message": "Notes List",
    "data": {
        "transactions": {
            "current_page": 1,
            "data": [
                {
                    "id": 1,
                    "user_id": 1,
                    "type": 10,
                    "description": "Initital Balance",
                    "currency_type": 20,
                    "value": 200,
                    "created_by": 2,
                    "updated_by": 2,
                    "created_at": "2021-07-07T07:40:25.000000Z",
                    "updated_at": "2021-07-07T07:40:25.000000Z",
                    "currency_type_name": "Credits",
                    "type_name": "Admin",
                    "user": {
                        "id": 1,
                        "email": "taha@elegantmicroweb.com",
                        "username": "tahasethwala",
                        "is_adult": 1,
                        "phone": "9925738146",
                        "avatar": "http:\/\/127.0.0.1:8000\/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-07T07:33:20.000000Z",
                        "updated_at": "2021-07-07T07:40:25.000000Z",
                        "is_active": 1,
                        "bucks": 0,
                        "credits": 200,
                        "available_bucks": 0,
                        "available_credits": 200,
                        "open_bucks": 0,
                        "open_credits": 0
                    },
                    "added_by": {
                        "id": 2,
                        "username": "admin",
                        "email": "admin@bettorfantasy.com"
                    }
                }
            ],
            "first_page_url": "http:\/\/127.0.0.1:8000\/transactions?per_page=10&search=&sort_field=id&sort_method=asc&type=&currency_type=&user_id=&page=1",
            "from": 1,
            "last_page": 1,
            "last_page_url": "http:\/\/127.0.0.1:8000\/transactions?per_page=10&search=&sort_field=id&sort_method=asc&type=&currency_type=&user_id=&page=1",
            "links": [
                {
                    "url": null,
                    "label": "pagination.previous",
                    "active": false
                },
                {
                    "url": "http:\/\/127.0.0.1:8000\/transactions?per_page=10&search=&sort_field=id&sort_method=asc&type=&currency_type=&user_id=&page=1",
                    "label": "1",
                    "active": true
                },
                {
                    "url": null,
                    "label": "pagination.next",
                    "active": false
                }
            ],
            "next_page_url": null,
            "path": "http:\/\/127.0.0.1:8000\/transactions",
            "per_page": 10,
            "prev_page_url": null,
            "to": 1,
            "total": 1
        }
    }
}
```
> Example response (422):

```json
{
    "message": "Please enter required information",
    "errors": {
        "currency_type": [
            "The selected currency type is invalid."
        ]
    }
}
```
<div id="execution-results-GETtransactions-admin-notes" hidden>
    <blockquote>Received response<span id="execution-response-status-GETtransactions-admin-notes"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-GETtransactions-admin-notes"></code></pre>
</div>
<div id="execution-error-GETtransactions-admin-notes" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-GETtransactions-admin-notes"></code></pre>
</div>
<form id="form-GETtransactions-admin-notes" data-method="GET" data-path="transactions/admin-notes" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('GETtransactions-admin-notes', 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-GETtransactions-admin-notes" onclick="tryItOut('GETtransactions-admin-notes');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-GETtransactions-admin-notes" onclick="cancelTryOut('GETtransactions-admin-notes');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-GETtransactions-admin-notes" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-green">GET</small>
 <b><code>transactions/admin-notes</code></b>
</p>
<p>
<label id="auth-GETtransactions-admin-notes" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="GETtransactions-admin-notes" 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="GETtransactions-admin-notes" 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="GETtransactions-admin-notes" data-component="query"  hidden>
<br>
Search string searched in value, description, user:username, email, addedBy:username, email. Ex: tahasethwala
</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="GETtransactions-admin-notes" data-component="query"  hidden>
<br>
Sort by field. Possible values: id, user_id, type, currency_type, value, created_at, description. Ex: value
</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="GETtransactions-admin-notes" 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="GETtransactions-admin-notes" data-component="query"  hidden>
<br>
Page number. Works if paginate is set to 1. Ex: 2
</p>
<p>
<b><code>type</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="type" data-endpoint="GETtransactions-admin-notes" data-component="query"  hidden>
<br>
Transaction type. Possible values: 10 (Admin), 20 (Betting), 30 (Challenge), 40 (Shop), 50 (Recruit). Ex: 10
</p>
<p>
<b><code>currency_type</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="currency_type" data-endpoint="GETtransactions-admin-notes" data-component="query"  hidden>
<br>
Currency type. Possible values: 20 (coins), 30 (Cash). Ex: 10
</p>
<p>
<b><code>user_id</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="user_id" data-endpoint="GETtransactions-admin-notes" data-component="query"  hidden>
<br>
User ID. Ex: 14
</p>
<p>
<b><code>created_at</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="created_at" data-endpoint="GETtransactions-admin-notes" data-component="query"  hidden>
<br>
Filter by date (Format YYYY-MM-DD): Ex: 2021-07-05
</p>
<p>
<b><code>created_at_from</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="created_at_from" data-endpoint="GETtransactions-admin-notes" data-component="query"  hidden>
<br>
Filter by from date (Format YYYY-MM-DD), Requires:created_at_to  Ex: 2021-07-04
</p>
<p>
<b><code>created_at_to</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="created_at_to" data-endpoint="GETtransactions-admin-notes" data-component="query"  hidden>
<br>
Filter by to date (Format YYYY-MM-DD), Requires:created_at_from Ex: 2021-07-07
</p>
</form>


## Store

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

Use this end point to store a transaction

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/process-1099/update-status" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"user_id":11,"year":7,"w_nine_status":11,"one_zero_nine_nine_status":13}'

```


> Example response (201):

```json

{
      "message": "Status Updated!",
  }
```
> Example response (422):

```json

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

```json
{
    "message": "User not found"
}
```
<div id="execution-results-POSTprocess-1099-update-status" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTprocess-1099-update-status"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTprocess-1099-update-status"></code></pre>
</div>
<div id="execution-error-POSTprocess-1099-update-status" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTprocess-1099-update-status"></code></pre>
</div>
<form id="form-POSTprocess-1099-update-status" data-method="POST" data-path="process-1099/update-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('POSTprocess-1099-update-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-POSTprocess-1099-update-status" onclick="tryItOut('POSTprocess-1099-update-status');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTprocess-1099-update-status" onclick="cancelTryOut('POSTprocess-1099-update-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-POSTprocess-1099-update-status" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>process-1099/update-status</code></b>
</p>
<p>
<label id="auth-POSTprocess-1099-update-status" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTprocess-1099-update-status" 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="POSTprocess-1099-update-status" data-component="body" required  hidden>
<br>
User ID. Ex: 123
</p>
<p>
<b><code>year</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="year" data-endpoint="POSTprocess-1099-update-status" data-component="body" required  hidden>
<br>
Year. Ex: 2024
</p>
<p>
<b><code>w_nine_status</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="w_nine_status" data-endpoint="POSTprocess-1099-update-status" data-component="body" required  hidden>
<br>
w_nine_status. Ex: Not started, Pending, Completed
</p>
<p>
<b><code>one_zero_nine_nine_status</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="one_zero_nine_nine_status" data-endpoint="POSTprocess-1099-update-status" data-component="body" required  hidden>
<br>
one_zero_nine_nine_status. Ex: Not started, Pending, Completed, Not Required
</p>

</form>



