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

alibaba.security.deepvision.proxy.smartmonitor.trade.deal (交易处置)

交易处置

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param TradeSessionRiskDealParam 可选 参数
  • └ risk_time
  • Number
  • 可选
  • 1
  • 风险发生时间
  • add_proofs
  • RiskTaskProofVO []
  • 可选
  • 对象
  • 新增证据列表
  • └ device_type
  • String
  • 可选
  • 1
  • 证据所属设备类型
  • └ proof_type
  • String
  • 可选
  • 1
  • 证据类型
  • └ start_time
  • Number
  • 可选
  • 1
  • 开始时间
  • └ remark
  • String
  • 可选
  • 1
  • 备注
  • └ proof
  • String
  • 可选
  • 1
  • 证据
  • └ end_time
  • Number
  • 可选
  • 1
  • 结束时间
  • └ device_id
  • String
  • 可选
  • 1
  • 证据所属设备
  • └ transaction_id
  • String
  • 可选
  • 1
  • transactionId
  • └ order_id
  • String
  • 可选
  • 1
  • 订单ID
  • add_losses
  • RiskTaskLossVO []
  • 可选
  • 对象
  • 新增损失列表
  • └ unit
  • String
  • 可选
  • 1
  • 单位
  • └ quantity
  • String
  • 可选
  • 1
  • 数量
  • └ price
  • Number
  • 可选
  • 1
  • 价格
  • └ name
  • String
  • 可选
  • 1
  • 名称
  • └ discount_amount
  • Number
  • 可选
  • 1
  • 优惠金额
  • └ image
  • String
  • 可选
  • 1
  • 商品图片
  • └ barcode
  • String
  • 可选
  • 1
  • 商品条形码
  • └ sku_code
  • String
  • 可选
  • 1
  • 商品编码
  • └ cost_price
  • Number
  • 可选
  • 1
  • 商品进价
  • └ sort_no
  • Number
  • 可选
  • 1
  • 损失序号
  • └ payer_id
  • String
  • 可选
  • 1
  • 支付ID
  • └ api_sign
  • String
  • 可选
  • 1
  • 参数签名
  • └ tenant_code
  • String
  • 必须
  • 1
  • 租户
  • └ deal_detail
  • String
  • 可选
  • 1
  • 备注
  • └ disposer
  • String
  • 可选
  • 1
  • 处置人
  • └ login_no
  • String
  • 必须
  • 1
  • 当前用户账号
  • └ transaction_id
  • String
  • 必须
  • 1
  • 会话ID
  • └ token
  • String
  • 可选
  • 1
  • token
  • └ disposer_field_id
  • String
  • 可选
  • 1
  • 处置人所属门店
  • └ del_loss_ids
  • String []
  • 可选
  • []
  • 删除损失列表
  • └ request_id
  • String
  • 可选
  • 1
  • 请求唯一ID
  • └ del_proof_ids
  • String []
  • 可选
  • []
  • 删除证据列表
  • └ hq_face
  • String
  • 可选
  • 1
  • 最佳人脸
  • └ login_name
  • String
  • 必须
  • 1
  • 当前用户名
  • └ deal_result_type
  • String
  • 必须
  • 1
  • 排查结果
  • └ deal_reason
  • String
  • 可选
  • 1
  • 处置原因/作案方式/原因
  • └ poi_id
  • String
  • 必须
  • 1
  • 门店
  • └ member_id
  • String
  • 可选
  • 1
  • 会员ID

响应参数

名称 类型 示例值 描述
result String 1 任务ID
resp_request_id String 1 请求唯一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);
AlibabaSecurityDeepvisionProxySmartmonitorTradeDealRequest req = new AlibabaSecurityDeepvisionProxySmartmonitorTradeDealRequest();
AlibabaSecurityDeepvisionProxySmartmonitorTradeDealRequest.TradeSessionRiskDealParam obj1 = new AlibabaSecurityDeepvisionProxySmartmonitorTradeDealRequest.TradeSessionRiskDealParam();
obj1.setRiskTime(1L);
List<AlibabaSecurityDeepvisionProxySmartmonitorTradeDealRequest.RiskTaskProofVO> list3 = new ArrayList<AlibabaSecurityDeepvisionProxySmartmonitorTradeDealRequest.RiskTaskProofVO>();
AlibabaSecurityDeepvisionProxySmartmonitorTradeDealRequest.RiskTaskProofVO obj4 = new AlibabaSecurityDeepvisionProxySmartmonitorTradeDealRequest.RiskTaskProofVO();
list3.add(obj4);
obj4.setDeviceType("1");
obj4.setProofType("1");
obj4.setStartTime(1L);
obj4.setRemark("1");
obj4.setProof("1");
obj4.setEndTime(1L);
obj4.setDeviceId("1");
obj4.setTransactionId("1");
obj1.setAddProofs(list3);
obj1.setOrderId("1");
List<AlibabaSecurityDeepvisionProxySmartmonitorTradeDealRequest.RiskTaskLossVO> list6 = new ArrayList<AlibabaSecurityDeepvisionProxySmartmonitorTradeDealRequest.RiskTaskLossVO>();
AlibabaSecurityDeepvisionProxySmartmonitorTradeDealRequest.RiskTaskLossVO obj7 = new AlibabaSecurityDeepvisionProxySmartmonitorTradeDealRequest.RiskTaskLossVO();
list6.add(obj7);
obj7.setUnit("1");
obj7.setQuantity("1");
obj7.setPrice(1L);
obj7.setName("1");
obj7.setDiscountAmount(1L);
obj7.setImage("1");
obj7.setBarcode("1");
obj7.setSkuCode("1");
obj7.setCostPrice(1L);
obj7.setSortNo(1L);
obj1.setAddLosses(list6);
obj1.setPayerId("1");
obj1.setApiSign("1");
obj1.setTenantCode("1");
obj1.setDealDetail("1");
obj1.setDisposer("1");
obj1.setLoginNo("1");
obj1.setTransactionId("1");
obj1.setToken("1");
obj1.setDisposerFieldId("1");
obj1.setDelLossIds("");
obj1.setRequestId("1");
obj1.setDelProofIds("");
obj1.setHqFace("1");
obj1.setLoginName("1");
obj1.setDealResultType("1");
obj1.setDealReason("1");
obj1.setPoiId("1");
obj1.setMemberId("1");
req.setParam(obj1);
AlibabaSecurityDeepvisionProxySmartmonitorTradeDealResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_security_deepvision_proxy_smartmonitor_trade_deal_response>
    <result>1</result>
    <resp_request_id>1</resp_request_id>
    <resp_success>true</resp_success>
    <resp_code>1</resp_code>
    <message>成功</message>
</alibaba_security_deepvision_proxy_smartmonitor_trade_deal_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

返回
顶部