- 支付
- 私域
- 公域
- 营销
- 资金
- 会员
- 信用
- 安全
- 其他
申请创建搜索直达配置
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v3/alipay/open/search/box/apply
alipay.open.search.box
通过该接口创建搜索直达,满足准入门槛时,创建后立马生效。
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v3/alipay/open/search/box/apply' \
--header 'Content-Type: application/json' \
--data-raw '{
"box_desc": "品牌介绍",
"brand_id": "1000467882",
"business_benefit_switch": true,
"image_id": "A*oZQmT4xTBPUAAAAAAAAAAAAAAQAAAQ",
"image_name": "氛围图1",
"merchant_id": "2088xxxxxxxxxxxx",
"related_accounts": [
{
"app_name": "string",
"app_type": "string",
"relate_appid": "string"
}
],
"service_infos": [
{
"service_category_code": "string",
"service_category_name": "string",
"service_code": "string",
"service_name": "string"
}
],
"target_appid": "2018092561507369",
"area_keywords": "[\"简称触发词\"]",
"business_district_ids": "[\"商圈id\"]",
"custom_keywords": "[\"自定义触发词\"]"
}'
响应示例响应示例
200 - 示例 1
{
"box_id": "20220117000000112680"
}
请求参数
Body 参数application/json
box_desc
string
可选
示例值:
品牌介绍
business_benefit_switch
boolean
可选
示例值:
true
image_name
string
可选
示例值:
氛围图1
merchant_id
string
可选
示例值:
2088xxxxxxxxxxxx
related_accounts
array[object (SearchBoxAppInfo) {3}]
可选
app_name
string
应用名称
app_type
string
可选
relate_appid
string
应用ID
service_infos
array[object (SearchBoxServiceInfo) {4}]
可选
service_category_code
string
服务类目编码
service_category_name
string
服务类目名称
service_code
string
服务编码
service_name
string
服务名称
area_keywords
array[string]
可选
示例值:
["简称触发词"]
business_district_ids
array[string]
可选
示例值:
["商圈id"]
custom_keywords
array[string]
可 选
示例值:
["自定义触发词"]
示例
返回响应
🟢200common response
application/json
Body
box_id
string
搜索直达配置id
示例值:
20220117000000112680
🔴500请求失败