Transferência bancária
Como utilizar a Transferência Bancária para criar um payout no Chile.
Criar um payout por transferência bancária no Chile.
POST
https://sandbox.transfersmile.com/api/payout
Este ponto final permite que você apresente um payout por transferência bancária no Chile.
Headers
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
name*
string
Nome do beneficiário - entre 5 e 100 chars -
phone
string
Telefone do beneficiário
string
E-mail do beneficiário
account*
string
Conta, comprimento máximo é 20
account_type*
string
Deve ser um de CHECKING, SAVINGS, VISTA, RUT, SALARY.
document_id*
string
Documento de identificação do beneficiário
document_type*
string
O tipo de documento beneficiário, deve ser um de RUT, RUN, PAS, CE.
method*
string
Valor fixo: BankTransfer
custom_code*
string
ID do pedido do merchant
- Max.50 -
fee_bear*
string
Um de [beneficiary | merchant]
amount*
string
O valor do Payout , deve ser um número inteiro.
- Min 1, Max 2,000,000 -
source_currency*
string
Moeda da conta do Merchant
- USD, GBP, EUR -
arrival_currency*
string
Moeda da conta do beneficiário.
- Valor fixo: CLP -
notify_url*
string
Onde a pagsmile vai enviar o callback
additional_remark*
string
Observação adicional - Max : 40 chars-
country*
string
Valor fixo: CHL, para Chile
amount_type
string
Especifique o valor fixo para comerciante ou beneficiário - Um de: source_amount, arrival_amount(default)-
{
"code": 200,
"msg": "success",
"time": 1628580845,
"data": {
"id": "TS202108100734054iRiUZFPXfQBCL",
"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",
* "bank_code": "012", // Banco del Estado de Chile
* "account" : "00219400254640654321", // just for test in sandbox
* "account_type" : "CHECKING",
* "document_id" : "123456789", // just for test in sandbox, don't use this in production.
* "document_type" : "RUT",
* "method" : "BankTransfer",
* "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"
}'
Last updated