Skip to main content
GET
/
api
/
mapi
/
v1
/
weChatPay
/
jsapi
/
authorize
获取微信openid
curl --request GET \
  --url https://mpgwpre.payallglobal.com/mp-gateway/api/mapi/v1/weChatPay/jsapi/authorize
{
  "openid": "<string>",
  "errCode": "<string>",
  "errMessage": "<string>"
}

Query Parameters

redirectUri
string<uri>
required

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

Example:

"https://www.qq.com"

Response

200 - application/x-www-form-urlencoded

OK

openid
string
required

微信的openid值

Example:

"oUpF8uMuAJO_M2pxb1Q9zNjWeS6o"

errCode
string
required

响应编码

Example:

"00000000"

errMessage
string
required

响应说明

Example:

"交易成功"