Skip to main content
POST /v1/users/inquiryUserInfo Queries user information with an access token. The information returned is defined by the scopes the user granted when the Mini Program called my.getAuthCode; the access token is obtained with applyToken.

Request Parameters

string
required
Access token used to access the user information, obtained from applyToken. No special characters (@, #, ?).Max length: 128 characters
string
Unique ID assigned by the super app to identify the authorized merchant. No special characters (@, #, ?).Max length: 128 characters
string
Extended information (JSON string, may be null). No special characters (@, #, ?). Include customerBelongsTo (the siteName from my.getSiteInfo) in the Mini Program scenario, e.g. "{\"customerBelongsTo\":\"siteNameExample\"}".Max length: 4096 characters

Response Parameters

object
required
Standard result object with resultCode, resultStatus, resultMessage
object
User information. Returned when result.resultStatus is S. The data returned depends on the granted scopes and is subject to the laws and regulations of the country or region where the super app is released. The extendInfo of userInfo carries the user identifiers appUserId (assigned by the super app) and acqUserId (assigned by the acquiring merchant service).

Result Handling

Result Codes

Sample

The merchant server calls this API with the access token; Rebell returns the user’s information according to the token’s scopes.

Request

Response