Path parameters
-
merchant string Required
Merchant name to payment company, e.g. wechat.sh_smk
Body
-
operation string Required
Abroad payout bill operations, available: GetAvailableAbroadAmounts
-
transactionId string Required
Payment company transaction number
-
paymentMethod string
Payment method, must be wechatpay or alipay
Values are
wechatpay
oralipay
.
POST /payout/bill/abroad/{merchant}
curl \
-X POST https://nomad.samarkand-global.cn/broker/v1/payout/bill/abroad/{merchant} \
-H "app-api-key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"operation":"GetAvailableAbroadAmounts","transactionId":"transaction_id_123","paymentMethod":"wechatpay"}'
Request example
{
"operation": "GetAvailableAbroadAmounts",
"transactionId": "transaction_id_123",
"paymentMethod": "wechatpay"
}
Response example (200)
{
"code": 200,
"message": "success",
"outOrderId": "string",
"transactionId": "42000000000_123123",
"payoutOrderId": "string",
"result": "SUCCESS",
"failReason": "BALANCE_NOT_ENOUGH",
"amount": 88,
"foreignAmount": 88,
"foreignCurrency": 88,
"rate": 88,
"exchangeRateTime": "2015-05-20T13:29:35.120+08:00",
"estimateExchangeRateTime": "2015-05-20T13:29:35.120+08:00",
"availableAbroadAmount": 88
}
Response example (400)
{
"code": 200,
"message": "success"
}
Response example (401)
{
"code": 200,
"message": "success"
}
Response example (500)
{
"code": 200,
"message": "success"
}