Carteira

Onde utilizar a carteira Vita para enviar um payout no Chile.

Enviar um payout por carteira no Chile

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

Este endpoint permite que você submeta um payout por Carteira no Chile.

Headers

NameTypeDescription

Content-Type*

string

application/json; charset=UTF-8

AppId*

string

Seu App ID na plataforma de payout

Authorization*

string

SHA256($sorted_params + $app_key)

Request Body

NameTypeDescription

name

string

Nome do beneficiário

- Min.5 Max.100 -

phone

string

Telefone do beneficiário

- Max.15 -

email

string

E-mail do beneficiário

- Max.64 -

account*

string

Conta Vita do beneficiário.

- Max.64 -

account_type*

string

Valor fixo: EMAIL

document_id

string

Documento de identificação do beneficiário

document_type

string

Tipo de documento beneficiário

methd*

string

valor fixo: WALLET

channel*

string

valor fixo: Vita

custom_code*

string

Merchant's order id

- Max.50 -

fee_bear*

string

Um de [beneficiary | merchant]

amount*

string

O valor do Payout, deve ser um Inteiro.

- Min 1, Max 2,000,000 -

amount_type

string

Especifique o valor fixo para comerciante ou beneficiário - Um de: source_amount, arrival_amount(default)-

arrival_currency*

string

Moeda da conta do beneficiário.

- Valor fixo: CLP -

source_currency*

string

Moeda da conta do Merchant

- USD, GBP, EUR -

notify_url*

string

Onde a pagsmile vai enviar o callback

additional_remark*

string

Observação adicional - Max: 40 chars -

country*

string

País do Beneficiário.

- Valor fixo: 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"
    }
}

Exemplo

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 é o App Id de teste Pagsmile para o ambiente de sandbox, e d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302 é o token de autorização associado ao App Id de teste.

Last updated