alibaba.kbcpa.distribute.itemdetail.get (本地生活口碑CPA分销媒体商品详情)

本地生活口碑CPA分销媒体商品详情

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
item_id String 必须 edsdsrwr2 商品列表里面返回的商品id
city_id String 必须 42323 城市id
aid String 必须 542342 商品列表里面返回的商品广告主id
cnid String 必须 7654345 商品列表里面返回的商品计划id

响应参数

名称 类型 示例值 描述
result ResultDTO ResultDTO 异步获取历史数据接口返回结果
  • result
  • KbItemDetail
  • KbItemDetail
  • 商品详情实体
  • └ valid_period
  • String
  • 7天内
  • 商品使用有效期
  • └ gmt_end
  • String
  • 2020-04-01 00:00:00
  • 结束售卖时间
  • └ gmt_start
  • String
  • 2020-01-01 00:00:00
  • 起始售卖时间
  • └ total_sales
  • Number
  • 534
  • 总销量
  • └ quantity
  • Number
  • 44
  • 该库存类型下的剩余库存
  • └ original_price
  • String
  • 555元
  • 原价
  • └ price
  • String
  • 444元
  • 现价
  • └ sub_title
  • String
  • 商品副标题
  • 副标题
  • └ title
  • String
  • 商品主标题
  • 主标题
  • └ cover
  • String
  • https://img.alicdn.com/i3/2200798722917/O1CN01Z2QLds1XQ1u1IGGmy_!!2200798722917-0-koubei.jpg
  • 商品封面图
  • └ tb_item_id
  • String
  • 6543454345
  • 淘宝商品id
  • └ images
  • String []
  • https://img.alicdn.com/i3/2200798722917/O1CN01Z2QLds1XQ1u1IGGmy_!!2200798722917-0-koubei.jpg
  • 商品橱窗图
  • image_texts
  • ItemImageTextDTO []
  • 商品内容中的图文信息
  • 商品内容中的图文信息
  • └ title
  • String
  • 图文标题
  • 图文标题
  • └ desc
  • String
  • 描述
  • 描述
  • └ urls
  • String []
  • 图片列表
  • 图片列表
  • shops
  • KbCpaShopDTO []
  • 商品关联门店
  • 商品关联门店
  • └ name
  • String
  • 门店名称
  • 门店名称
  • └ subname
  • String
  • 门店子名称
  • 门店子名称
  • └ status
  • Number
  • 1
  • 1生效,0失效
  • └ error_msg
  • String
  • 错误信息
  • 错误信息
  • └ error_code
  • String
  • 错误码
  • 错误码
  • └ success
  • String
  • true
  • 执行结果

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaKbcpaDistributeItemdetailGetRequest req = new AlibabaKbcpaDistributeItemdetailGetRequest();
req.setItemId("edsdsrwr2");
req.setCityId("42323");
req.setAid("542342");
req.setCnid("7654345");
AlibabaKbcpaDistributeItemdetailGetResponse rsp = client.execute(req);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<alibaba_kbcpa_distribute_itemdetail_get_response>
    <result>
        <result>
            <valid_period>7天内</valid_period>
            <gmt_end>2020-04-01 00:00:00</gmt_end>
            <gmt_start>2020-01-01 00:00:00</gmt_start>
            <total_sales>534</total_sales>
            <quantity>44</quantity>
            <original_price>555元</original_price>
            <price>444元</price>
            <sub_title>商品副标题</sub_title>
            <title>商品主标题</title>
            <cover>https://img.alicdn.com/i3/2200798722917/O1CN01Z2QLds1XQ1u1IGGmy_!!2200798722917-0-koubei.jpg</cover>
            <tb_item_id>6543454345</tb_item_id>
            <images>
                <string>https://img.alicdn.com/i3/2200798722917/O1CN01Z2QLds1XQ1u1IGGmy_!!2200798722917-0-koubei.jpg</string>
            </images>
            <image_texts>
                <item_image_text_d_t_o>
                    <title>图文标题</title>
                    <desc>描述</desc>
                    <urls>
                        <string>图片列表</string>
                    </urls>
                </item_image_text_d_t_o>
            </image_texts>
            <shops>
                <kb_cpa_shop_d_t_o>
                    <name>门店名称</name>
                    <subname>门店子名称</subname>
                </kb_cpa_shop_d_t_o>
            </shops>
            <status>1</status>
        </result>
        <error_msg>错误信息</error_msg>
        <error_code>错误码</error_code>
        <success>true</success>
    </result>
</alibaba_kbcpa_distribute_itemdetail_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

返回
顶部