PayPal
Cómo usar PayPal para enviar un payout.
Submit a payout by PayPal globally.
POST
https://sandbox.transfersmile.com/api/payout
Este endpoint te permite usar Paypal para realizar un payout globalmente.
Headers
Content-Type*
string
application/json; chartset=UTF-8
AppId*
String
Su app ID en la plataforma de payout
Authorization*
String
SHA256($sorted_params + $app_key)
Request Body
name
String
Nombre de beneficiario
- Min.5 Max.100 -
phone
String
Teléfono de beneficiario.
String
Correo de beneficiario
account*
String
Cuenta de PayPal.
account_type*
String
Fijo: EMAIL
custom_code*
String
ID de orden de merchant
channel*
String
Fijo: PayPal
method*
String
Fijo: WALLET
document_type
String
Tipo de identificador del beneficiario
document_id
String
Número de identificación de beneficiario
source_currency*
String
Moneda de cuenta de merchant
- soporta: USD, GBP, EUR -
fee_bear*
String
Sólo uno [beneficiario | merchant]
amount*
String
Monto de Payout, 2 números decimales
- Min 0.01, Max 50,000 -
notify_url*
String
Donde Pagsmile enviará el callback
additional_remark*
String
Payout nota
- Max long: 40 -
amount_type
String
Especificar si valor de monto es fijo para merchant o beneficiario - Sólo uno: source_amount, arrival_amount(default) -
{
"code": 200,
"msg": "success",
"time": 1628580845,
"data": {
"id": "TS202108100734054iRiUZFPXfQPB",
"custom_code": "custom_code9982674851738108",
"arrival_amount": "0.51",
"arrival_currency": "BRL",
"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" : "paypal_email_account@gmail.com",
* "account_type" : "EMAIL",
"document_id" : "CUP800****691",
"document_type" : "RFC",
* "method" : "WALLET",
* "channel" : "PayPal",
* "custom_code" : "custom_code9982674851738108",
* "fee_bear" : "merchant",
* "amount" : "0.51",
* "source_currency" : "USD",
* "arrival_currency" : "USD",
* "notify_url" : "https://notify.url",
* "additional_remark" : "pagsmile payout test",
* "country": "BRA"
}'
En ambiente sandbox, favor usar pagsmile_test_success@pagsmile.com como cuenta de Paypal para realizar pruebas exitosas, cualquier otra cuenta de Paypal fallará.
Last updated