Path parameters
-
merchant string Required
Merchant name to payment company, e.g. weixinpay.test
Query parameters
-
order_ref string
Merchant payment order no.
-
refund_order_ref string Required
Merchant payment refund no.
-
refund_id string
Payment company refund no.
-
payment_method string
Must be
wechatpay
oralipay
Values are
wechatpay
oralipay
.
GET /refund/{merchant}
curl \
-X GET https://nomad.samarkand-global.cn/broker/v1/refund/wechat.sh_smk?refund_order_ref=r001test20220125001 \
-H "app-api-key: $API_KEY"
Response example (200)
{
"code": 200,
"message": "success",
"refundId": "refund_id_payment_company",
"orderRef": "test20220125001",
"refundOrderRef": "r001test20220125001",
"transactionId": "4200001148202111020556019250",
"channel": "ORIGINAL",
"userReceivedAccount": "0403**",
"createTime": "2021-11-02T17:03:38+08:00",
"successTime": "2021-11-02T17:03:38+08:00",
"status": "SUCCESS",
"refundAmount": 10,
"totalAmount": 10,
"payerRefund": 10,
"payerTotal": 10,
"settlementAmount": 10,
"settlementTotal": 10,
"discountRefundAmount": 10,
"currency": "CNY",
"refundAccount": "REFUND_SOURCE_SUB_MERCHANT",
"fundsAccount": "string"
}
Response example (401)
{
"code": 200,
"message": "success"
}
Response example (500)
{
"code": 200,
"message": "success",
"errors": "Something wrong when making the service."
}