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

# Retiros

La API de retiros nos permite transferir el balance de nuestros clientes a su cuenta bancaria

{% hint style="warning" %}
Para que el retiro sea valido, el cliente tiene que tener al menos ARS 50.000
{% endhint %}

## Retiros en moneda local

### \[PUT] <https://api.getamplify.app/receiver/:receiverId>

Endpoint para agregar la información bancaria de nuestro cliente

**Body**

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

**Respuesta**

<pre class="language-json"><code class="lang-json"><strong>{
</strong>    "status": "ok",
}
</code></pre>

### \[POST] <https://api.getamplify.app/withdrawal>

Crea un nuevo retiro para un cliente especifico

{% hint style="warning" %}
Este endpoint necesita los siguientes headers para funcionar:

<pre class="language-json"><code class="lang-json"><strong>{
</strong>  "apiKey": "123xxx456",
  "clientId": "123xxx456",
}
</code></pre>

{% endhint %}

**Body**

```json
{
    "receiverId": "id-del-cliente"
}
```

**Respuesta**

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

## Retiro en cripto

### \[POST] <https://api.getamplify.app/withdrawal/crypto>

Crea un nuevo retiro de criptomonedas para un cliente especifico.

{% hint style="warning" %}
Este endpoint necesita los siguientes headers para funcionar:

<pre class="language-json"><code class="lang-json"><strong>{
</strong>  "apiKey": "123xxx456",
  "clientId": "123xxx456",
}
</code></pre>

{% endhint %}

**Body**

```json
{
	 receiverId: "id-del-cliente"
	 address: "dirección-de-retiro"
	 chainId: "id-red-de-retiro"
	 currency: "USDT/USDC"
}
```

Respuesta

```json
{
    "amount": "123",
    "exchangeRate": "0",
    "status": "PENDING",
    "testnet": false,
    "receiverId": "id-del-cliente",
    "created_at": "2024-01-01 12:00:24.677Z"
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://amplify-docs.gitbook.io/amplify/espanol/api/retiros.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
