# Free Play


## Claim Free Play Promo

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

Use this endpoint to claim a free play promo and receive credits.

> Example request:

```bash
curl -X POST \
    "https://apiqa.bettorfantasy.com/free-play-promo/claim" \
    -H "Authorization: Bearer {YOUR_AUTH_KEY}" \
    -H "Content-Type: application/json" \
    -H "Accept: application/json" \
    -d '{"id":5}'

```


> Example response (200):

```json
{
    "message": "Free play credits awarded"
}
```
> Example response (404):

```json
{
    "message": "Free play promo not available"
}
```
> Example response (422):

```json
{
    "message": "Promo already claimed"
}
```
> Example response (422):

```json
{
    "message": "User is not eligible for this promo"
}
```
> Example response (422):

```json
{
    "message": "Unable to resolve credit bucket"
}
```
<div id="execution-results-POSTfree-play-promo-claim" hidden>
    <blockquote>Received response<span id="execution-response-status-POSTfree-play-promo-claim"></span>:</blockquote>
    <pre class="json"><code id="execution-response-content-POSTfree-play-promo-claim"></code></pre>
</div>
<div id="execution-error-POSTfree-play-promo-claim" hidden>
    <blockquote>Request failed with error:</blockquote>
    <pre><code id="execution-error-message-POSTfree-play-promo-claim"></code></pre>
</div>
<form id="form-POSTfree-play-promo-claim" data-method="POST" data-path="free-play-promo/claim" data-authed="1" data-hasfiles="0" data-headers='{"Authorization":"Bearer {YOUR_AUTH_KEY}","Content-Type":"application\/json","Accept":"application\/json"}' onsubmit="event.preventDefault(); executeTryOut('POSTfree-play-promo-claim', 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-POSTfree-play-promo-claim" onclick="tryItOut('POSTfree-play-promo-claim');">Try it out ⚡</button>
    <button type="button" style="background-color: #c97a7e; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-canceltryout-POSTfree-play-promo-claim" onclick="cancelTryOut('POSTfree-play-promo-claim');" hidden>Cancel</button>&nbsp;&nbsp;
    <button type="submit" style="background-color: #6ac174; padding: 5px 10px; border-radius: 5px; border-width: thin;" id="btn-executetryout-POSTfree-play-promo-claim" hidden>Send Request 💥</button>
    </h3>
<p>
<small class="badge badge-black">POST</small>
 <b><code>free-play-promo/claim</code></b>
</p>
<p>
<label id="auth-POSTfree-play-promo-claim" hidden>Authorization header: <b><code>Bearer </code></b><input type="text" name="Authorization" data-prefix="Bearer " data-endpoint="POSTfree-play-promo-claim" 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="POSTfree-play-promo-claim" data-component="body" required  hidden>
<br>
The ID of the free play promo to claim.
</p>

</form>



