微信小程序

开放平台、代注册、账号凭据及店铺应用。

使用流程与权限要求见 微信小程序与店铺应用。

GET查询微信开放平台及分配/boma/v1/wechat-platforms
鉴权已选身份的会话 / Boma API Key

响应

200Success
application/json
platformsWechatPlatformSummary[]必填
查看结构
component_appidstring必填
display_namestring必填
event_urlstring必填
authorizer_event_urlstring必填
authorization_domainstring必填
ticket_timeinteger
int64
agenciesWechatAgencyAssignment[]必填
查看结构
agency_idstring必填
agency_namestring必填
component_appidstring
defaultError
application/json

object · 规范允许任意字段

POST新增微信开放平台/boma/v1/wechat-platforms
鉴权已选身份的会话 / Boma API Key

请求体

application/json必填
component_appidstring必填
display_namestring必填
app_secretstring必填
tokenstring必填
encoding_aes_keystring必填

响应

200Success
application/json

object · 规范允许任意字段

defaultError
application/json

object · 规范允许任意字段

PUT更新开放平台配置/boma/v1/wechat-platforms/{component_appid}
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
component_appid路径string必填

请求体

application/json必填
display_namestring
app_secretstring
tokenstring
encoding_aes_keystring

响应

200Success
application/json

object · 规范允许任意字段

defaultError
application/json

object · 规范允许任意字段

PUT为代理商分配开放平台/boma/v1/agencies/{agency}/wechat-platform
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
agency路径string必填

请求体

application/json必填
component_appidstring必填

响应

200Success
application/json

object · 规范允许任意字段

defaultError
application/json

object · 规范允许任意字段

DELETE撤销代理商平台分配/boma/v1/agencies/{agency}/wechat-platform
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
agency路径string必填

响应

200Success
application/json

object · 规范允许任意字段

defaultError
application/json

object · 规范允许任意字段

GET查询商户小程序和注册任务/boma/v1/merchants/{merchant}/mini-programs
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
merchant路径string必填

响应

200Success
application/json
api_egress_ipsstring
ci_egress_ipsstring
programsMerchantMiniProgram[]必填
查看结构
appidstring必填
sourcestring必填
auth_statusstring必填
updated_atstring必填
date-time
shop_idstring
可为 null
shop_namestring
可为 null
registrationsWechatRegistrationSummary[]必填
查看结构
idstring必填
methodstring必填
source_appidstring必填
statusstring必填
mini_appidstring必填
messagestring必填
created_atstring必填
date-time
updated_atstring必填
date-time
platform_configuredboolean必填
defaultError

此状态在规范中没有响应体定义。

POST发起小程序代注册/boma/v1/merchants/{merchant}/wechat-registrations
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
merchant路径string必填

请求体

application/json必填
request_idstring必填
methodstring必填
source_appidstring
enterpriseWechatEnterprise
查看结构
namestring必填
codestring必填
component_phonestring必填
code_typeinteger
已弃用
legal_persona_namestring
已弃用
legal_persona_wechatstring
已弃用

响应

200Success
application/json
idstring必填
statusstring必填
action_urlstring
qr_codestring
messagestring
defaultError

此状态在规范中没有响应体定义。

POST继续注册或重新授权/boma/v1/merchants/{merchant}/wechat-registrations/{registration}/continue
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
merchant路径string必填
registration路径string必填

响应

200Success
application/json
idstring必填
statusstring必填
action_urlstring
qr_codestring
messagestring
defaultError

此状态在规范中没有响应体定义。

POST处理待核实的注册结果/boma/v1/merchants/{merchant}/wechat-registrations/{registration}/resolve
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
merchant路径string必填
registration路径string必填

请求体

application/json必填
outcomestring必填
appidstring

响应

200Success
application/json
idstring必填
statusstring必填
action_urlstring
qr_codestring
messagestring
defaultError

此状态在规范中没有响应体定义。

POST取消小程序注册任务/boma/v1/merchants/{merchant}/wechat-registrations/{registration}/cancel
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
merchant路径string必填
registration路径string必填

响应

200Success
application/json
okboolean必填
defaultError

此状态在规范中没有响应体定义。

PUT更新小程序接口或 CI 凭据/boma/v1/merchants/{merchant}/mini-programs/{appid}/credentials
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
merchant路径string必填
appid路径string必填

请求体

application/json必填
app_secretstring
ci_private_keystring

响应

200Success
application/json
okboolean必填
defaultError

此状态在规范中没有响应体定义。

GET列出店铺已绑定应用/boma/v1/shops/{shop}/apps
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
shop路径string必填

响应

200Success
application/json
api_egress_ipsstring
ci_egress_ipsstring
appsShopApp[]必填
查看结构
idstring必填
kindstring必填
appidstring必填
sourcestring必填
auth_statusstring必填
created_atstring必填
date-time
defaultError

此状态在规范中没有响应体定义。

POST绑定商户待绑定小程序/boma/v1/shops/{shop}/apps/miniprograms/bind
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
shop路径string必填

请求体

application/json必填
appidstring必填

响应

200Success
application/json
idstring必填
defaultError

此状态在规范中没有响应体定义。

POST导入并绑定已有小程序/boma/v1/shops/{shop}/apps/miniprograms/import
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
shop路径string必填

请求体

application/json必填
appidstring必填
app_secretstring必填
ci_private_keystring必填

响应

200Success
application/json
idstring必填
defaultError

此状态在规范中没有响应体定义。

DELETE解绑店铺应用/boma/v1/shops/{shop}/apps/{app}
鉴权已选身份的会话 / Boma API Key

参数

参数位置类型说明
shop路径string必填
app路径string必填

响应

200Success
application/json
okboolean必填
defaultError

此状态在规范中没有响应体定义。