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

alibaba.xsd.platform.category.get (淘鲜达平台类目属性查询)

淘鲜达平台类目属性查询

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
param CategoryQueryRequest 必须 入参
  • └ category_id
  • Number
  • 可选
  • 12345
  • 类目id

响应参数

名称 类型 示例值 描述
result ApiResult result
  • └ success
  • Boolean
  • true
  • 接口调用成功/失败
  • └ err_code
  • String
  • systemError
  • 接口错误码
  • └ err_msg
  • String
  • 系统错误
  • 接口错误描述
  • model
  • XsdCatePropDTO []
  • 类目及相关属性
  • └ category_id
  • Number
  • 12345
  • 类目id
  • └ category_path
  • String
  • 一级类目->二级类目->三级类目->四级类目
  • 类目名称
  • category_props
  • XsdCatPropertyDTO []
  • 类目属性列表
  • └ cat_property_id
  • Number
  • 123
  • 类目属性项id
  • └ cat_property_name
  • String
  • 颜色分类
  • 类目属性项名称
  • └ required_flag
  • Number
  • 1
  • 是否必选 * 1:必填 0:非必填
  • └ allow_define_pic_flag
  • Number
  • 1
  • 是否允许自定义属性图片 * 1:允许 0:不允许
  • └ cat_property_values
  • String
  • [{"propertyValueOrder":0,"propertyValueName":"白色","propertyValueId":28320,"class":"com.tc.txd.biz.client.domain.category.CategoryPropertyValueDTO"}]
  • 类目属性值列表

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaXsdPlatformCategoryGetRequest req = new AlibabaXsdPlatformCategoryGetRequest();
AlibabaXsdPlatformCategoryGetRequest.CategoryQueryRequest obj1 = new AlibabaXsdPlatformCategoryGetRequest.CategoryQueryRequest();
obj1.setCategoryId(12345L);
req.setParam(obj1);
AlibabaXsdPlatformCategoryGetResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_xsd_platform_category_get_response>
    <result>
        <success>true</success>
        <err_code>systemError</err_code>
        <err_msg>系统错误</err_msg>
        <model>
            <xsd_cate_prop_d_t_o>
                <category_id>12345</category_id>
                <category_path>一级类目-&gt;二级类目-&gt;三级类目-&gt;四级类目</category_path>
                <category_props>
                    <xsd_cat_property_d_t_o>
                        <cat_property_id>123</cat_property_id>
                        <cat_property_name>颜色分类</cat_property_name>
                        <required_flag>1</required_flag>
                        <allow_define_pic_flag>1</allow_define_pic_flag>
                        <cat_property_values>[{&quot;propertyValueOrder&quot;:0,&quot;propertyValueName&quot;:&quot;白色&quot;,&quot;propertyValueId&quot;:28320,&quot;class&quot;:&quot;com.tc.txd.biz.client.domain.category.CategoryPropertyValueDTO&quot;}]</cat_property_values>
                    </xsd_cat_property_d_t_o>
                </category_props>
            </xsd_cate_prop_d_t_o>
        </model>
    </result>
</alibaba_xsd_platform_category_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

返回
顶部