文档中心 > API类目 > 五道口API

qimen.alibaba.wdk.cstore.products.get (获取喜士多商家商品类目信息)

喜士多商家商品类目接口

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
storeid String 必须 1001 门店id

响应参数

名称 类型 示例值 描述
success Boolean true 接口调用是否成功
err_code String 200 接口返回代码
err_message String success 接口返回消息
data Categories [] 接口返回消息体
  • └ id
  • String
  • 123
  • 类目id号
  • └ name
  • String
  • 关东煮
  • 类目显示名称
  • items
  • Products []
  • http://xxx/xxx.pic
  • 类目里的商品列表
  • └ skuCode
  • String
  • 123
  • 商品sku编号
  • └ name
  • String
  • 甜不辣
  • 商品显示名称
  • └ pic
  • String
  • http://xxx/xxx.jpg
  • 商品显示图片
  • └ pic
  • String
  • http://xxx/xxx.jpg
  • 分类图标url

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
QimenCloudClient client = new DefaultQimenCloudClient(url, appkey, secret);
AlibabaWdkCstoreProductsGetRequest req = new AlibabaWdkCstoreProductsGetRequest();
req.setStoreid("1001");
AlibabaWdkCstoreProductsGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<success>true</success>
<err_code>200</err_code>
<err_message>success</err_message>
<data>
    <categories>
        <id>123</id>
        <name>关东煮</name>
        <items>
            <products>
                <skuCode>123</skuCode>
                <name>甜不辣</name>
                <pic>http://xxx/xxx.jpg</pic>
            </products>
        </items>
        <pic>http://xxx/xxx.jpg</pic>
    </categories>
</data>

异常示例

  • 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

返回
顶部