HTTP Body(Only JSON Supported)
Copy // test demo by curl
curl --location --request POST 'https://sandbox.transfersmile.com/api/payout' \
--header 'AppId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Alan **** **** Santana",
"email": "pagsmile_wallet_demo@pagsmile.com",
* "account": "f341************************0844",
* "account_type": "UUID",
* "amount": "10.00",
* "source_currency": "USD",
* "arrival_currency": "BRL",
* "custom_code": "custom_code_pwallet_10010", // merchant order id
* "fee_bear": "merchant",
* "method": "WALLET",
* "channel": "Pagsmile",
* "notify_url": "https://sandbox.transfersmile.com/api/notify/demo",
* "additional_remark": "Pagsmaile wallet test",
* "country": "BRA"
}'
Copy // success
{
"code": 200,
"msg": "success",
"time": 1628580845,
"data": {
"id": "TS202108100734054iRiUZFPXfQWB", // pagsmile payout id
"custom_code": "custom_code9982674851738108", // merchant order id
"arrival_amount": "100",
"arrival_currency": "BRL",
"source_amount": "0.07",
"source_currency": "USD",
"status": "IN_PROCESSING"
}
}
Copy // bad request
{
"code": 4001000,
"msg": "invalid parameter",
"time": 1637224716,
"data": {
... ...
}
}
Copy // persmission denied
{
"code": 4004003,
"msg": "permission denied",
"time": 1637224716,
"data": {
... ...
}
}
Copy // balance insufficient
{
"code": 5001102,
"msg": "balance insufficient",
"time": 1637224716,
"data": {
... ...
}
}
Copy // system error
{
"code": 5001000,
"msg": "system error",
"time": 1637224716,
"data": {
... ...
}
}