支持第三方调用
支持沙箱环境调用
公共请求参数
名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
app_id | string | 是 | 小程序appid |
access_token | string | 是 | 小程序调用凭证 |
业务请求参数
名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
component_id | string | 否 | 组件id |
version | int32 | 否 | 版本 |
请求示例
{ "component_id":"678601cc32194e00016ff72b" }
名称 | 类型 | 是否必须 | 描述 |
---|---|---|---|
data | struct | 否 | |
component_base_info | struct | 否 | 组件基本信息 |
component_id | string | 否 | 组件id |
solution_code | string | 否 | 组件类型 |
version | int32 | 否 | 组件版本 |
service_name | string | 否 | 服务名称 |
service_img | string | 否 | 服务图片 |
category_id | string | 否 | 类目id |
service_link | string | 否 | 服务链接 |
out_component_id | string | 否 | 外部组件id |
status | string | 否 | 状态:WAIT_AUDIT-待审核;AUDIT_PASS-审核通过;AUDIT_REFUSE-审核拒绝;INVALID-无效 |
component_attrs | string | 否 | 组件属性 大的 k-v json string |
success | bool | 否 | 是否成功 |
msg | string | 否 | 说明,正确响应时为 success,错误响应时为错误描述 |
code | int32 | 否 | 错误码,正确响应时为 0,错误响应时非0 |
{ "data":{ "component_base_info":{ "component_id":"678601cc32194e00016ff72b", "solution_code":"FREE_RESERVATION", "version":1, "service_name":"预约", "service_img":"http://qimg.xiaohongshu.com/arkcamp/1040g0qo317aegd8in6005pm80sqgldo4cp6ukfg", "category_id":"642ac5e696c43100015e1e00", "service_link":"/", "out_component_id":"6256438774ad1c0001d49b5f", "status":"WAIT_AUDIT" }, "component_attrs":"{"shop_list":[{"service_link":"/shop/67496376e051290001bb94fa","shop_id":"42304B41585A38355444"}],"product_id":"678601cced185a001514592a","stock_type":"POI_DATE_TIME_STOCK","price_type":"FREE","stock_detail":[{"stock_end_time":"16:00","available_stock":"1000","stock_date":"2024-12-20","shop_id":"42304B41585A38355444","stock_start_time":"15:00"}],"service_change_reservation":"true","service_instant_confirm":"true"}" }, "success":true, "msg":"", "code":0 }
参见错误码