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-TokenYJWT token, please refer to Description of External Interface Signature Authentication Algorithm

Path Parameters

ParameterDescription
appIdrequired appId of the mini program
openIdrequired openId you want to query

Note:

1. You need to call this api by carrying a jwt token in the header X-Mp-Open-Api-Token. For the method of generating JWT token, please refer to Description of External Interface Signature Authentication Algorithm

Request

​​{  "appId": "your-app-id-can-get-from-workspace",  "openId": "user’s openId you want to query",}

Response

HTTP 200

{  "code": "000000",  "message": null,  "data": {    "payId": 26238454  },  "success": true}
ErrorCodeRemark
000000Success
900001Invalid param
900002Jwt auth failed
900003Unexpected error