获取订阅的商品列表
接口说明
通过该接口,带货机构可获取已订阅的商品
注: 订阅的商品包括通过API主动订阅,以及将商品加入合作时被动触发订阅的两种情况
接口调用请求说明
请求参数说明
参数 | 类型 | 是否必填 | 描述 |
filter | object GetSubscribeProductFilter | 否 | 筛选条件,结构体详情请参考GetSubscribeProductFilter |
page_size | number | 是 | 每页数量(不超过1000) |
next_key | string | 否 | 翻页参数,从第二页开始传,来源于上一页的返回值 |
need_total_num | bool | 否 | 是否需要返回符合条件的记录总数 |
请求参数示例
返回参数说明
参数 | 类型 | 描述 |
errcode | number | 错误码 |
errmsg | string | 错误信息 |
subscribe_info_list | Array of SubscribeProductInfo | 订阅的商品信息列表,结构体参考SubscribeProductInfo |
total_num | number | 符合条件的记录总数 |
next_key | string | 翻页参数 |
has_more | bool | 是否还有下一页 |
返回参数示例
结构体
GetSubscribeProductFilter
查询筛选
参数 | 类型 | 描述 |
product_id | number | 商品id |
product_name | string | 商品名称 |
appid | string | 店铺AppID |
SubscribeProductInfo
订阅的商品信息
参数 | 类型 | 描述 |
product_id | number | 商品id |
shop_appid | string | 店铺AppID |
错误码
错误码 | 错误描述 |
公共错误码 | - |
10024000 | 参数错误 |