---
description: Cómo enviar un payout por wallet en Colombia
---

# Wallet



## &#x20;Enviar un payout por Wallet en Colombia

<mark style="color:green;">`POST`</mark> `https://sandbox.transfersmile.com/api/payout`&#x20;

Este endpoint te permite usar e-wallet para realizar un payout en Colombia.

#### Headers

| Name                                            | Type   | Description                         |
| ----------------------------------------------- | ------ | ----------------------------------- |
| Content-Type<mark style="color:red;">\*</mark>  | string | application/json; charset=UTF-8     |
| AppId<mark style="color:red;">\*</mark>         | string | APP ID en la plataforma de payout   |
| Authorization<mark style="color:red;">\*</mark> | string | SHA256($sorted\_params + $app\_key) |

#### Request Body

| Name                                                 | Type   | Description                                                                                                               |
| ---------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------- |
| document\_id                                         | string | Número de identificación de beneficiario                                                                                  |
| channel<mark style="color:red;">\*</mark>            | string | Valor Fijo: Tpaga                                                                                                         |
| phone                                                | string | <p>Teléfono de beneficiario.</p><p>- Max.15 -</p>                                                                         |
| email                                                | string | <p>Correo de beneficiario</p><p>- Max.64 -</p>                                                                            |
| document\_type                                       | string | Tipo de identificador del beneficiario                                                                                    |
| name                                                 | string | <p>Nombre de beneficiario</p><p>- Min.5 Max.100 -</p>                                                                     |
| account<mark style="color:red;">\*</mark>            | string | <p>Cuenta Tpaga de beneficiario.</p><p>- Max.11 -</p>                                                                     |
| method<mark style="color:red;">\*</mark>             | string | Valor Fijo: WALLET                                                                                                        |
| account\_type<mark style="color:red;">\*</mark>      | string | Valor Fijo: PHONE                                                                                                         |
| custom\_code<mark style="color:red;">\*</mark>       | string | <p>ID de orden de merchant</p><p>- Max. 50 -</p>                                                                          |
| fee\_bear<mark style="color:red;">\*</mark>          | string | Uno entre \[beneficiario \| merchant]                                                                                     |
| amount<mark style="color:red;">\*</mark>             | string | <p>Monto de Payout, debe ser un Integer.</p><p>- Min 1, Max 2,000,000 - </p>                                              |
| source\_currency<mark style="color:red;">\*</mark>   | string | <p>Moneda de cuenta de merchant</p><p>- soporta: USD, GBP, EUR -  </p>                                                    |
| arrival\_currency<mark style="color:red;">\*</mark>  | string | <p>Moneda de cuenta de beneficiario.</p><p>- Valor Fijo: COP - </p>                                                       |
| notify\_url<mark style="color:red;">\*</mark>        | string | Donde Pagsmile enviará el callback                                                                                        |
| additional\_remark<mark style="color:red;">\*</mark> | string | <p>Nota adicional<br>- Max longitud: 40 - </p>                                                                            |
| country<mark style="color:red;">\*</mark>            | string | <p>País de beneficiario</p><p>- Valor Fijo: COL - </p><p></p>                                                             |
| amount\_type                                         | string | <p>Especificar el monto es fijo para merchant o beneficiario<br>- Uno entre: source_amount, arrival_amount(defecto) -</p> |

{% tabs %}
{% tab title="200: OK Envío exitoso" %}
```javascript
{
    "code": 200,
    "msg": "success",
    "time": 1628580845,
    "data": {
        "id": "TS202108100734054iRiUZFPXfQWC",
        "custom_code": "custom_code9982674851738108",
        "arrival_amount": "100",
        "arrival_currency": "COP",
        "source_amount": "0.07",
        "source_currency": "USD",
        "status": "IN_PROCESSING"
    }
}
```
{% endtab %}

{% tab title="400: Bad Request Solicitud incorrecta" %}
```javascript
{
    "code": 4001000,
    "msg": "invalid parameter",
    "time": 1637224716,
    "data": {}
}
```
{% endtab %}

{% tab title="401: Unauthorized Desautorizado" %}
```javascript
{
    "code": 4004003,
    "msg": "permission denied",
    "time": 1637224716,
    "data": {}
}
```
{% endtab %}

{% tab title="500: Internal Server Error Error de sistema" %}
```javascript
{
    "code": 5001000,
    "msg": "system error",
    "time": 1637224716,
    "data": {}
}
```
{% endtab %}

{% tab title="500: Internal Server Error Tarifa no configurada" %}
```javascript
{
    "code": 5001003,
    "msg": "fee not configured",
    "time": 1637224716,
    "data": {
        ... ...
    }
}
```
{% endtab %}

{% tab title="500: Internal Server Error Balance insuficiente" %}
```javascript
{
    "code": 5001102,
    "msg": "balance insufficient",
    "time": 1637224716,
    "data": {
        ... ...
    }
}
```
{% endtab %}
{% endtabs %}

## Ejemplo

```
curl --location --request POST 'http://sandbox.transfersmile.com/api/payout' \
--header 'AppId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
      "name" : "GUILHERME ****** SOUZA",
      "phone" : "468****068",
      "email" : "g******me@gmail.com",
    * "account" : "+57317****412",
    * "account_type" : "PHONE",
      "document_id" : "************",
      "document_type" : "***",
    * "method" : "WALLET",
    * "channel" : "Tpaga",
    * "custom_code" : "custom_code9982674851738108",
    * "fee_bear" : "merchant",
    * "amount" : "100", //Amount should be an integer, like 1.00 is not available.
    * "source_currency" : "USD",
    * "arrival_currency" : "COP",
    * "notify_url" : "https://notify.url",
    * "additional_remark" : "pagsmile payout test",
    * "country": "COL"
}'


```

{% hint style="info" %}
Nota: **94FAC\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*68548** es el test ID de pagsmile para prueba en sandbox, y **d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302** es el token de autorización asociado con el app ID de prueba.
{% endhint %}
