文档中心 > API类目 > 新制造API

taobao.rhino.integration.cut.ticket.add (裁剪指示单新增)

裁剪指示单新增

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
batch_add_cut_ticket BatchAddCutTicket 可选 批量新增裁剪指示单请求
  • └ seq_id
  • String
  • 可选
  • xxx-xxxx
  • 请求序列号
  • ticket_list
  • AddCutTicket []
  • 可选
  • []
  • 裁剪指示单列表
  • └ ticket_no
  • String
  • 可选
  • 12312121
  • 裁剪指示单
  • └ plan_order_list
  • String []
  • 可选
  • ["1212","1212"]
  • Pps号

响应参数

名称 类型 示例值 描述
result HSFResult 响应结果
  • └ code
  • String
  • 200
  • 响应码
  • └ error_code
  • String
  • null
  • 错误码
  • └ external_msg_info
  • String
  • null
  • 错误信息
  • └ message
  • String
  • 成功
  • 响应信息
  • └ model
  • Boolean
  • true
  • 是否添加成功
  • └ success
  • String
  • true
  • 是否调用成功

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RhinoIntegrationCutTicketAddRequest req = new RhinoIntegrationCutTicketAddRequest();
RhinoIntegrationCutTicketAddRequest.BatchAddCutTicket obj1 = new RhinoIntegrationCutTicketAddRequest.BatchAddCutTicket();
obj1.setSeqId("xxx-xxxx");
List<RhinoIntegrationCutTicketAddRequest.AddCutTicket> list3 = new ArrayList<RhinoIntegrationCutTicketAddRequest.AddCutTicket>();
RhinoIntegrationCutTicketAddRequest.AddCutTicket obj4 = new RhinoIntegrationCutTicketAddRequest.AddCutTicket();
list3.add(obj4);
obj4.setTicketNo("12312121");
obj4.setPlanOrderList(""1212","1212"");
obj1.setTicketList(list3);
req.setBatchAddCutTicket(obj1);
RhinoIntegrationCutTicketAddResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<rhino_integration_cut_ticket_add_response>
    <result>
        <code>200</code>
        <error_code>null</error_code>
        <external_msg_info>null</external_msg_info>
        <message>成功</message>
        <model>true</model>
        <success>true</success>
    </result>
</rhino_integration_cut_ticket_add_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

返回
顶部