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

taobao.rhino.integration.crafts.product.sync (工艺.产品(款)信息同步)

工艺.产品(款)信息同步

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
sync_product_req SyncProductReq 可选 产品(款)同步请求
  • └ biz_id_category
  • String
  • 可选
  • 3428438-rhino_turing
  • 工艺类目id
  • └ craft_id
  • Number
  • 可选
  • 1001
  • 工艺品类id
  • └ product_name
  • String
  • 必须
  • 产品1
  • 产品名称
  • └ merchant_name
  • String
  • 可选
  • 测试
  • 商家名称
  • └ outer_business_num
  • String
  • 可选
  • P10001
  • 对外商务编号
  • └ create_by
  • String
  • 可选
  • zhang
  • 即user_source_id
  • └ enterprise_source_id
  • String
  • 必须
  • 10007
  • 客户企业ID
  • └ merchant_id
  • Number
  • 可选
  • 1
  • 商家ID
  • └ product_picture
  • String
  • 可选
  • data:image/png
  • 产品图base64
  • └ contract_num
  • String
  • 可选
  • CN1001
  • 合同号
  • └ source_channel_key
  • String
  • 必须
  • 22HT23
  • 产品来源ID(幂等键

响应参数

名称 类型 示例值 描述
result HSFResult 结果
  • └ code
  • Number
  • 200
  • 响应码
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ error_code
  • Number
  • 201
  • 用户信息为空
  • └ model
  • Number
  • 10001
  • 产品ID
  • └ message
  • String
  • 成功
  • 响应信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RhinoIntegrationCraftsProductSyncRequest req = new RhinoIntegrationCraftsProductSyncRequest();
RhinoIntegrationCraftsProductSyncRequest.SyncProductReq obj1 = new RhinoIntegrationCraftsProductSyncRequest.SyncProductReq();
obj1.setBizIdCategory("3428438-rhino_turing");
obj1.setCraftId(1001L);
obj1.setProductName("产品1");
obj1.setMerchantName("测试");
obj1.setOuterBusinessNum("P10001");
obj1.setCreateBy("zhang");
obj1.setEnterpriseSourceId("10007");
obj1.setMerchantId(1L);
obj1.setProductPicture("data:image/png");
obj1.setContractNum("CN1001");
obj1.setSourceChannelKey("22HT23");
req.setSyncProductReq(obj1);
RhinoIntegrationCraftsProductSyncResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<rhino_integration_crafts_product_sync_response>
    <result>
        <code>200</code>
        <success>true</success>
        <error_code>201</error_code>
        <model>10001</model>
        <message>成功</message>
    </result>
</rhino_integration_crafts_product_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

返回
顶部