跳转到主要内容
GET
/
v1
/
weChatPay
/
jsapi
/
authorize
获取微信openid
curl --request GET \
  --url https://gate.dev.payloco.com/gateway/v1/weChatPay/jsapi/authorize
{
  "openid": "<string>",
  "errCode": "<string>",
  "errMessage": "<string>"
}

查询参数

redirectUri
string<uri>
必填

授权后重定向的回调链接地址, 请使用 urlEncode 对链接进行处理

示例:

"https://www.qq.com"

响应

200 - application/x-www-form-urlencoded

OK

openid
string
必填

微信的openid值

示例:

"oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"

errCode
string
必填

响应编码

示例:

"00000000"

errMessage
string
必填

响应说明

示例:

"交易成功"