文档中心 > API类目 > 全球速卖通-商品管理

aliexpress.postproduct.redefining.categoryforecast (类目预测)

类目预测,根据商品标题预测商品的叶子类目,可以刷选已经通过准入申请的类目

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
subject String 可选 elle+sport+sujetador+deportivo+gunn+rosa 商品标题
locale String 可选 es
  • 默认值:es
  • 商品标题语言:en,ru,pt,id,es,fr,it,de,nl,tr,he,ja,ar,th,vi,ko,pl 默认为es
    forecast_mode String 可选 1
  • 默认值:1
  • 预测模式=1,精准预测; 模式=2,模糊预测;不填写时,默认为1
    is_filter_by_permission String 可选 N
  • 默认值:N
  • 是否过滤类目准入权限N=不过滤|Y=过滤,不填写时,默认为N

    响应参数

    名称 类型 示例值 描述
    result AeopCategoryForecastResultDto result
    • └ error_message
    • String
    • The result of dii is empty. It should have a correct JSON format data return.
    • 错误信息
    • └ category_suitability_list
    • Json []
    • 预测结果
    • └ time_stamp
    • Date
    • 20181101111211
    • 时间戳
    • └ error_code
    • Number
    • 24000011
    • 错误代码
    • └ success
    • Boolean
    • true
    • 调用结果

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AliexpressPostproductRedefiningCategoryforecastRequest req = new AliexpressPostproductRedefiningCategoryforecastRequest();
    req.setSubject("elle+sport+sujetador+deportivo+gunn+rosa");
    req.setLocale("es");
    req.setForecastMode("1");
    req.setIsFilterByPermission("N");
    AliexpressPostproductRedefiningCategoryforecastResponse rsp = client.execute(req, sessionKey);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <aliexpress_postproduct_redefining_categoryforecast_response>
        <result>
            <error_message>The result of dii is empty. It should have a correct JSON format data return.</error_message>
            <category_suitability_list>
                <json></json>
            </category_suitability_list>
            <time_stamp>20181101111211</time_stamp>
            <error_code>24000011</error_code>
            <success>true</success>
        </result>
    </aliexpress_postproduct_redefining_categoryforecast_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

    返回
    顶部