Uma simulação(dry run) para payout.
200: OK 400: Bad Request 401: Unauthorized
Copy {
"code" : 200 ,
"msg" : "success" ,
"time" : 1642076131 ,
"data" : {
"fee" : "0.2" ,
"tax" : "0" ,
"amount" : "10" ,
"settlement_amount" : "10" ,
"arrival_currency" : "USD" ,
"arrival_amount" : "10" ,
"source_currency" : "USD" ,
"source_amount" : "10.2" ,
"exchange_rate" : "1"
}
}
First Tab
Note: The exchange rate is updated every minute.
Copy {
"code" : 4001000 ,
"msg" : "invalid parameter" ,
"time" : 1642078510 ,
"data" : {
"err" : "request has expired"
}
}
Copy {
"code" : 4004003 ,
"msg" : "permission denied" ,
"time" : 1642074682 ,
"data" : {}
}
Copy curl --location --request POST 'http://localhost:20021/api/payout/dry-run' \
--header 'AppId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
* "source_currency": "USD",
* "arrival_currency": "BRL",
* "amount": "10.00",
* "fee_bear": "merchant",
* "method": "PIX",
"channel": "",
* "country": "BRA",
* "timestamp": 1642075807
}'
Copy curl --location --request POST 'http://localhost:20021/api/payout/dry-run' \
--header 'MerchantId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
* "source_currency": "USD",
* "arrival_currency": "MXN",
* "amount": "10.00",
* "fee_bear": "merchant",
* "method": "SPEI",
"channel": "",
* "country": "MEX",
* "timestamp": 1642075807
}'
Copy curl --location --request POST 'http://localhost:20021/api/payout/dry-run' \
--header 'MerchantId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
* "source_currency": "USD",
* "arrival_currency": "USD",
* "amount": "10.00",
* "fee_bear": "merchant",
* "method": "WALLET",
* "channel": "PayPal",
* "country": "BRA",
* "timestamp": 1642075807
}'