Criar um payout por PayPal em todo o mundo.
This endpoint allows you to submit a payout by PayPal globally.
200: OK enviado com sucesso 401: Unauthorized não autorizado 500: Internal Server Error erro no servidor 400: Bad Request ordem já existe 500: Internal Server Error saldo insuficiente 500: Internal Server Error taxa não configurada
Copy {
"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"
}
}
Copy {
"code" : 4004003 ,
"msg" : "permission denied" ,
"time" : 1637224716 ,
"data" : {}
}
Copy {
"code" : 5001000 ,
"msg" : "system error" ,
"time" : 1637224716 ,
"data" : {}
}
Copy {
"code" : 4001010 ,
"msg" : "order already existed" ,
"time" : 1628580940 ,
"data" : {
... ...
}
}
Copy {
// balance insufficient
{
"code" : 5001102 ,
"msg" : "balance insufficient" ,
"time" : 1637224716 ,
"data" : {
... ...
}
}
Copy {
"code" : 5001003 ,
"msg" : "fee not configured" ,
"time" : 1637224716 ,
"data" : {
... ...
}
}
Copy 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"
}'