Skip to main content

新页面按券号查询历史交易

接口用途

  • 根据券号筛选交易列表

接口地址

请求参数

字段 类型 是否必填 字段意义 备注
traceNo String app流水号 不允许重复
conditionInfo ConditionInfo 其他筛选条件 只上送筛选项

请求报文举例

{
    "traceNo": "APPTEST9100010101732123013",
    "conditionInfo": {
        "qrcode": "12312312313123"
    }
}

返回参数

字段 类型 是否必填 字段意义 备注
returnCode String 返回码 00表示交易成功,其他表示失败
returnDesc String 返回信息 交易结果描述或错误原因
totalamount Price 统计总金额 单位:元
totalcount int 统计总笔数 单位:元
saleamount Price 交易金额 单位:元
refundamount Price 退款金额 单位:元
currency String 货币类型 例如:CNY
entitys List<TransInfo> 交易列表  
dateDatasList List<DateData> 按日统计结果  
appNameDatasList List<AppNameData> 按应用统计结果

返回报文举例

{
    "dateDatasList": [{
        "amount": 0.02,
        "name": "20190402",
        "count": 3
    },{
        "amount": 0.02,
        "name": "20190403",
        "count": 3
    }],
    "totalcount": 3,
    "returnCode": "00",
    "totalamount": 0.02,
    "saleamount": 0.02,
    "appNameDatasList": [{
        "amount": 0.02,
        "name": "Alipay",
        "count": 2
    },{
        "amount": 0,
        "count": 1,
        "name": "Ecoupon"
    }],
    "currency": "CNY",
    "refundamount": 0,
    "returnDesc": "获取成功",
    "entitys": [
        {
            "createTime": 1569922420000,
            "returnCode": "00",
            "transtime": "183340",
            "transcationId": 514,
            "posno": "",
            "transdate": "20191001",
            "isRefund": "0",
            "amount": "333.33",
            "appName": "Ecoupon",
            "isVoid": "0",
            "orderNo": "29_36392055_1569922420023",
            "nickName": "matsuya001店長",
            "qrcode": "10010506195921748853",
            "transclass": "ecoupon-verify",
            "traceNo": "29_36392055_1569922420023"
        },
        {
            "returnCode": "00",
            "transtime": "145027",
            "amount": "0.01",
            "orderNo": "EP1904021450400686002000106",
            "nickName": "matsuya001店長",
            "transclass": "qrpay-sale",
            "isVoid": "0",
            "createTime": 1554187835000,
            "appName": "AlipayQrpay",
            "isRefund": "0",
            "transcationId": 1098,
            "transdate": "20190402"
        },
        {
            "returnCode": "00",
            "transtime": "143719",
            "amount": "0.01",
            "orderNo": "EP1904021437320686002000098",
            "nickName": "matsuya001店長",
            "transclass": "qrpay-sale",
            "isVoid": "0",
            "createTime": 1554187047000,
            "appName": "AlipayQrpay",
            "isRefund": "0",
            "transcationId": 1097,
            "transdate": "20190403"
        }
    ],
}