# New Onboarding


## Verify Phone


Use this end point to sign up. This API stores the provided phone number
in the database and sends a verification code to the given number.

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/updated-onboarding/verify-phone" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"phone":"culpa","unique_onboarding_id":"e9f3880e-a4dd-4664-b810-1373e5ccd4fb","referral_code":"cumque","otp_signature":"FtSl93sVi2G","temp_user_id":12}'

```


> Example response (201):

```json

{
      "message": "Verification code sent."
       "data": {
          "temp_user": {
             "id": 17,
              "unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
              "email": null,
              "username": null,
              "password": null,
              "phone": "9584376325",
              "referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
              "created_at": "2025-03-11T18:52:06.000000Z",
              "updated_at": "2025-03-11T18:59:01.000000Z",
              "resend_code_try": 0,
              "is_phone_verified": 1,
              "kyc_first_name": null,
              "kyc_last_name": null,
              "kyc_dob": null,
              "kyc_street_address": null
          }
      }
  }
```
> Example response (201):

```json
{
    "message": "Phone is already verified.",
    "data": {
        "temp_user": {
            "id": 17,
            "unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
            "email": "ankita17@yopmail.com",
            "username": "ankita17",
            "password": "$2y$10$G1POHDewmr640ySa9zeQO.z6ODJhdYQHhJIdC0YgKYmQITejqi4p.",
            "phone": "9584376325",
            "referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
            "created_at": "2025-03-11T18:52:06.000000Z",
            "updated_at": "2025-03-12T06:42:20.000000Z",
            "resend_code_try": 1,
            "is_phone_verified": 1,
            "kyc_first_name": "Clark",
            "kyc_last_name": "Green",
            "kyc_dob": "1976-02-11",
            "kyc_street_address": "222333 Peacht"
        }
    }
}
```
> Example response (200):

```json
{
    "message": "Reactivate Account",
    "is_reactivate_account": 1
}
```
> Example response (200):

```json
{
    "message": "Reactivate Account",
    "is_reactivate_account": 1
}
```
> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "phone": [
            "The phone field is required."
        ],
        "unique_onboarding_id": [
            "The unique_onboarding_id field is required."
        ]
    }
}
```
<div id="execution-results-POSTupdated-onboarding-verify-phone" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTupdated-onboarding-verify-phone"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTupdated-onboarding-verify-phone"></code></pre>
</div>
<div id="execution-error-POSTupdated-onboarding-verify-phone" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTupdated-onboarding-verify-phone"></code></pre>
</div>
<form id="form-POSTupdated-onboarding-verify-phone" data-method="POST" data-path="updated-onboarding/verify-phone" data-authed="0" data-hasfiles="0" data-headers='{"Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTupdated-onboarding-verify-phone', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTupdated-onboarding-verify-phone" onclick="tryItOut('POSTupdated-onboarding-verify-phone');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTupdated-onboarding-verify-phone" onclick="cancelTryOut('POSTupdated-onboarding-verify-phone');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTupdated-onboarding-verify-phone" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>updated-onboarding/verify-phone</code></b>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>phone</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="phone" data-endpoint="POSTupdated-onboarding-verify-phone" data-component="body" required  hidden>
<br>
Phone #. Max: 255. Ex: 0987654321
</p>
<p>
<b><code>unique_onboarding_id</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="unique_onboarding_id" data-endpoint="POSTupdated-onboarding-verify-phone" data-component="body" required  hidden>
<br>
Unique Onboarding ID.
</p>
<p>
<b><code>referral_code</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="referral_code" data-endpoint="POSTupdated-onboarding-verify-phone" data-component="body"  hidden>
<br>
Referral code. Ex: ebb21986-f43f-44a9-94b9-87e27646939f
</p>
<p>
<b><code>otp_signature</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="otp_signature" data-endpoint="POSTupdated-onboarding-verify-phone" data-component="body"  hidden>
<br>
Otp Signature.
</p>
<p>
<b><code>temp_user_id</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="temp_user_id" data-endpoint="POSTupdated-onboarding-verify-phone" data-component="body"  hidden>
<br>
User Id.
</p>

</form>


## Verify Code


Use this end point to verify the verification code (OTP)

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/updated-onboarding/verify-code" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"temp_user_id":18,"otp":"iusto","phone":"et","is_reactivate_account":1,"fcm_token":"non"}'

```


> Example response (200):

```json
{
    "message": "Phone number verified successfully.",
    "data": {
        "temp_user": {
            "id": 17,
            "unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
            "email": null,
            "username": null,
            "password": null,
            "phone": "9584376325",
            "referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
            "created_at": "2025-03-11T18:52:06.000000Z",
            "updated_at": "2025-03-11T18:59:01.000000Z",
            "resend_code_try": 0,
            "is_phone_verified": 1,
            "kyc_first_name": null,
            "kyc_last_name": null,
            "kyc_dob": null,
            "kyc_street_address": null
        }
    }
}
```
> Example response (404):

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

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

```json

{
      "message": "Validation Failed!",
      "errors": {
          "temp_user_id": [
              "The temp_user_id field is required."
          ],
         "phone": [
              "The phone field is required when is reactivate account is 1."
          ],
          "otp": [
              "The otp field is required."
          ],
"        phone": [
              "The phone field is required when is reactivate account is 1."
          ],
      }
  }
```
<div id="execution-results-POSTupdated-onboarding-verify-code" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTupdated-onboarding-verify-code"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTupdated-onboarding-verify-code"></code></pre>
</div>
<div id="execution-error-POSTupdated-onboarding-verify-code" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTupdated-onboarding-verify-code"></code></pre>
</div>
<form id="form-POSTupdated-onboarding-verify-code" data-method="POST" data-path="updated-onboarding/verify-code" data-authed="0" data-hasfiles="0" data-headers='{"Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTupdated-onboarding-verify-code', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTupdated-onboarding-verify-code" onclick="tryItOut('POSTupdated-onboarding-verify-code');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTupdated-onboarding-verify-code" onclick="cancelTryOut('POSTupdated-onboarding-verify-code');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTupdated-onboarding-verify-code" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>updated-onboarding/verify-code</code></b>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>temp_user_id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="temp_user_id" data-endpoint="POSTupdated-onboarding-verify-code" data-component="body" required  hidden>
<br>
User ID. Ex: 123
</p>
<p>
<b><code>otp</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="otp" data-endpoint="POSTupdated-onboarding-verify-code" data-component="body" required  hidden>
<br>
Verification code. Ex: 2633
</p>
<p>
<b><code>phone</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="phone" data-endpoint="POSTupdated-onboarding-verify-code" data-component="body"  hidden>
<br>
Phone #. Max: 255. Ex: 0987654321
</p>
<p>
<b><code>is_reactivate_account</code></b>&nbsp;&nbsp;<small>integer</small>     <i>optional</i> &nbsp;
<input type="number" name="is_reactivate_account" data-endpoint="POSTupdated-onboarding-verify-code" data-component="body"  hidden>
<br>
Possible values: 1 (is_reactivate_account). Ex: 1
</p>
<p>
<b><code>fcm_token</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="fcm_token" data-endpoint="POSTupdated-onboarding-verify-code" data-component="body"  hidden>
<br>
Firebase cloud messaging token. Ex: asdas65d321ad8asdas35d1a65as4da56d1
</p>

</form>


## Update Email


Use this end point to update user's email

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/updated-onboarding/update-email" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"temp_user_id":9,"email":"est"}'

```


> Example response (201):

```json
{
    "message": "Email Updated!",
    "data": {
        "temp_user": {
            "id": 17,
            "unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
            "email": "ankita17@yopmail.com",
            "username": null,
            "password": null,
            "phone": "9584376325",
            "referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
            "created_at": "2025-03-11T18:52:06.000000Z",
            "updated_at": "2025-03-11T19:20:40.000000Z",
            "resend_code_try": 0,
            "is_phone_verified": 1,
            "kyc_first_name": null,
            "kyc_last_name": null,
            "kyc_dob": null,
            "kyc_street_address": null
        }
    }
}
```
> Example response (422):

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

</form>


## Update Username


Use this end point to update user's username

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/updated-onboarding/update-username" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"temp_user_id":18,"username":"molestiae"}'

```


> Example response (201):

```json
{
    "message": "Username updated successfully!",
    "data": {
        "temp_user": {
            "id": 17,
            "unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
            "email": "ankita17@yopmail.com",
            "username": "ankita17",
            "password": null,
            "phone": "9584376325",
            "referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
            "created_at": "2025-03-11T18:52:06.000000Z",
            "updated_at": "2025-03-11T19:20:40.000000Z",
            "resend_code_try": 0,
            "is_phone_verified": 1,
            "kyc_first_name": null,
            "kyc_last_name": null,
            "kyc_dob": null,
            "kyc_street_address": null
        }
    }
}
```
> Example response (422):

```json

{
      "message": "Validation Failed!",
      "errors": {
          "temp_user_id": [
              "The temp_user_id field is required."
          ]
          "username": [
              "The username field is required."
          ]
      }
  }
```
<div id="execution-results-POSTupdated-onboarding-update-username" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTupdated-onboarding-update-username"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTupdated-onboarding-update-username"></code></pre>
</div>
<div id="execution-error-POSTupdated-onboarding-update-username" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTupdated-onboarding-update-username"></code></pre>
</div>
<form id="form-POSTupdated-onboarding-update-username" data-method="POST" data-path="updated-onboarding/update-username" data-authed="0" data-hasfiles="0" data-headers='{"Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTupdated-onboarding-update-username', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTupdated-onboarding-update-username" onclick="tryItOut('POSTupdated-onboarding-update-username');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTupdated-onboarding-update-username" onclick="cancelTryOut('POSTupdated-onboarding-update-username');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTupdated-onboarding-update-username" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>updated-onboarding/update-username</code></b>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>temp_user_id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="temp_user_id" data-endpoint="POSTupdated-onboarding-update-username" data-component="body" required  hidden>
<br>
User ID. Ex: 123
</p>
<p>
<b><code>username</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="username" data-endpoint="POSTupdated-onboarding-update-username" data-component="body" required  hidden>
<br>
Username of the user. Min: 5. Max: 25. Alphanumeric. No space in between Ex: johndotcom
</p>

</form>


## Update Password


Use this end point to update user password

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/updated-onboarding/update-password" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"temp_user_id":4,"password":"consequuntur","password_confirmation":"distinctio"}'

```


> Example response (201):

```json
{
    "message": "Password updated successfully!",
    "data": {
        "temp_user": {
            "id": 17,
            "unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
            "email": "ankita17@yopmail.com",
            "username": "ankita17",
            "password": "$2y$10$G1POHDewmr640ySa9zeQO.z6ODJhdYQHhJIdC0YgKYmQITejqi4p.",
            "phone": "9584376325",
            "referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
            "created_at": "2025-03-11T18:52:06.000000Z",
            "updated_at": "2025-03-11T19:20:40.000000Z",
            "resend_code_try": 0,
            "is_phone_verified": 1,
            "kyc_first_name": null,
            "kyc_last_name": null,
            "kyc_dob": null,
            "kyc_street_address": null
        }
    }
}
```
> Example response (422):

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

</form>


## Resend Verification Code


Use this end point to resend the verification code (OTP)

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/updated-onboarding/resend-verification-code" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"temp_user_id":16,"otp_signature":"FtSl93sVi2G"}'

```


> Example response (200):

```json
{
    "message": "Verification code sent!"
}
```
> Example response (404):

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

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

</form>


## Create Account


This endpoint completes the user registration process.

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/updated-onboarding/create-account" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"temp_user_id":123,"kyc_dob":"omnis","fcm_token":"asdas65d321ad8asdas35d1a65as4da56d1"}'

```


> Example response (200):

```json
{
    "message": "Sign in successful!",
    "data": {
        "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...",
        "token_type": "bearer",
        "expires_in": 3600,
        "user": {
            "id": 1,
            "email": "john_doe@yopmail.com",
            "username": "johndoe",
            "is_adult": 1,
            "phone": "9925738146",
            "avatar": null,
            "is_email_verified": 0,
            "is_phone_verified": 1,
            "email_verified_date_time": null,
            "phone_verified_date_time": null,
            "password_last_changed_date_time": null,
            "created_at": "2021-05-31T07:23:15.000000Z",
            "updated_at": "2021-05-31T07:23:15.000000Z",
            "kyc": {
                "kyc_status_id": null,
                "is_kyc_locked": null,
                "kyc_lock_remark": null,
                "kyc_first_name": null,
                "kyc_last_name": null,
                "kyc_dob": "11\/02\/1976",
                "kyc_street_address": null,
                "kyc_full_address": null,
                "kyc_state_id": null,
                "kyc_city": null,
                "kyc_zip": null,
                "kyc_address_place_id": null,
                "kyc_attempts": 0
            },
            "state": {
                "id": 3,
                "code": "AZ",
                "name": "Arizona"
            },
            "role": {
                "id": 2,
                "name": "User"
            }
        }
    }
}
```
> Example response (404):

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

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

```json
{
    "message": "The email is already taken."
}
```
> Example response (422):

```json
{
    "message": "The username is already taken."
}
```
> Example response (422):

```json
{
    "message": "The phone number is already taken."
}
```
<div id="execution-results-POSTupdated-onboarding-create-account" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTupdated-onboarding-create-account"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTupdated-onboarding-create-account"></code></pre>
</div>
<div id="execution-error-POSTupdated-onboarding-create-account" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTupdated-onboarding-create-account"></code></pre>
</div>
<form id="form-POSTupdated-onboarding-create-account" data-method="POST" data-path="updated-onboarding/create-account" data-authed="0" data-hasfiles="0" data-headers='{"Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTupdated-onboarding-create-account', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTupdated-onboarding-create-account" onclick="tryItOut('POSTupdated-onboarding-create-account');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTupdated-onboarding-create-account" onclick="cancelTryOut('POSTupdated-onboarding-create-account');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTupdated-onboarding-create-account" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>updated-onboarding/create-account</code></b>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>temp_user_id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="temp_user_id" data-endpoint="POSTupdated-onboarding-create-account" data-component="body" required  hidden>
<br>
The temporary user ID assigned during the onboarding process.
</p>
<p>
<b><code>kyc_dob</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="kyc_dob" data-endpoint="POSTupdated-onboarding-create-account" data-component="body" required  hidden>
<br>
Date of birth. Format: MM/DD/YYYY. Ex: 12/05/1957
</p>
<p>
<b><code>fcm_token</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="fcm_token" data-endpoint="POSTupdated-onboarding-create-account" data-component="body"  hidden>
<br>
nullable The Firebase Cloud Messaging (FCM) token for push notifications.
</p>

</form>


## Update Kyc Name


Use this end point to update kyc name

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/updated-onboarding/update-kyc-name" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"temp_user_id":18,"kyc_first_name":"eos","kyc_last_name":"voluptatem"}'

```


> Example response (201):

```json
{
    "message": "Kyc name updated successfully!",
    "data": {
        "temp_user": {
            "id": 17,
            "unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
            "email": "ankita17@yopmail.com",
            "username": "ankita17",
            "password": null,
            "phone": "9584376325",
            "referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
            "created_at": "2025-03-11T18:52:06.000000Z",
            "updated_at": "2025-03-11T19:20:40.000000Z",
            "resend_code_try": 0,
            "is_phone_verified": 1,
            "kyc_first_name": "Clark",
            "kyc_last_name": "Green",
            "kyc_dob": null,
            "kyc_street_address": null
        }
    }
}
```
> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "temp_user_id": [
            "The temp_user_id field is required."
        ],
        "kyc_first_name": [
            "The kyc_first_name field is required."
        ],
        "kyc_last_name": [
            "The kyc_last_name field is required."
        ]
    }
}
```
<div id="execution-results-POSTupdated-onboarding-update-kyc-name" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTupdated-onboarding-update-kyc-name"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTupdated-onboarding-update-kyc-name"></code></pre>
</div>
<div id="execution-error-POSTupdated-onboarding-update-kyc-name" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTupdated-onboarding-update-kyc-name"></code></pre>
</div>
<form id="form-POSTupdated-onboarding-update-kyc-name" data-method="POST" data-path="updated-onboarding/update-kyc-name" data-authed="0" data-hasfiles="0" data-headers='{"Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTupdated-onboarding-update-kyc-name', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTupdated-onboarding-update-kyc-name" onclick="tryItOut('POSTupdated-onboarding-update-kyc-name');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTupdated-onboarding-update-kyc-name" onclick="cancelTryOut('POSTupdated-onboarding-update-kyc-name');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTupdated-onboarding-update-kyc-name" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>updated-onboarding/update-kyc-name</code></b>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>temp_user_id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="temp_user_id" data-endpoint="POSTupdated-onboarding-update-kyc-name" data-component="body" required  hidden>
<br>
User ID. Ex: 123
</p>
<p>
<b><code>kyc_first_name</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="kyc_first_name" data-endpoint="POSTupdated-onboarding-update-kyc-name" data-component="body" required  hidden>
<br>
First Name of the user. Min: 5. Max: 25. Alphanumeric. No space in between Ex: Clark
</p>
<p>
<b><code>kyc_last_name</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="kyc_last_name" data-endpoint="POSTupdated-onboarding-update-kyc-name" data-component="body" required  hidden>
<br>
Last Name of the user. Min: 5. Max: 25. Alphanumeric. No space in between Ex: Green
</p>

</form>


## Update Kyc DOB


Use this end point to update kyc dob

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/updated-onboarding/update-kyc-dob" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"temp_user_id":13,"kyc_dob":"nisi"}'

```


> Example response (201):

```json
{
    "message": "Kyc dob updated successfully!",
    "data": {
        "temp_user": {
            "id": 17,
            "unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
            "email": "ankita17@yopmail.com",
            "username": "ankita17",
            "password": null,
            "phone": "9584376325",
            "referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
            "created_at": "2025-03-11T18:52:06.000000Z",
            "updated_at": "2025-03-11T19:20:40.000000Z",
            "resend_code_try": 0,
            "is_phone_verified": 1,
            "kyc_first_name": "Clark",
            "kyc_last_name": "Green",
            "kyc_dob": "02\/11\/1976",
            "kyc_street_address": null
        }
    }
}
```
> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "temp_user_id": [
            "The temp_user_id field is required."
        ],
        "kyc_dob": [
            "The kyc_dob field is required."
        ]
    }
}
```
<div id="execution-results-POSTupdated-onboarding-update-kyc-dob" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTupdated-onboarding-update-kyc-dob"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTupdated-onboarding-update-kyc-dob"></code></pre>
</div>
<div id="execution-error-POSTupdated-onboarding-update-kyc-dob" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTupdated-onboarding-update-kyc-dob"></code></pre>
</div>
<form id="form-POSTupdated-onboarding-update-kyc-dob" data-method="POST" data-path="updated-onboarding/update-kyc-dob" data-authed="0" data-hasfiles="0" data-headers='{"Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTupdated-onboarding-update-kyc-dob', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTupdated-onboarding-update-kyc-dob" onclick="tryItOut('POSTupdated-onboarding-update-kyc-dob');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTupdated-onboarding-update-kyc-dob" onclick="cancelTryOut('POSTupdated-onboarding-update-kyc-dob');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTupdated-onboarding-update-kyc-dob" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>updated-onboarding/update-kyc-dob</code></b>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>temp_user_id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="temp_user_id" data-endpoint="POSTupdated-onboarding-update-kyc-dob" data-component="body" required  hidden>
<br>
User ID. Ex: 123
</p>
<p>
<b><code>kyc_dob</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="kyc_dob" data-endpoint="POSTupdated-onboarding-update-kyc-dob" data-component="body" required  hidden>
<br>
Date of birth. Format: MM/DD/YYYY. Ex: 12/05/1957
</p>

</form>


## Update Kyc Street Address


Use this end point to update kyc street address

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/updated-onboarding/update-kyc-address" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"temp_user_id":2,"kyc_full_address":"qui","kyc_street_address":"placeat","kyc_zip":"dolores","kyc_state":"fugit","kyc_city":"eligendi","kyc_address_place_id":"et"}'

```


> Example response (201):

```json

{
      "message": "Kyc street address updated successfully!",
         "data": {
             "temp_user": {
                 "id": 17,
                 "unique_onboarding_id": "f444d30b-15cf-430a-b3e6-220355dc435b",
                 "email": "ankita17@yopmail.com",
                 "username": "ankita17",
                 "password": null,
                 "phone": "9584376325",
                 "referral_code": "5c586966-f116-49c5-a620-dc252b65ddc9",
                 "created_at": "2025-03-11T18:52:06.000000Z",
                 "updated_at": "2025-03-11T19:20:40.000000Z",
                 "resend_code_try": 0,
                 "is_phone_verified": 1,
                 "kyc_first_name": "Clark",
                 "kyc_last_name": "Green",
                 "kyc_dob": "02/11/1976",
                 "kyc_full_address": "539 Mission Drive, San Gabriel, Los Angeles, California",
                 "kyc_street_address": "539 Mission Drive",
                 "kyc_state_id": 5,
                 "kyc_city": "San Francisco",
                 "kyc_zip": "91119",
                 "kyc_address_place_id": "ChIJgUbEo8cfqokR5lP9_Wh_DaM",
             }
         }
      }
```
> Example response (422):

```json
{
    "message": "Validation Failed!",
    "errors": {
        "temp_user_id": [
            "The temp_user_id field is required."
        ],
        "kyc_full_address": [
            "The kyc_full_address field is required."
        ],
        "kyc_street_address": [
            "The street address field is required."
        ],
        "kyc_state": [
            "The state field is required."
        ],
        "kyc_city": [
            "The city field is required."
        ],
        "kyc_zip": [
            "The zip field is required."
        ]
    }
}
```
<div id="execution-results-POSTupdated-onboarding-update-kyc-address" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTupdated-onboarding-update-kyc-address"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTupdated-onboarding-update-kyc-address"></code></pre>
</div>
<div id="execution-error-POSTupdated-onboarding-update-kyc-address" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTupdated-onboarding-update-kyc-address"></code></pre>
</div>
<form id="form-POSTupdated-onboarding-update-kyc-address" data-method="POST" data-path="updated-onboarding/update-kyc-address" data-authed="0" data-hasfiles="0" data-headers='{"Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTupdated-onboarding-update-kyc-address', this);">
<h3>
    Request&nbsp;&nbsp;&nbsp;
        <button type="button" style="background-color: #8fbcd4; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-tryout-POSTupdated-onboarding-update-kyc-address" onclick="tryItOut('POSTupdated-onboarding-update-kyc-address');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTupdated-onboarding-update-kyc-address" onclick="cancelTryOut('POSTupdated-onboarding-update-kyc-address');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTupdated-onboarding-update-kyc-address" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>updated-onboarding/update-kyc-address</code></b>
</p>
<h4 class="fancy-heading-panel"><b>Body Parameters</b></h4>
<p>
<b><code>temp_user_id</code></b>&nbsp;&nbsp;<small>integer</small>  &nbsp;
<input type="number" name="temp_user_id" data-endpoint="POSTupdated-onboarding-update-kyc-address" data-component="body" required  hidden>
<br>
User ID. Ex: 123
</p>
<p>
<b><code>kyc_full_address</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="kyc_full_address" data-endpoint="POSTupdated-onboarding-update-kyc-address" data-component="body" required  hidden>
<br>
Street address of the user.
</p>
<p>
<b><code>kyc_street_address</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="kyc_street_address" data-endpoint="POSTupdated-onboarding-update-kyc-address" data-component="body" required  hidden>
<br>
Street address of the user. Max: 40 character. Ex: 81 Flat Rock
</p>
<p>
<b><code>kyc_zip</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="kyc_zip" data-endpoint="POSTupdated-onboarding-update-kyc-address" data-component="body" required  hidden>
<br>
Kyc Zip code of the user. 5 digits (numbers only). Ex: 91119
</p>
<p>
<b><code>kyc_state</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="kyc_state" data-endpoint="POSTupdated-onboarding-update-kyc-address" data-component="body" required  hidden>
<br>
Kyc State of the user. Max: 40 character. Ex: California
</p>
<p>
<b><code>kyc_city</code></b>&nbsp;&nbsp;<small>string</small>  &nbsp;
<input type="text" name="kyc_city" data-endpoint="POSTupdated-onboarding-update-kyc-address" data-component="body" required  hidden>
<br>
Kyc City of the user. Max: 40 character. Ex: San Francisco
</p>
<p>
<b><code>kyc_address_place_id</code></b>&nbsp;&nbsp;<small>string</small>     <i>optional</i> &nbsp;
<input type="text" name="kyc_address_place_id" data-endpoint="POSTupdated-onboarding-update-kyc-address" data-component="body"  hidden>
<br>
Kyc address place id of the user. Ex: ChIJgUbEo8cfqokR5lP9_Wh_DaM
</p>

</form>



