Skip to main content

GetUserPayId

Host: dip-cb.binanceapi.com

GET /mp-api/v1/apps/{appId}/users?openId=query_open_id

Header

ParameterRequiredDescription
X-Mp-Open-Api-TokenYesJWT token. Please refer to Description of External Interface Signature Authentication Algorithm

Path Parameters

ParameterDescription
appIdThe AppId of the mini program (required)
openIdThe openId of the user you wish to query (required)

Note:

  1. Please make sure to call this API by attaching a JWT token in the header under X-Mp-Open-Api-Token. For the method of generating JWT token, please refer to Description of External Interface Signature Authentication Algorithm

Request Example

​{
"appId": "insert-your-app-id-from-workspace",
"openId": "insert-user’s-openId-for-query",
}

Response

HTTP 200

{
"code": "000000",
"message": null,
"data": {
"payId": 26238454
},
"success": true
}
ErrorCodeRemark
000000Success
900001Invalid Parameter
900002JWT Authentication Failed
900003Unexpected Error