文档中心 > API类目 > 天眼工作室API

alibaba.security.deepvision.proxy.smartmonitor.trade.pagequery (交易日志分页查询)

交易日志分页查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param TradeSessionQueryParam 可选 参数
  • └ start_time_from_eq
  • Number
  • 必须
  • 1
  • 交易开始时间从
  • └ order_id
  • String
  • 可选
  • 1
  • 订单ID
  • └ is_link_archive
  • Boolean
  • 可选
  • false
  • 是否关联档案
  • └ api_sign
  • String
  • 可选
  • 111
  • 参数签名
  • └ page_size
  • Number
  • 必须
  • 1
  • 每页记录数
  • └ deal_status
  • String
  • 可选
  • not_checked
  • 排查状态
  • └ deal_result_types
  • String []
  • 可选
  • []
  • 处置结果类型
  • └ tenant_code
  • String
  • 必须
  • 1
  • 租户编码
  • └ member_id
  • String
  • 可选
  • 1
  • 用户ID
  • └ final_risk
  • Number
  • 可选
  • 1
  • 最终风险
  • └ transaction_id
  • String
  • 可选
  • 1
  • 交易会话ID
  • └ token
  • String
  • 可选
  • 1
  • Token
  • └ risk_type
  • Number
  • 可选
  • 1
  • 交易风险类型
  • └ page_no
  • Number
  • 必须
  • 1
  • 页号
  • └ request_id
  • String
  • 可选
  • 1
  • 请求唯一ID
  • └ start_time_to_eq
  • Number
  • 必须
  • 1
  • 交易开始时间到
  • └ pay_status
  • Number
  • 可选
  • 1
  • 支付状态
  • └ pos_device_id
  • String
  • 可选
  • 1
  • POS机ID
  • └ poi_id
  • String
  • 必须
  • 1
  • 门店
  • └ payer_id
  • String
  • 可选
  • 1
  • 支付ID
  • └ pos_terminal_type
  • Number
  • 可选
  • 1
  • POS类型

响应参数

名称 类型 示例值 描述
result PageVO 返回值
  • └ total
  • Number
  • 1
  • 总记录数
  • └ pages
  • Number
  • 1
  • 总页数
  • └ size
  • Number
  • 1
  • 当前页记录数
  • items
  • Datas []
  • 列表
  • └ transaction_id
  • String
  • 1
  • 交易会话ID
  • └ start_time
  • Number
  • 1
  • 交易开始时间,时间戳
  • └ pay_status
  • Number
  • 1
  • 支付状态
  • └ pos_id
  • String
  • 1
  • POS机ID
  • └ member_id
  • String
  • 1
  • 用户ID
  • └ order_id
  • String
  • 1
  • 订单ID
  • └ risk_type
  • String
  • 1
  • 风险类型,中文
  • └ final_risk
  • Number
  • 1
  • 最终风险/机判风险
  • └ face_urls
  • String []
  • 人脸照片URL,有效期1小时
  • └ body_urls
  • String []
  • 人体照片URL,有效期1小时
  • └ task_id
  • String
  • 1
  • 任务ID,交易已排查时有值
  • └ deal_reason
  • String
  • 1
  • 处置原因
  • └ deal_detail
  • String
  • 1
  • 处置描述
  • └ deal_result_type
  • String
  • 1
  • 处置结果
  • └ goods_num
  • Number
  • 1
  • 待挽回商品件数
  • └ recoverable_amount
  • Number
  • 1
  • 待挽回金额
  • └ recovered_amount
  • Number
  • 1
  • 作废
  • └ archive_id
  • String
  • 1
  • 档案ID
  • └ operator
  • String
  • 1
  • 最后操作人
  • └ risk_type_codes
  • String []
  • 风险类型列表
  • └ payer_id
  • String
  • 1
  • 支付ID
  • └ user_id
  • String
  • 1
  • 会员ID
  • └ pos_terminal_type
  • Number
  • 1
  • POS类型
resp_request_id String 11111 请求唯一ID
resp_success Boolean true 是否成功
resp_code Number 1 返回码
message String 成功 返回描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaSecurityDeepvisionProxySmartmonitorTradePagequeryRequest req = new AlibabaSecurityDeepvisionProxySmartmonitorTradePagequeryRequest();
AlibabaSecurityDeepvisionProxySmartmonitorTradePagequeryRequest.TradeSessionQueryParam obj1 = new AlibabaSecurityDeepvisionProxySmartmonitorTradePagequeryRequest.TradeSessionQueryParam();
obj1.setStartTimeFromEq(1L);
obj1.setOrderId("1");
obj1.setIsLinkArchive(false);
obj1.setApiSign("111");
obj1.setPageSize(1L);
obj1.setDealStatus("not_checked");
obj1.setDealResultTypes("");
obj1.setTenantCode("1");
obj1.setMemberId("1");
obj1.setFinalRisk(1L);
obj1.setTransactionId("1");
obj1.setToken("1");
obj1.setRiskType(1L);
obj1.setPageNo(1L);
obj1.setRequestId("1");
obj1.setStartTimeToEq(1L);
obj1.setPayStatus(1L);
obj1.setPosDeviceId("1");
obj1.setPoiId("1");
obj1.setPayerId("1");
obj1.setPosTerminalType(1L);
req.setParam(obj1);
AlibabaSecurityDeepvisionProxySmartmonitorTradePagequeryResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_security_deepvision_proxy_smartmonitor_trade_pagequery_response>
    <result>
        <total>1</total>
        <pages>1</pages>
        <size>1</size>
        <items>
            <datas>
                <transaction_id>1</transaction_id>
                <start_time>1</start_time>
                <pay_status>1</pay_status>
                <pos_id>1</pos_id>
                <member_id>1</member_id>
                <order_id>1</order_id>
                <risk_type>1</risk_type>
                <final_risk>1</final_risk>
                <task_id>1</task_id>
                <deal_reason>1</deal_reason>
                <deal_detail>1</deal_detail>
                <deal_result_type>1</deal_result_type>
                <goods_num>1</goods_num>
                <recoverable_amount>1</recoverable_amount>
                <recovered_amount>1</recovered_amount>
                <archive_id>1</archive_id>
                <operator>1</operator>
                <payer_id>1</payer_id>
                <user_id>1</user_id>
                <pos_terminal_type>1</pos_terminal_type>
            </datas>
        </items>
    </result>
    <resp_request_id>11111</resp_request_id>
    <resp_success>true</resp_success>
    <resp_code>1</resp_code>
    <message>成功</message>
</alibaba_security_deepvision_proxy_smartmonitor_trade_pagequery_response>

异常示例

  • XML示例
  • JSON示例
<error_response>
    <code>50</code>
    <msg>Remote service error</msg>
    <sub_code>isv.invalid-parameter</sub_code>
    <sub_msg>非法参数</sub_msg>
</error_response>

错误码解释

错误码 错误描述 解决方案

API工具

如何获得此API

FAQ

返回
顶部