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

taobao.rhino.integration.crafts.product.get (工艺.产品(款)信息获取)

工艺.产品(款)信息获取

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
get_product_req GetProductReq 可选 获取产品(款)信息
  • └ enterprise_source_id
  • String
  • 必须
  • kai
  • 客户企业ID
  • └ source_channel_key
  • String
  • 必须
  • 111
  • 产品来源ID(幂等键)

响应参数

名称 类型 示例值 描述
result HSFResult 结果
  • └ code
  • Number
  • 200
  • 返回码
  • └ success
  • Boolean
  • true
  • 是否成功
  • model
  • ProductResp
  • 产品(款)信息
  • └ product_id
  • Number
  • 10000
  • 产品ID
  • └ source_channel_key
  • String
  • 22HT23
  • 产品来源ID(幂等键)
  • └ product_name
  • String
  • xx春款1001
  • 产品名称
  • └ merchant_name
  • String
  • 我是商家名
  • 商家名称
  • └ merchant_id
  • Number
  • 1
  • 商家ID
  • └ craft_id
  • Number
  • 1001
  • 工艺品类id
  • └ craft_name
  • String
  • 牛仔
  • 品类名
  • └ biz_id_category
  • String
  • 3428438-rhino_turing
  • 工艺类目id
  • └ category_name
  • String
  • 长款外套
  • 工艺类目名称
  • └ contract_num
  • String
  • HT0001
  • 合同号
  • └ outer_businesss_num
  • String
  • 0001
  • 对外商务编号
  • └ create_date
  • Date
  • 2024-07-21 00:00:00
  • 创建时间
  • └ message
  • String
  • 成功
  • 返回信息

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
RhinoIntegrationCraftsProductGetRequest req = new RhinoIntegrationCraftsProductGetRequest();
RhinoIntegrationCraftsProductGetRequest.GetProductReq obj1 = new RhinoIntegrationCraftsProductGetRequest.GetProductReq();
obj1.setEnterpriseSourceId("kai");
obj1.setSourceChannelKey("111");
req.setGetProductReq(obj1);
RhinoIntegrationCraftsProductGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<rhino_integration_crafts_product_get_response>
    <result>
        <code>200</code>
        <success>true</success>
        <model>
            <product_id>10000</product_id>
            <source_channel_key>22HT23</source_channel_key>
            <product_name>xx春款1001</product_name>
            <merchant_name>我是商家名</merchant_name>
            <merchant_id>1</merchant_id>
            <craft_id>1001</craft_id>
            <craft_name>牛仔</craft_name>
            <biz_id_category>3428438-rhino_turing</biz_id_category>
            <category_name>长款外套</category_name>
            <contract_num>HT0001</contract_num>
            <outer_businesss_num>0001</outer_businesss_num>
            <create_date>2024-07-21 00:00:00</create_date>
        </model>
        <message>成功</message>
    </result>
</rhino_integration_crafts_product_get_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

返回
顶部