Path parameters
-
merchant string Required
Merchant name to payment company, e.g. weixinpay.test
Query parameters
-
order_ref string Required
Merchant order no.
-
payment_method string
Must be
wechatpay
oralipay
Values are
wechatpay
oralipay
.
GET /payment/{merchant}
curl \
-X GET https://nomad.samarkand-global.cn/broker/v1/payment/wechat.sh_smk?order_ref=test202101 \
-H "app-api-key: $API_KEY"
Response example (200)
{
"code": 200,
"message": "success",
"orderRef": "test202103",
"payerCurrency": "CNY",
"currency": "CNY",
"payerTotal": 10,
"actualAmount": 2200,
"total": 10,
"bankType": "string",
"Timing": "2021-11-02T17:03:38+08:00",
"transactionId": "4200001148202111020556019250",
"tradeState": "SUCCESS",
"tradeStateDesc": "支付成功",
"tradeType": "MWEB",
"tradeMessage": "string"
}
Response example (401)
{
"code": 200,
"message": "success"
}
Response example (500)
{
"code": 200,
"message": "success",
"errors": "Something wrong when making the service."
}