开发指南 官网
API 2.0 > 10.1 线上支付 > 10.1.7 退款查询

10.1.7 退款查询

开启令牌和权限后可调用。签名方式请查看开发指南
场景说明:退款查询

请求地址

请求方式 版本信息 请求地址
POST V2 http://openapi.zvcms.com/api/v2

公共参数

参数 参数类型 是否必填 默认值 描述
OpenId string 密钥Id
GrantCode string 授权code
Token string 签名,参考《数字签名sign》
Timestamp string 当前时间戳
Nonce string 随机正整数
Action string communal.order.query-refund-request 接口方法
Params array 业务参数

请求参数

参数 参数类型 是否必填 默认值 描述
trade_no string 企迈支付流水号
order_no string 外部订单编号 跟trade_no二选一

响应参数

参数 参数类型 描述
status bool 成功或失败标识
code int 成功或失败代码
data array
 ├trade_no string 企迈支付流水号
 ├order_no string 外部订单编号
 ├out_trade_no string 支付宝或微信的支付流水号
 ├total_amount string 订单实际支付金额
 ├refund_list array
  ├0 array
   ├refund_no string 企迈退款流水号
   ├channel_refund_no string 微信退款单号(支付宝目前没有此参数)
   ├refund_amount string 退款金额
   ├refund_success_time string 退款时间
   ├refund_status string 退款状态 SUCCESS-退款成功 FAIL-退款失败 PROCESSING-退款处理中 REFUNDCLOSE-退款关闭

请求示例

{
    "OpenId": "6dc05b4ac175cf316d226252b05cf685",
    "GrantCode": "782c281f62",
    "Timestamp": "1547186244",
    "Nonce": "658965",
    "Token": "0%2B%2B3c6hthjwAml4ABAXOYF4Q6UY%3D",
    "Action": "communal.order.query-refund-request",
    "Params": {
        "trade_no": "T200818102828159771770846795379",
        "order_no": ""
    }
} 

响应示例

{
    "status": "true",
    "code": "0",
    "message": "说明",
    "data": {
        "trade_no": "",
        "order_no": "",
        "out_trade_no": "",
        "total_amount": "",
        "refund_list": [
            {
                "refund_no": "",
                "channel_refund_no": "",
                "refund_amount": "",
                "refund_success_time": "",
                "refund_status": ""
            }
        ]
    }
}

异常示例

{
    "status": true,
    "code": "异常编码,根据不同的业务返回编码",
    "message": "异常说明:查询的信息不存在"
}

错误码

{
    "status": false,
    "code": "系统错误编码:详见全局返回编码",
    "message": "系统错误说明"
}

请求地址

请求方式 版本信息 请求地址
POST V2 http://openapi.zvcms.com/api/v2

公共参数

参数 参数类型 是否必填 默认值 描述
OpenId string 密钥Id
GrantCode string 授权code
Token string 签名,参考《数字签名sign》
Timestamp string 当前时间戳
Nonce string 随机正整数
Action string communal.order.query-refund-request 接口方法
Params array 业务参数

请求参数

参数 参数类型 是否必填 默认值 描述
trade_no string 企迈支付流水号
order_no string 外部订单编号 跟trade_no二选一

响应参数

参数 参数类型 描述
status bool 成功或失败标识
code int 成功或失败代码
data array
 ├trade_no string 企迈支付流水号
 ├order_no string 外部订单编号
 ├out_trade_no string 支付宝或微信的支付流水号
 ├total_amount string 订单实际支付金额
 ├refund_list array
  ├0 array
   ├refund_no string 企迈退款流水号
   ├channel_refund_no string 微信退款单号(支付宝目前没有此参数)
   ├refund_amount string 退款金额
   ├refund_success_time string 退款时间
   ├refund_status string 退款状态 SUCCESS-退款成功 FAIL-退款失败 PROCESSING-退款处理中 REFUNDCLOSE-退款关闭

请求示例

{
    "OpenId": "6dc05b4ac175cf316d226252b05cf685",
    "GrantCode": "782c281f62",
    "Timestamp": "1547186244",
    "Nonce": "658965",
    "Token": "0%2B%2B3c6hthjwAml4ABAXOYF4Q6UY%3D",
    "Action": "communal.order.query-refund-request",
    "Params": {
        "trade_no": "T200818102828159771770846795379",
        "order_no": ""
    }
} 

响应示例

{
    "status": "true",
    "code": "0",
    "message": "说明",
    "data": {
        "trade_no": "",
        "order_no": "",
        "out_trade_no": "",
        "total_amount": "",
        "refund_list": [
            {
                "refund_no": "",
                "channel_refund_no": "",
                "refund_amount": "",
                "refund_success_time": "",
                "refund_status": ""
            }
        ]
    }
}

异常示例

{
    "status": true,
    "code": "异常编码,根据不同的业务返回编码",
    "message": "异常说明:查询的信息不存在"
}

错误码

{
    "status": false,
    "code": "系统错误编码:详见全局返回编码",
    "message": "系统错误说明"
}

请求地址

请求方式 版本信息 请求地址
POST V2 http://openapi.zvcms.com/api/v2

公共参数

参数 参数类型 是否必填 默认值 描述
OpenId string 密钥Id
GrantCode string 授权code
Token string 签名,参考《数字签名sign》
Timestamp string 当前时间戳
Nonce string 随机正整数
Action string communal.order.query-refund-request 接口方法
Params array 业务参数

请求参数

参数 参数类型 是否必填 默认值 描述
trade_no string 企迈支付流水号
order_no string 外部订单编号 跟trade_no二选一

响应参数

参数 参数类型 描述
status bool 成功或失败标识
code int 成功或失败代码
data array
 ├trade_no string 企迈支付流水号
 ├order_no string 外部订单编号
 ├out_trade_no string 支付宝或微信的支付流水号
 ├total_amount string 订单实际支付金额
 ├refund_list array
  ├0 array
   ├refund_no string 企迈退款流水号
   ├channel_refund_no string 微信退款单号(支付宝目前没有此参数)
   ├refund_amount string 退款金额
   ├refund_success_time string 退款时间
   ├refund_status string 退款状态 SUCCESS-退款成功 FAIL-退款失败 PROCESSING-退款处理中 REFUNDCLOSE-退款关闭

请求示例

{
    "OpenId": "6dc05b4ac175cf316d226252b05cf685",
    "GrantCode": "782c281f62",
    "Timestamp": "1547186244",
    "Nonce": "658965",
    "Token": "0%2B%2B3c6hthjwAml4ABAXOYF4Q6UY%3D",
    "Action": "communal.order.query-refund-request",
    "Params": {
        "trade_no": "T200818102828159771770846795379",
        "order_no": ""
    }
} 

响应示例

{
    "status": "true",
    "code": "0",
    "message": "说明",
    "data": {
        "trade_no": "",
        "order_no": "",
        "out_trade_no": "",
        "total_amount": "",
        "refund_list": [
            {
                "refund_no": "",
                "channel_refund_no": "",
                "refund_amount": "",
                "refund_success_time": "",
                "refund_status": ""
            }
        ]
    }
}

异常示例

{
    "status": true,
    "code": "异常编码,根据不同的业务返回编码",
    "message": "异常说明:查询的信息不存在"
}

错误码

{
    "status": false,
    "code": "系统错误编码:详见全局返回编码",
    "message": "系统错误说明"
}

免费升级

营销功能、插件持续每月更新开发升级

免费专业培训

每月建站、微信营销、电商等互联网增值培训

7×24小时服务支持

400电话、QQ、微信、在线等多渠道售后支持

 

安徽智迈科技股份有限公司 版权所有 Copyright 2009-2018 皖公网安备 34019202000074号 增值电信业务经营许可证:皖B2-20170075