店铺AI开放知识列表获取
| 名称 | 类型 | 是否必须 | 示例值 | 更多限制 | 描述 |
|---|---|---|---|---|---|
| seller_nick | String | 必须 | anta官方旗舰店 | 商家昵称 | |
| query | String | 可选 | 你好 | 用户query | |
| item_id | Number | 可选 | 123 | 淘宝商品id | |
| sku_id | Number | 可选 | 456 | 淘宝商品sku id | |
| search_type | String | 必须 | querysearch | querysearch: 使用 query 字段进行混合检索商品知识,返回相关商品信息片段。 itemsearch:使用 item_id 字段精确查询商品知识 queryitemsearch:使用 query 字段与 item_id 字段进行混合检索商品知识。 | |
| top | Number | 可选 | 3 | 返回条数,默认 3。非法值回退为默认值 |
| 名称 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| result | ShopAiOpenKnowledgeResult | 响应结果 | |
|
{"top":3,"item_id":123,"query":"你好","sku_id":456,"seller_nick":"anta官方旗舰店","search_type":"querysearch"}
{
"result":{
"success":true,
"errCode":"invalid_seller",
"data":[
{
"type":"item",
"content":"商品信息",
"feature":"扩展信息"
}
],
"errMsg":"非法商家"
}
}
{"result":{"errCode":"sign-check-failure","errMsg":"Illegal request"},"success":"false"}
| 错误码 | 错误描述 | 解决方案 |
|---|