配置开放能力实现接口
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
https://open.douyin.com/api/industry/v1/solution/set_impl
该接口用于一键配置解决方案中的扩展点、消息的回调地址,并对小程序进行自动发布。
通用参数
参见https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/server/trade-system/agency-trade-system/common-param/
4.1.2 字段说明
名称 | 类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
operator | string | 是 | 当次请求操作人 | 小王 |
release_reason | string | 是 | 发布原因 140字以内 | 配置团购行业扩展点实现地址 |
industry_impl_list | List | 是 | 各行业的实现数据 | [{IndustryImpl1},{IndustryImpl2}] 不设置时传 [ ] |
app_config_item_list | List | 是 | 小程序配置项列表 | [{AppConfigItem1},{AppConfigItem2}] 不设置时传 [ ] |
IndustryImplList 字段说明
名称 | 类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
solution_id | string | 是 | 解决方案ID 实现配置界面进入解决方案详情页获取 | 7271144788200628539 |
open_ability_impl_list | List | 是 | 当前解决方案内包含的开放能力的具体实现列表 | [{OpenAbilityImpl1},{OpenAbilityImpl2}] |
OpenAbilityImpl 字段说明
名称 | 类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
ability_identity | string | 是 | 开放能力唯一标识 获取方式:行业模板详情-选择某个扩展点-点击右上角实现说明文档-唯一标识 | /msg/trade/payment/notify |
is_delete | bool | 是 | 是否删除当前生效的实现地址 | false |
test_url | string | 否 is_delete为false时,必填 | 测试地址 256字符以内 | https协议: https://open-platform.byted.org/api/trade/query_marketing_info_from_merchant 抖音云协议: {"protocol":"douyincloud","env_id":"env-xxxx","service_id":"1ijxxabj","call_back_path":"/api/trade/query_marketing_info_from_merchant"} |
prod_url | string | 否 is_delete为false时,必填 | 正式地址 256字符以内 | https协议: https://open-platform.byted.org/api/trade/query_marketing_info_from_merchant 抖音云协议: {"protocol":"douyincloud","env_id":"env-xxxx","service_id":"1ijxxabj","call_back_path":"/api/trade/query_marketing_info_from_merchant"} |
ability_type | int64 | 是 | 开放能力类型:1为扩展点,2为消息 | 1 |
impl_name | string | 是 | 实现名称,随意填写,128字符以内 | 预下单扩展点实现配置 |
OpenAbilityImpl.AbilityIdentity 部分值
AppConfigItem 字段说明
名称 | 类型 | 是否必须 | 描述 | 示例值 |
---|---|---|---|---|
identity | string | 是 | 配置项唯一标识 | /cfg/trade/fulfillment/qrcode_redirect 参见下方AppConfigItem.Identity枚举 |
value | string | 是 | 配置项对应值 | https://ss.com/app/open/delivery_qrcode_redirect |
AppConfigItem.Identity 枚举
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://open.douyin.com/api/industry/v1/solution/set_impl'
响应示例响应示例
{}
请求参数
无