# Withdraws

## Withdraws

The withdrawal API allows us to transfer the balance of our clients to their bank account

{% hint style="warning" %}
For the withdrawal to be valid, the client must have at least ARS 50000&#x20;
{% endhint %}

#### \[PUT] [https://api.getamplify.app/receiver/:receiverId](https://api.getamplify.app/receiver/:receiverId**)

Endpoint to add client banking information

**Body**

```
{
    "name": "John",
    "lastName": "Smith",
    "dob": "1990-01-30",
    "accountNumber": "000000XX0000XXXXXXXXXX", // CBU
    "identificationNumber": "20123456789", // CUIL | CUIT
    "bankAccountNumber": "4020000-3 012-3",
    "bankName": "Galicia",
}
```

**Response**

```
{
    "status": "ok",
}
```

#### \[POST] [https://api.getamplify.app/withdrawal](https://api.getamplify.app/withdrawal**)

Creates a new withdrawal for a specific client

{% hint style="warning" %}
This endpoint requires the following headers:
{% endhint %}

```
{
  "apiKey": "123xxx456",
  "clientId": "123xxx456",
}
```

**Body**

```
{
    "receiverId": "receiver-identification"
}
```

**Response**

```
{
    "userId": "123...456",
    "amount": "123",
    "exchangeRate": "1000",
    "status": "PENDING",
    "testnet": false,
    "receiverId": "receiver-identification",
    "created_at": "2024-01-01 12:00:24.677Z",
}
```

\[POST] [https://api.getamplify.app/withdrawal/crypto](https://api.getamplify.app/withdrawal/crypto**)

Creates a new cryptocurrency withdrawal for a specific client.

{% hint style="warning" %}
This endpoint requires the following headers:
{% endhint %}

```json
{
  "apiKey": "123xxx456",
  "clientId": "123xxx456"
}
```

Body

```json
{
  "receiverId": "receiver-identification",
  "address": "withdrawal-address",
  "chainId": "network-id",
  "currency": "USDT/USDC"
}
```

Response

```json
{
  "amount": "123",
  "exchangeRate": "0",
  "status": "PENDING",
  "testnet": false,
  "receiverId": "receiver-identification",
  "created_at": "creation-date"
}
```
