---
description: Cómo enviar un payout con Pagsmile Wallet.
---

# Pagsmile Wallet

{% content-ref url="pagsmile-wallet/authorizacion-h5" %}
[authorizacion-h5](pagsmile-wallet/authorizacion-h5)
{% endcontent-ref %}

{% content-ref url="pagsmile-wallet/autorizacion-nativa-de-app" %}
[autorizacion-nativa-de-app](pagsmile-wallet/autorizacion-nativa-de-app)
{% endcontent-ref %}

{% content-ref url="pagsmile-wallet/enviar-bonificaciones" %}
[enviar-bonificaciones](pagsmile-wallet/enviar-bonificaciones)
{% endcontent-ref %}

## Ambientes

<table><thead><tr><th width="178.33365608328495">Ambientes</th><th>API</th></tr></thead><tbody><tr><td>sandbox</td><td>https://sandbox.transfersmile.com/api/payout</td></tr><tr><td>Producción</td><td>https://api.transfersmile.com/api/payout</td></tr></tbody></table>

## Método HTTP

POST

## Encabezado HTTP

<table><thead><tr><th width="150">Encabezado</th><th width="150">Tipo</th><th width="150">Requerido</th><th>Descripción</th></tr></thead><tbody><tr><td>Content-Type</td><td>String</td><td>Si</td><td>application/json; charset=UTF-8</td></tr><tr><td>AppId</td><td>String</td><td>Si</td><td>App Id en plataforma Payout</td></tr><tr><td>Authorization</td><td>String</td><td>Si</td><td>SHA256($sorted_params + $app_key)</td></tr></tbody></table>

## HTTP Body(Sólo permite JSON)

<table><thead><tr><th width="161.4068079857687">Parametro</th><th width="156.44870898216672">Tipo</th><th width="168.02484649863064">Requerido</th><th>Descripción</th></tr></thead><tbody><tr><td>name</td><td>String</td><td>No</td><td><p>Nombre de beneficiario</p><p>Min.5 Max.100 </p></td></tr><tr><td>phone</td><td>String</td><td>No</td><td><p>Teléfono de beneficiario</p><p>- Max.15 -</p></td></tr><tr><td>email</td><td>String</td><td>No</td><td>Correo de beneficiario</td></tr><tr><td>account</td><td>String</td><td>Si</td><td>Cuenta de Pagsmile Wallet </td></tr><tr><td>account_type</td><td>String</td><td>Si</td><td>Valor fijo: UUID</td></tr><tr><td>method</td><td>String</td><td>Si</td><td>Valor fijo: WALLET</td></tr><tr><td>channel</td><td>String</td><td>Si</td><td>Valor fijo: Pagsmile</td></tr><tr><td>amount</td><td>Numeric String</td><td>Si</td><td><p>Monto de Payout</p><p>- Min 0.01, Max 50,000 -</p></td></tr><tr><td>amount_type</td><td>String</td><td>No</td><td><p>Especificar que el valor de monto es fijo para merchant o beneficiario:</p><p>source_amount, arrival_amount(por defecto) </p></td></tr><tr><td>fee_bear</td><td>String</td><td>Si</td><td>Sólo uno [beneficiario | merchant]</td></tr><tr><td>custom_code</td><td>String</td><td>Si</td><td><p>Id de orden de Merchant</p><p>- Max.50 -</p></td></tr><tr><td>source_currency</td><td>String</td><td>Si</td><td>Moneda  de cuenta de Merchant, compatible: USD, GBP, EUR</td></tr><tr><td>arrival_currency</td><td>String</td><td>Si</td><td>Moneda  de cuenta de beneficiario, BRL o MXN</td></tr><tr><td>notify_url</td><td>String</td><td>Si</td><td>Donde pagsmile enviará el callback</td></tr><tr><td>additional_remark</td><td>String</td><td>Si</td><td>Comentarios adicionales del Payout, Max length: 40 </td></tr><tr><td>country</td><td>String</td><td>Si</td><td>Código de país, BRA o MEX</td></tr></tbody></table>

## Ejemplo de Request

```
// test demo by curl
curl --location --request POST 'https://sandbox.transfersmile.com/api/payout' \
--header 'AppId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
      "name": "Alan **** **** Santana",
      "email": "pagsmile_wallet_demo@pagsmile.com",
    * "account": "f341************************0844",
    * "account_type": "UUID",
    * "amount": "10.00",
    * "source_currency": "USD",
    * "arrival_currency": "BRL",
    * "custom_code": "custom_code_pwallet_10010", // merchant order id
    * "fee_bear": "merchant",
    * "method": "WALLET",
    * "channel": "Pagsmile",
    * "notify_url": "https://sandbox.transfersmile.com/api/notify/demo",
    * "additional_remark": "Pagsmaile wallet test",
    * "country": "BRA"
}'
```

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

## HTTP Response

```
// success
{
    "code": 200,
    "msg": "success",
    "time": 1628580845,
    "data": {
        "id": "TS202108100734054iRiUZFPXfQWB", // pagsmile payout id
        "custom_code": "custom_code9982674851738108", // merchant order id
        "arrival_amount": "100",
        "arrival_currency": "BRL",
        "source_amount": "0.07",
        "source_currency": "USD",
        "status": "IN_PROCESSING"
    }
}
```

```
// bad request
{
    "code": 4001000,
    "msg": "invalid parameter",
    "time": 1637224716,
    "data": {
        ... ...
    }
}
```

```
// persmission denied
{
    "code": 4004003,
    "msg": "permission denied",
    "time": 1637224716,
    "data": {
        ... ...
    }
}
```

```
// balance insufficient
{
    "code": 5001102,
    "msg": "balance insufficient",
    "time": 1637224716,
    "data": {
        ... ...
    }
}
```

```
// system error
{
    "code": 5001000,
    "msg": "system error",
    "time": 1637224716,
    "data": {
        ... ...
    }
}
```

## Países Disponibles

| País   | Código de País | Moneda |
| ------ | -------------- | ------ |
| Brasil | BRA            | BRL    |
| Mexico | MEX            | MXN    |

