# Remove Credits

<mark style="color:green;">`POST`</mark> `https://yourwebsite.com/api/credits/remove`

#### Request Body

| Name                                               | Type    | Description |
| -------------------------------------------------- | ------- | ----------- |
| target\_username<mark style="color:red;">\*</mark> | string  |             |
| amount<mark style="color:red;">\*</mark>           | decimal |             |

{% tabs %}
{% tab title="200: OK Successful login" %}

```json
{
    "current_credits": "10.25 USD",
    "current_raw_credits": 10.25,
    "currency": "USD"
}
```

{% endtab %}

{% tab title="404: Not Found User not found" %}

```json
{
    "status": false,
    "error": "USER_NOT_FOUND",
    "message": "User not found!"
}
```

{% endtab %}

{% tab title="400: Bad Request Invalid amount" %}

```json
{
    "status": false,
    "error": "INVALID_AMOUNT",
    "message": "You can't send less than 0.01!"
}
```

{% endtab %}

{% tab title="400: Bad Request Not enough credits" %}

```json
{
    "status": false,
    "error": "NOT_ENOUGH_CREDITS",
    "message": "This user doesn't have enough credits to remove this amount!"
}
```

{% endtab %}
{% endtabs %}
