跳转至

微信公众号域名绑定和小程序绑定APPID

请求方式 body 编码 接口地址
POST application/json UTF-8 集测:https://mchapitest.shengpay.com/report/appidBind
生产:https://mchapi.shengpay.com/report/appidBind

请求参数

变量名 类型 必填 示例值 描述
mchId String Y 93751497 商户号
subMchId String Y 93751497 子商户号
configType String Y 1 配置类型:1:授权目录 2:绑定APPID 5:查询配置信息
appId String N 小程序绑定的appid,configType=2时需要填写
receiptAppId String N 关注小程序公众号appid,configType=3或者4时需要填写
payUrl String N http://www.shengpay.com/pay 公众号的支付授权目录,configType=1时需要填写
nonceStr String Y 随机字符串
signType String Y RSA 签名类型
sign String Y 签名 (见签名介绍)
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{
  "appId": "",
  "configType": "5",
  "mchId": "93751497",
  "payUrl": "",
  "receiptAppId": "",
  "subMchId": "93751497",
  "nonceStr": "lsjdlfasldflasdl090",
  "signType ": "RSA",
  "sign ": "SFLASJFDLAOSJDFOJO032042032987923928928JFLAJSLDFJALSUFOWIEU9R87W9"
}

响应参数

变量名 类型 必填 示例值 描述
returnCode String Y SUCCESS 返回码(SUCCESS/FAIL)
returnMsg String N 返回消息(当returnCode为FAIL时使用)
resultCode String Y SUCCESS 业务结果(SUCCESS/FAIL)
errorCode String N 错误代码(当resultCode为FAIL时使用) 枚举类:(见错误码枚举类)
errorCodeDes String N 错误描述(当resultCode为FAIL时使用)
payUrlArray String(1024) Y 支付授权目录列表,JSONArray configType=5时才会有
appidConfigArray String(1024) Y Appid 绑定列表,JSONArray configType=5时才会有
nonceStr String(32) N 随机字符串
signType String Y RSA 签名方式
Sign String N 签名 (见签名介绍)

响应示例

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
  "resultCode": "SUCCESS",
  "errorCode": null,
  "errorCodeDes": null,
  "nonceStr": "lsjdlfasldflasdl090",
  "signType ": "RSA",
  "sign ": "SFLASJFDLAOSJDFOJO032042032987923928928JFLAJSLDFJALSUFOWIEU9R87W9",
  "payUrlArray": "[\"https://3000ke.cn/\",\"https://3000ke.cn/m/weixin/\",\"https://3000kr.cn/\",\"https://3000kr.cn/m/weixin/\",\"https://ss.shengpay.com/\",\"https://3000ke.cn/\",\"https://3000ke.cn/m/weixin/\",\"https://3000kr.cn/\",\"https://3000kr.cn/m/weixin/\",\"https://ss.shengpay.com/\"]",
    "appidConfigArray": "[{\"sub_appid\":\"wx154f9a63aef2864f\",\"subscribe_appid\":\"\"},{\"sub_appid\":\"wx3e7a50c029f79bf2\",\"subscribe_appid\":\"wx3e7a50c029f79bf2\"},{\"sub_appid\":\"wx02f9470d1c865d1b\",\"subscribe_appid\":\"wx3e7a50c029f79bf2\"},{\"sub_appid\":\"wx154f9a63aef2864f\",\"subscribe_appid\":\"\"},{\"sub_appid\":\"wx3e7a50c029f79bf2\",\"subscribe_appid\":\"wx3e7a50c029f79bf2\"},{\"sub_appid\":\"wx02f9470d1c865d1b\",\"subscribe_appid\":\"wx3e7a50c029f79bf2\"}]"
}
Back to top