文档中心 > API类目 > 天猫汽车

taobao.aliauto.risk.info.tmall.yc.service.sync (阿里汽车-天猫养车服务信息同步)

天猫养车服务风控,需要外部商家回传消费者服务核销信息

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
risk_info_sync_request RiskInfoSyncRequest 必须 风控同步请求
  • contents
  • RiskInfoSyncDTO []
  • 必须
  • 同步的内容列表,一批次最大100条
  • └ service_code
  • String
  • 可选
  • 123,456,789
  • 安装服务编码,多个逗号分隔
  • └ install_type
  • Number
  • 必须
  • 0
  • 安装类型 0:无需安装,1:到店安装
  • └ buyer_phone
  • String
  • 必须
  • 13012345678
  • 购买人手机号
  • └ tc_order_id
  • Number
  • 必须
  • 3882527336184474047
  • 淘系主订单ID
  • └ tc_sub_order_id
  • Number
  • 必须
  • 3882527336184474048
  • 淘系子订单ID
  • └ car_license_num
  • String
  • 可选
  • 浙AA12345
  • 车牌号
  • └ service_use_time
  • Date
  • 可选
  • 2000-01-01 00:00:00
  • 服务核销时间
  • └ buyer_name
  • String
  • 必须
  • 王五
  • 购买人姓名
  • └ work_order_submit_time
  • Date
  • 可选
  • 2000-01-01 00:00:00
  • 工单创建时间

响应参数

名称 类型 示例值 描述

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AliautoRiskInfoTmallYcServiceSyncRequest req = new AliautoRiskInfoTmallYcServiceSyncRequest();
AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncRequest obj1 = new AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncRequest();
List<AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncDTO> list3 = new ArrayList<AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncDTO>();
AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncDTO obj4 = new AliautoRiskInfoTmallYcServiceSyncRequest.RiskInfoSyncDTO();
list3.add(obj4);
obj4.setServiceCode("123,456,789");
obj4.setInstallType(0L);
obj4.setBuyerPhone("13012345678");
obj4.setTcOrderId(3882527336184474047L);
obj4.setTcSubOrderId(3882527336184474048L);
obj4.setCarLicenseNum("浙AA12345");
obj4.setServiceUseTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj4.setBuyerName("王五");
obj4.setWorkOrderSubmitTime(StringUtils.parseDateTime("2000-01-01 00:00:00"));
obj1.setContents(list3);
req.setRiskInfoSyncRequest(obj1);
AliautoRiskInfoTmallYcServiceSyncResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<aliauto_risk_info_tmall_yc_service_sync_response>
</aliauto_risk_info_tmall_yc_service_sync_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

返回
顶部