> For the complete documentation index, see [llms.txt](https://yogupay.gitbook.io/yogupay-payout-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://yogupay.gitbook.io/yogupay-payout-api/withdrawals/create-withdrawal.md).

# Create Withdrawal

## Create a new user

<mark style="color:green;">`POST`</mark> `/`<kbd>`withdraw-crypto`</kbd>

This endpoint allows users to withdraw cryptocurrency from their account to a specified destination address

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <token>`   |

**Request Body**

{% hint style="info" %}
Ensure that the sending and receiving addresses are valid to avoid transaction failures
{% endhint %}

The request body must be in JSON format and include the following parameters:

<table><thead><tr><th>Name</th><th width="249">Type</th><th>Description</th></tr></thead><tbody><tr><td><code>amount</code></td><td>string</td><td>The amount of cryptocurrency to be withdrawn</td></tr><tr><td><code>currency</code></td><td>string</td><td>The type of cryptocurrency being withdrawn (e.g. USDT)</td></tr><tr><td><code>sending_address</code></td><td>string</td><td>The address from which the cryptocurrency will be sent</td></tr><tr><td><code>receiving_address</code></td><td>string</td><td>The address to which the cryptocurrency will be sent</td></tr><tr><td><code>transaction_id</code></td><td>string</td><td>A unique identifier for the transaction</td></tr></tbody></table>

**Response**

{% tabs %}
{% tab title="Success" %}

```json
{
    "status": "1",
    "message": "Withdrawal request sent, waiting confirmation"
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "error": "Invalid request"
}
```

{% endtab %}
{% endtabs %}
