注意:以下文档只适用于TOP接口,请谨慎使用!

文档中心 > API类目 > IoT售后解决方案API

cainiao.iot.ticket.sp.maintain.vtwo.create (服务商制定维修费方案)

服务商制定维修费方案

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
make_maintain_plan_top_request MakeMaintainPlanV2TopRequest 必须 维修方案
  • iot_maintain_plan_item_list
  • IotMaintainPlanItemTopRequest []
  • 必须
  • 维修项
  • └ item_code
  • String
  • 可选
  • 3241
  • 设备编码(需要映射)
  • └ pay_role
  • String
  • 可选
  • merchant
  • 付款角色:merchant-商家记账;customer-客户支付
  • └ problem_type_list
  • String []
  • 可选
  • 42
  • 问题列表(需要映射)
  • └ other_fee
  • String
  • 可选
  • 100.21
  • 其它费用
  • └ problem_cause_list
  • String []
  • 可选
  • 23
  • 问题原因(需要映射)
  • └ operator_phone
  • String
  • 可选
  • 13211111113
  • 操作人联系方式
  • └ operator_name
  • String
  • 可选
  • 张三
  • 操作人姓名
  • └ sp_code
  • String
  • 可选
  • testSpErp
  • 服务商编码
  • └ feature
  • String
  • 可选
  • {"备注":"扩展信息"}
  • 扩展属性
  • └ event_type_list
  • String []
  • 可选
  • 342
  • 事件类型(需要映射)
  • └ fee_remark
  • String
  • 可选
  • 人工费用
  • 费用描述
  • └ warranty_type
  • String
  • 可选
  • under_warranty
  • 保内保外(需要映射)
  • └ pay_picture_url
  • String
  • 可选
  • https://www.pay.picture.com
  • 支付图片二维码
  • └ operator_id
  • String
  • 可选
  • 32323
  • 操作人Id
  • └ labor_expense
  • String
  • 可选
  • 500
  • 人工费用
  • └ ticket_id
  • Number
  • 可选
  • 123413
  • 工单Id

响应参数

名称 类型 示例值 描述
result ResultDto 返回结果
  • └ error_desc
  • String
  • 系统错误
  • 异常描述
  • └ success
  • Boolean
  • true
  • 执行结果
  • └ error_code
  • String
  • SYSTEM_ERROR
  • 错误码

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
CainiaoIotTicketSpMaintainVtwoCreateRequest req = new CainiaoIotTicketSpMaintainVtwoCreateRequest();
CainiaoIotTicketSpMaintainVtwoCreateRequest.MakeMaintainPlanV2TopRequest obj1 = new CainiaoIotTicketSpMaintainVtwoCreateRequest.MakeMaintainPlanV2TopRequest();
List<CainiaoIotTicketSpMaintainVtwoCreateRequest.IotMaintainPlanItemTopRequest> list3 = new ArrayList<CainiaoIotTicketSpMaintainVtwoCreateRequest.IotMaintainPlanItemTopRequest>();
CainiaoIotTicketSpMaintainVtwoCreateRequest.IotMaintainPlanItemTopRequest obj4 = new CainiaoIotTicketSpMaintainVtwoCreateRequest.IotMaintainPlanItemTopRequest();
list3.add(obj4);
obj4.setItemCode("3241");
obj4.setPayRole("merchant");
obj1.setIotMaintainPlanItemList(list3);
obj1.setProblemTypeList("42");
obj1.setOtherFee("100.21");
obj1.setProblemCauseList("23");
obj1.setOperatorPhone("13211111113");
obj1.setOperatorName("张三");
obj1.setSpCode("testSpErp");
obj1.setFeature("{\"备注\":\"扩展信息\"}");
obj1.setEventTypeList("342");
obj1.setFeeRemark("人工费用");
obj1.setWarrantyType("under_warranty");
obj1.setPayPictureUrl("https://www.pay.picture.com");
obj1.setOperatorId("32323");
obj1.setLaborExpense("500");
obj1.setTicketId(123413L);
req.setMakeMaintainPlanTopRequest(obj1);
CainiaoIotTicketSpMaintainVtwoCreateResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<cainiao_iot_ticket_sp_maintain_vtwo_create_response>
    <result>
        <error_desc>系统错误</error_desc>
        <success>true</success>
        <error_code>SYSTEM_ERROR</error_code>
    </result>
</cainiao_iot_ticket_sp_maintain_vtwo_create_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

返回
顶部