接口描述:

  • 接口版本:

版本号 制定人 制定日期 修订日期 备注

请求URL:

  • {{mchHost}}/api/payOrder

请求方式:

  • GET

请求参数:

参数名 说明
pageNumber/pageSize 标准分页参数
appId 根据appId查询

返回数据说明:

参数名 说明
ifCode 接口code
payOrderId 支付订单号
wayName 支付方式名称
mchOrderNo 商户订单号
subject 支付信息
channelOrderNo 渠道单号
body body
refundTimes 退款次数
createdAt 创建时间
appId 应用ID
successTime 成功时间
currency 币种
divisionState 分账状态
state 订单状态 支付状态: 0-订单生成, 1-支付中, 2-支付成功, 3-支付失败, 4-已撤销, 5-已退款, 6-订单关闭
mchNo 商户号
refundAmount 退款金额
refundState 退款状态 退款状态: 0-未发生实际退款, 1-部分退款, 2-全额退款
amount 金额
mchName 商户名称
wayCode 产品名称
storeId 门店ID
expiredTime 过期时间
mchFeeRate 费率
notifyState 通知状态 向下游回调状态, 0-未发送, 1-已发送
mchType 商户类型
channelUser 渠道用户ID
divisionMode 分账模式

返回示例:

{
    "msg": "SUCCESS",
    "code": 0,
    "data": {
        "total": 2,
        "current": 1,
        "records": [
            {
                "ifCode": "alipay",
                "payOrderId": "P1475735448320897025",
                "wayName": "支付宝生活号",
                "mchOrderNo": "M1475735448190873602",
                "subject": "静态码支付",
                "channelOrderNo": "2021122822001445700502162927",
                "body": "静态码支付",
                "refundTimes": 0,
                "createdAt": "2021-12-28 15:48:43",
                "appId": "61b71cb5d9d220bcc03b79a5",
                "successTime": "2021-12-28 15:48:53",
                "currency": "cny",
                "divisionState": 0,
                "state": 2,
                "returnUrl": "",
                "mchNo": "M1639720870",
                "refundAmount": 0,
                "updatedAt": "2022-01-14 11:20:00",
                "mchFeeAmount": 1,
                "refundState": 0,
                "amount": 100,
                "mchName": "213122",
                "wayCode": "ALI_JSAPI",
                "storeId": 1019,
                "expiredTime": "2021-12-28 17:48:43",
                "mchFeeRate": 0.010000,
                "notifyState": 0,
                "mchType": 1,
                "clientIp": "192.168.0.103",
                "channelUser": "2088102175745703",
                "notifyUrl": "",
                "divisionMode": 0
            },
            {
                "ifCode": "alipay",
                "payOrderId": "P1475733919211876354",
                "wayName": "支付宝生活号",
                "mchOrderNo": "M1475733919014744066",
                "subject": "静态码支付",
                "channelOrderNo": "2021122822001445700502162578",
                "body": "静态码支付",
                "refundTimes": 0,
                "createdAt": "2021-12-28 15:42:38",
                "appId": "61b71cb5d9d220bcc03b79a5",
                "successTime": "2021-12-28 15:42:48",
                "currency": "cny",
                "divisionState": 0,
                "state": 2,
                "returnUrl": "",
                "mchNo": "M1639720870",
                "refundAmount": 0,
                "updatedAt": "2022-01-14 11:19:59",
                "mchFeeAmount": 111,
                "refundState": 0,
                "amount": 11100,
                "mchName": "213122",
                "wayCode": "ALI_JSAPI",
                "storeId": 1019,
                "expiredTime": "2021-12-28 17:42:39",
                "mchFeeRate": 0.010000,
                "notifyState": 0,
                "mchType": 1,
                "clientIp": "192.168.0.103",
                "channelUser": "2088102175745703",
                "notifyUrl": "",
                "divisionMode": 0
            }
        ],
        "hasNext": false
    }
}

备注:

-

文档更新时间: 2022-01-14 11:30   作者:马腾飞