alibaba.imap.fixedmapping.query (查询两个渠道之间的固定映射关系,不通过算法兜底)

查询两个渠道之间的固定映射关系,不通过算法兜底

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
password String 可选 gEzsP9NyWNPvLAqM 密码
app_name String 可选 test_app_name 账号
src_channel_id Number 可选 71 源渠道ID
target_channel_id_list Number [] 可选 [31]
  • 最大列表长度:20
  • 目标渠道ID列表
    target_category_id Number 可选 1 目标渠道ID
    src_category_id Number 可选 1 源类目ID

    响应参数

    名称 类型 示例值 描述
    result Result 接口返回model
    • └ success
    • Boolean
    • true
    • 是否成功
    • top_imap_union_category_path_do_list
    • TopImapUnionCategoryPathDo []
    • list参数
    • └ l5_cat_id
    • Number
    • demo
    • 五级类目ID
    • └ leaf_cat_name
    • String
    • 纯牛奶
    • 叶子类目名称
    • └ l3_cat_id
    • Number
    • 147561302
    • 三级类目ID
    • └ leaf
    • Boolean
    • true
    • 是否叶子类目
    • └ leaf_cat_id
    • Number
    • 147561302
    • 叶子类目ID
    • └ l1_cat_id
    • Number
    • 147561201
    • 一级类目ID
    • └ l4_cat_name
    • String
    • demo
    • 四级类目名称
    • └ l2_cat_name
    • String
    • 乳制品
    • 二级类目名称
    • └ l3_cat_name
    • String
    • 纯牛奶
    • 三级类目名称
    • └ l4_cat_id
    • Number
    • demo
    • 四级类目ID
    • └ l5_cat_name
    • String
    • demo
    • 五级类目名称
    • └ l2_cat_id
    • Number
    • 147561301
    • 二级类目ID
    • └ l1_cat_name
    • String
    • 咖啡/麦片/冲饮
    • 一级类目名称
    • └ channel_id
    • Number
    • demo
    • 渠道ID
    • └ error_msg
    • String
    • demo
    • 错误信息

    请求示例

    • JAVA
    • .NET
    • PHP
    • CURL
    • Python
    • C/C++
    • NodeJS
    TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
    AlibabaImapFixedmappingQueryRequest req = new AlibabaImapFixedmappingQueryRequest();
    req.setPassword("gEzsP9NyWNPvLAqM");
    req.setAppName("test_app_name");
    req.setSrcChannelId(71L);
    req.setTargetChannelIdList("31");
    req.setTargetCategoryId(1L);
    req.setSrcCategoryId(1L);
    AlibabaImapFixedmappingQueryResponse rsp = client.execute(req);
    System.out.println(rsp.getBody());

    响应示例

    • XML示例
    • JSON示例
    <alibaba_imap_fixedmapping_query_response>
        <result>
            <success>true</success>
            <top_imap_union_category_path_do_list>
                <top_imap_union_category_path_do>
                    <l5_cat_id>demo</l5_cat_id>
                    <leaf_cat_name>纯牛奶</leaf_cat_name>
                    <l3_cat_id>147561302</l3_cat_id>
                    <leaf>true</leaf>
                    <leaf_cat_id>147561302</leaf_cat_id>
                    <l1_cat_id>147561201</l1_cat_id>
                    <l4_cat_name>demo</l4_cat_name>
                    <l2_cat_name>乳制品</l2_cat_name>
                    <l3_cat_name>纯牛奶</l3_cat_name>
                    <l4_cat_id>demo</l4_cat_id>
                    <l5_cat_name>demo</l5_cat_name>
                    <l2_cat_id>147561301</l2_cat_id>
                    <l1_cat_name>咖啡/麦片/冲饮</l1_cat_name>
                    <channel_id>demo</channel_id>
                </top_imap_union_category_path_do>
            </top_imap_union_category_path_do_list>
            <error_msg>demo</error_msg>
        </result>
    </alibaba_imap_fixedmapping_query_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

    返回
    顶部