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

taobao.rhino.integration.outer.type.sync (外协类型同步)

外协类型同步

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param_batch_sync_outer_type BatchSyncOuterType 必须 外协类型同步请求参数
  • outer_type_list
  • SyncOuterType []
  • 必须
  • 外协类型列表
  • └ code
  • String
  • 必须
  • 103260001
  • 外协类型编码
  • └ count_source
  • String
  • 可选
  • 按裁剪量
  • 计数来源
  • └ enter_type
  • String
  • 可选
  • 缝制入库
  • 入库类型
  • └ name
  • String
  • 必须
  • 外协司马克
  • 外协类型名称

响应参数

名称 类型 示例值 描述
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);
RhinoIntegrationOuterTypeSyncRequest req = new RhinoIntegrationOuterTypeSyncRequest();
RhinoIntegrationOuterTypeSyncRequest.BatchSyncOuterType obj1 = new RhinoIntegrationOuterTypeSyncRequest.BatchSyncOuterType();
List<RhinoIntegrationOuterTypeSyncRequest.SyncOuterType> list3 = new ArrayList<RhinoIntegrationOuterTypeSyncRequest.SyncOuterType>();
RhinoIntegrationOuterTypeSyncRequest.SyncOuterType obj4 = new RhinoIntegrationOuterTypeSyncRequest.SyncOuterType();
list3.add(obj4);
obj4.setCode("103260001");
obj4.setCountSource("按裁剪量");
obj4.setEnterType("缝制入库");
obj4.setName("外协司马克");
obj1.setOuterTypeList(list3);
req.setParamBatchSyncOuterType(obj1);
RhinoIntegrationOuterTypeSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<rhino_integration_outer_type_sync_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_outer_type_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

返回
顶部