调用 GetActivityProducts 接口,获取指定直播间商品卡片菜单的配置信息,例如商品卡片菜单的 ID、名称、启用状态等信息,以及商品卡片的 ID、商品名称、售卖价等信息。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息详见公共参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | GetActivityProducts | 接口名称。当前 API 的名称为 GetActivityProducts。 |
| Version | String | 是 | 2023-08-01 | 接口版本。当前 API 的版本为 2023-08-01。 |
ActivityId | Long | 是 |
| 直播间 ID。您可通过调用 ListActivityAPI 接口获取 ID。 说明 使用子账号调用接口时,确保该直播间对子账号可见。有关如何配置子账号的可见范围,详见子账号管理。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| ProductConfigs | Array of ProductConfigs | - | 商品卡片菜单的配置信息。 |
| VerticalIconUrl | String | https://p.example.org/***.png | 移动端观看页的购物车图标 URL,包含协议头。 |
IsMultiProductExplainEnable | Integer |
| 是否开启多商品讲解功能。取值如下:
|
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Id | Long | 780 | 商品卡片菜单的 ID。 |
| MenuName | String | 商品卡片 | 商品卡片菜单的名称。 |
IsEnable | Boolean |
| 是否启用商品卡片菜单。取值如下:
|
EnableUA | Boolean |
| 是否开启直达链接功能。该功能仅移动端支持。取值如下:
|
UAInfo | Object of UAInfo |
| 直达链接的配置信息。 说明 该参数仅在 |
EnableMiniApp | Boolean |
| 是否开启微信小程序跳转功能。该功能仅移动端支持。取值如下:
|
MiniAppId | String |
| 跳转的微信小程序的原始 ID。 说明 该参数仅在 |
DisplayEnable | String |
| 商品卡片在观看页的入口。取值如下:
|
ProductsPosition | Integer |
| 浮窗商品卡片在 PC 端观看页的展示位置。取值如下:
|
EnableFloating | Boolean |
| 是否开启浮层展示。取值如下:
|
| DefaultRedirectImage | String | https://p.example.org/***.png | 商品卡片默认跳转图的 URL,包含协议头。 |
| Product | Object of Product | - | 商品卡片的配置信息。 |
| UAAddress | String | - | 已废弃。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
UAInfos | Array of UAInfos |
| 直达链接的配置信息。 说明 该参数仅在 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Products | Array of Products | - | 商品卡片的配置信息。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| UAName | String | 微信 | 环境名称,与 UAAddress 一一对应。 |
| UAAddress | String | MicroMessenger | 环境 UA,与 UAName 一一对应。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Id | Long | 105472 | 商品卡片的 ID。 |
| Index | Integer | 0 | 商品卡片的序号。取值范围为 [0,499]。 |
| IntroduceImage | String | https://p.example.org/***.png | 商品图的 URL,包含协议头。 |
PromotionTagType | Integer |
| 活动标签类型。取值如下:
|
| PromotionTagUrl | String | https://p.example.org/***.png | 活动标签的 URL,包含协议头。 |
| Title | String | 玫瑰慕斯蛋糕(小) | 商品名称。 |
| Remark | String | 超级好吃的玫瑰慕斯蛋糕 | 商品介绍。 |
| Highlight | String | ¥15 | 商品的售卖价,即当前价格。 |
| Strikethrough | String | ¥30 | 商品的参考价,即原价。 |
| SellingPointTag | String | 买二赠一;满50减20 | 卖点标签。卖点间以分号(;)相隔。 |
| RedirectImage | String | https://p.example.org/***.png | 跳转图的 URL,包含协议头。 |
DirectUrls | Array of String |
| 直达链接,包含协议头。当观众在环境 UA 匹配成功的移动端平台上点击商品卡片时,即可跳转至该链接。 说明 该参数仅在 |
MiniAppDirectUrl | String |
| 微信小程序链接,包含协议头。当观众在移动端微信环境点击商品卡片时,即可跳转至该微信小程序。 说明 该参数仅在 |
| RedirectUrl | String | https://example.com | 跳转链接,即商品详情页的链接,包含协议头。如果观众无法跳转至直达链接或微信小程序,则会跳转至该链接。 |
ReminderType | Integer |
| 在商品讲解期间的浮窗商品卡片和商品卡片菜单中,动效展示的提醒类型。取值如下:
|
HotSale | String |
| 热卖提醒数量。 说明 该参数仅在 |
Stock | String |
| 库存提醒数量。 说明 该参数仅在 |
EnableStatus | Integer |
| 是否上架商品。取值如下:
|
IsOrderMsgEnable | Integer |
| 是否开启下单消息。取值如下:
|
ExplainStatus | Integer |
| 商品讲解状态。取值如下:
说明 仅在开启直播时移功能时,该参数生效。更多有关直播时移的信息,详见直播时移。 |
| ExplainTime | Long | 0 | 最近一次修改商品讲解状态的时间。Unix 时间戳,单位为秒。取值为 0 表示未修改过商品讲解状态。 |
FloatingStatus | Integer |
| 是否浮窗展示商品卡片。取值如下:
说明 仅在未开启直播时移功能时,该参数生效。 |
FloatingTime | Long |
| 最近一次浮窗展示商品卡片的时间。Unix 时间戳,单位为秒。取值为 说明 仅在未开启直播时移功能时,该参数生效。 |
| PageAdvertisementType | Integer | 0 | 已废弃。 |
OutOfStock | Integer |
| 商品是否售罄。商品售罄后,观看页的商品图和跳转图将展示“已抢光”的文案。取值如下:
|
PriceHidden | Integer |
| 商品售卖价格是否为隐藏状态。商品价格隐藏后,观看页的商品售卖价将以“待开价¥???”的文案展示。取值如下:
|
GET https://livesaas.volcengineapi.com/?Action=GetActivityProducts&Version=2023-08-01&ActivityId=1776****89138
{ "ResponseMetadata": { "RequestId": "20230604110420****100232280022D31", "Action": "GetActivityProducts", "Version": "2023-08-01", "Service": "livesaas", "Region": "cn-north-1", "SystemTime": 1697446406 }, "Result": { "ProductConfigs": [ { "ProductsPosition": 0, "MiniAppId": "dsdwsd", "MenuName": "商品卡片", "Id": 780, "DisplayEnable": "1", "UAAddress": "-", "UAInfo": { "UAInfos": [ { "UAName": "微信", "UAAddress": "MicroMessenger" } ] }, "EnableMiniApp": true, "IsEnable": true, "DefaultRedirectImage": "https://p.example.org/***.png", "Product": { "Products": [ { "DirectUrls": [ "https://example.com", "https://example2.com" ], "ExplainTime": 0, "RedirectImage": "https://p.example.org/***.png", "Highlight": "¥15", "Id": 105472, "ExplainStatus": 0, "FloatingStatus": 1, "PageAdvertisementType": 0, "RedirectUrl": "https://example.com", "Strikethrough": "¥30", "Remark": "超级好吃的玫瑰慕斯蛋糕", "Index": 0, "IntroduceImage": "https://p.example.org/***.png", "Title": "玫瑰慕斯蛋糕(小)", "EnableStatus": 1, "MiniAppDirectUrl": "https://example.com", "HotSale": "1000", "IsOrderMsgEnable": 1, "PromotionTagType": 1, "PromotionTagUrl": "https://p.example.org/***.png", "ReminderType": 1, "SellingPointTag": "买二赠一;满50减20", "Stock": "50", "FloatingTime": 1742875086, "OutOfStock": 0, "PriceHidden": 0 } ] }, "EnableFloating": true, "EnableUA": true } ], "VerticalIconUrl": "https://p.example.org/***.png", "IsMultiProductExplainEnable": 1 } }