接口文档SDK业务专题开发者工具

商品列表
全部接口
V1.1
loading

所属权限
请求地址 product_items_list/get
请求方法 get

全局参数

全局参数是指每一个接口都需要使用到的参数。详情参考,代码案例参考

参数名称 参数类型
access_token 授权令牌,完成 OAuth 2.0 授权后获得,参考授权认证章节
timestamp

当前的时间戳,单位为秒,允许客户端请求最大时间误差为 300 秒。

MarketingAPI 所使用的时间戳,若无特殊说明,均为秒级时间戳

MarketingAPI 所使用的时区为 GMT+8,例如当时间戳为 1494840119 时,表示 2017-05-15 17:21:59

nonce 随机字串标识,不超过 32 个字符,由调用方自行生成,需保证全局唯一性
fields get 接口增加 fields 字段,用于指定返回参数的字段列表,为选填字段。fields 取值范围为 get 接口返回的 list 中的字段。如不填写,则根据默认值进行返回

请求参数

标有*的参数为必填项

名称 类型 描述
account_id*
integer 广告主 id,有操作权限的广告主 id,如果已经升级了工作台,则填写 bm_id
product_catalog_id*
integer 商品库 id
page_size*
integer 一页显示的数据条数
page*
integer 搜索页码,默认值:1 最小值 1,最大值 99999
sort_by_product_last_mod_time
enum 排序方式,[枚举详情]
枚举列表:{ DESC, ASC }
sort_by_product_name
enum 排序方式,[枚举详情]
枚举列表:{ DESC, ASC }

请求示例


curl -G 'https://api.e.qq.com/v1.1/product_items_list/get?access_token=<ACCESS_TOKEN>&timestamp=<TIMESTAMP>&nonce=<NONCE>' \
-d 'account_id=<ACCOUNT_ID>' \
-d 'page_size=10' \
-d 'page=1' 
					

应答字段

名称 类型 描述
list
struct[] 商品信息列表
product_catalog_id
integer 商品库 id
account_id
integer 广告主 id,有操作权限的广告主 id,如果已经升级了工作台,则填写 bm_id
product_outer_id
string 商品 id
product_name
string 商品名称
description
string 商品描述
custom_data
string 商品自定义属性
author
string 作者
image_url
string 主图 url
price
integer 商品价格(单位:元)
target_url_mobile
string 移动 H5 落地页
product_hash_id
integer 商品 hash id
reject_message
string 商品审计结果
system_status
enum 审核状态,[枚举详情]
last_modified_time
string 商品最新修改时间
additional_image_url
string[] 额外的商品图片 URL
product_sale_status
enum 商品销售状态,[枚举详情]
first_category_id
integer 一级分类 id
second_category_id
integer 二级分类 id
third_category_id
integer 三级分类 id
fourth_category_id
integer 四级分类 id
first_category_name
string 一级分类名称
second_category_name
string 二级分类名称
third_category_name
string 三级分类名称
fourth_category_name
string 四级分类名称
page_info
struct 分页配置信息
page
integer 搜索页码
page_size
integer 一页显示的数据条数
total_number
integer 总条数
total_page
integer 总页数

应答示例

{
    "code": 0,
    "message": "",
    "message_cn": "",
    "data": {
        "list": [
            {
                "account_id": "<ACCOUNT_ID>",
                "reject_message": "Reject message example",
                "last_modified_time": 1491098468,
                "additional_image_url": []
            }
        ],
        "page_info": {
            "page": 1,
            "page_size": 10,
            "total_number": 1,
            "total_page": 1
        }
    }
}

可视化调试工具