Wallet

Cómo enviar un payout con Vita Wallet en Chile

Enviar un payout por Wallet en Chile

POST https://sandbox.transfersmile.com/api/payout

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

Headers

NameTypeDescription

Content-Type*

string

application/json; charset=UTF-8

AppId*

string

APP ID en la plataforma de payout

Authorization*

string

SHA256($sorted_params + $app_key)

Request Body

NameTypeDescription

name

string

Nombre de beneficiario

- Min.5 Max.100 -

phone

string

Teléfono de beneficiario.

- Max.15 -

email

string

Correo de beneficiario

- Max.64 -

account*

string

Cuenta Vita de beneficiario.

- Max.64 -

account_type*

string

Valor Fijo: EMAIL

document_id

string

Número de identificación de beneficiario

document_type

string

Tipo de identificador del beneficiario

methd*

string

Valor Fijo: WALLET

channel*

string

Valor Fijo: Vita

custom_code*

string

ID de orden de merchant

- Max.50 -

fee_bear*

string

Uno entre [beneficiario | merchant]

amount*

string

Monto de Payout, debe ser un Integer.

- Min 1, Max 2,000,000 -

amount_type

string

Especificar el monto es fijo para merchant o beneficiario - Uno entre: source_amount, arrival_amount(defecto) -

arrival_currency*

string

Moneda de cuenta de beneficiario.

- Valor Fijo: CLP -

source_currency*

string

Moneda de cuenta de merchant

-acepta: USD, GBP, EUR -

notify_url*

string

Donde Pagsmile enviará el callback

additional_remark*

string

Nota adicional - Max long: 40 -

country*

string

País de beneficiario

- Valor Fijo: CHL -

{
    "code": 200,
    "msg": "success",
    "time": 1628580845,
    "data": {
        "id": "TS202108100734054iRiUZFPXfQWCL",
        "custom_code": "custom_code9982674851738108",
        "arrival_amount": "100",
        "arrival_currency": "CLP",
        "source_amount": "0.07",
        "source_currency": "USD",
        "status": "IN_PROCESSING"
    }
}

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" : "g******me@gmail.com",
    * "account_type" : "EMAIL",
      "document_id" : "************",
      "document_type" : "***",
    * "method" : "WALLET",
    * "channel" : "Vita",
    * "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" : "CLP",
    * "notify_url" : "https://notify.url",
    * "additional_remark" : "pagsmile payout test",
    * "country": "CHL"
}'

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.

Last updated