文档中心 > API类目 > 淘宝互动平台开放招募

taobao.interaction.tblife.shop.item.list (商城道具列表)

商城道具列表

公共参数

请求参数

名称 类型 是否必须 示例值 更多限制 描述
input OpenRequest 必须 请求信息
  • param
  • OpenShopItemQueryParam
  • 必须
  • 业务参数
  • └ biz_code
  • String
  • 必须
  • xxx
  • 业务场景

响应参数

名称 类型 示例值 描述
ouput OpenResponse 响应信息
  • └ trace_id
  • String
  • xxx
  • 追踪id
  • └ msg
  • String
  • xxx
  • 响应信息(通常用于请求报错时,返回报错信息)
  • └ code
  • String
  • xxx
  • 响应码
  • data
  • OpenShopItemInfoDTO []
  • 业务数据
  • └ item_id
  • Number
  • 1
  • 商品id
  • └ item_type
  • String
  • fashion
  • 商品类型
  • └ item_name
  • String
  • xxx
  • 商品名称
  • └ item_icon
  • String
  • https://xxx
  • 商品图标
  • └ point_type
  • String
  • xxx
  • 代币类型
  • └ cost
  • Number
  • 1000
  • 价格
  • └ limit
  • Boolean
  • false
  • 是否达到上限
  • └ floor_no
  • Number
  • 1
  • 楼层编号
  • └ pit_no
  • Number
  • 1
  • 楼层编号
  • └ success
  • Boolean
  • true
  • 是否成功
  • └ server_time
  • Number
  • 1669352100137
  • 服务器时间

请求示例

  • JAVA
  • .NET
  • PHP
  • CURL
  • Python
  • C/C++
  • NodeJS
TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
InteractionTblifeShopItemListRequest req = new InteractionTblifeShopItemListRequest();
InteractionTblifeShopItemListRequest.OpenRequest obj1 = new InteractionTblifeShopItemListRequest.OpenRequest();
InteractionTblifeShopItemListRequest.OpenShopItemQueryParam obj2 = new InteractionTblifeShopItemListRequest.OpenShopItemQueryParam();
obj2.setBizCode("xxx");
obj1.setParam(obj2);
req.setInput(obj1);
InteractionTblifeShopItemListResponse rsp = client.execute(req, sessionKey);
System.out.println(rsp.getBody());

响应示例

  • XML示例
  • JSON示例
<interaction_tblife_shop_item_list_response>
    <ouput>
        <trace_id>xxx</trace_id>
        <msg>xxx</msg>
        <code>xxx</code>
        <data>
            <open_shop_item_info_d_t_o>
                <item_id>1</item_id>
                <item_type>fashion</item_type>
                <item_name>xxx</item_name>
                <item_icon>https://xxx</item_icon>
                <point_type>xxx</point_type>
                <cost>1000</cost>
                <limit>false</limit>
                <floor_no>1</floor_no>
                <pit_no>1</pit_no>
            </open_shop_item_info_d_t_o>
        </data>
        <success>true</success>
        <server_time>1669352100137</server_time>
    </ouput>
</interaction_tblife_shop_item_list_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

返回
顶部