退款查询接口

退款查询

订单退款查询,一个订单可以产生多次退款,退款总金额不能超过原订单金额。

API 请求

端点

https://api.iotpaycloud.com/v1/query_order_with_refundlist

方法

POST

头部

Content-Type: application/x-www-form-urlencoded

请求参数

变量名必填类型示例值描述
mchIdyString(30)20001222支付中心分配的商户号
payOrderIdyString(64)U00180918065500913991007022支付中心生成的订单号
signyString(32)C380BEC2BFD727A4B6845133519F3AD6签名算法

提示

由于兼容性要求,我们要求参数被包装如下:

params={"mchId":"10000576","payOrderId":"AQ20200506080632053874668653","sign":"744E740B3CD0F02A0A2ACC4C4D65D1DE"}

返回结果示例

{
  "resCode": "SUCCESS",
  "retCode": "SUCCESS",
  "retParams": "",
  "payOrderId": "AQ20200506080632053874668653",
  "mchOrderNo": "1588795591785",
  "retDetail": {
    "payOrderId": "AQ20200506080632053874668653",
    "mchId": "10000576",
    "mchOrderNo": "1588795591785",
    "channelId": "ALIPAY_QR",
    "currency": "CAD",
    "amount": 1,
    "tip": 0,
    "clientIp": "192.168.0.29",
    "deviceId": "V1s-G",
    "deviceType": "",
    "notifyUrl": "jg_push",
    "subject": "IOTPay",
    "body": "IOTPay",
    "param1": "",
    "param2": "",
    "extra": "{\"pos_flag\":\"yes\",\"productId\":\"10000576_null\"}",
    "paySuccTime": 1588795600,
    "channelOrderNo": "2020050722001478601416214647",
    "status": 2,
    "createDate": 1588795592,
    "updateDate": 1588795860,
    "userName": "abcde",
    "storeId": "34448062501",
    "rate": 0,
    "remarks": "",
    "rateValue": 0,
    "originalOrderId": "",
    "payType": "pay",
    "refundList": [
      {
        "payOrderId": "RA20200506081058939207564276",
        "mchId": "10000576",
        "mchOrderNo": "1588795858585",
        "channelId": "ALIPAY_QR",
        "currency": "CAD",
        "amount": 1,
        "tip": 0,
        "clientIp": "210.73.10.148",
        "deviceId": "VS34197B60717",
        "deviceType": "",
        "notifyUrl": "jg_push",
        "subject": "abcde",
        "body": "",
        "param1": "",
        "param2": "",
        "extra": "",
        "paySuccTime": "",
        "channelOrderNo": "2020050722001478601416214647",
        "status": 3,
        "createDate": 1588795858,
        "updateDate": 1588795860,
        "userName": "abcde",
        "storeId": "34448062501",
        "rate": 1.1,
        "remarks": "abcde",
        "rateValue": 0,
        "originalOrderId": "AQ20200506080632053874668653",
        "payType": "refund"
      }
    ]
  },
  "result": {
    "payOrderId": "AQ20200506080632053874668653",
    "mchId": "10000576",
    "mchOrderNo": "1588795591785",
    "channelId": "ALIPAY_QR",
    "currency": "CAD",
    "amount": 1,
    "tip": 0,
    "clientIp": "192.168.0.29",
    "deviceId": "V1s-G",
    "deviceType": "",
    "notifyUrl": "jg_push",
    "subject": "IOTPay",
    "body": "IOTPay",
    "param1": "",
    "param2": "",
    "extra": "{\"pos_flag\":\"yes\",\"productId\":\"10000576_null\"}",
    "paySuccTime": 1588795600,
    "channelOrderNo": "2020050722001478601416214647",
    "status": 2,
    "createDate": 1588795592,
    "updateDate": 1588795860,
    "userName": "abcde",
    "storeId": "34448062501",
    "rate": 0,
    "remarks": "",
    "rateValue": 0,
    "originalOrderId": "",
    "payType": "pay",
    "refundList": [
      {
        "payOrderId": "RA20200506081058939207564276",
        "mchId": "10000576",
        "mchOrderNo": "1588795858585",
        "channelId": "ALIPAY_QR",
        "currency": "CAD",
        "amount": 1,
        "tip": 0,
        "clientIp": "210.73.10.148",
        "deviceId": "VS34197B60717",
        "deviceType": "",
        "notifyUrl": "jg_push",
        "subject": "abcde",
        "body": "",
        "param1": "",
        "param2": "",
        "extra": "",
        "paySuccTime": "",
        "channelOrderNo": "2020050722001478601416214647",
        "status": 3,
        "createDate": 1588795858,
        "updateDate": 1588795860,
        "userName": "abcde",
        "storeId": "34448062501",
        "rate": 1.1,
        "remarks": "abcde",
        "rateValue": 0,
        "originalOrderId": "AQ20200506080632053874668653",
        "payType": "refund"
      }
    ]
  },
  "sign": "0D7EB672A43D653F45DF25E0208F2D82"
}
上次更新: