Skip to main content

QueryUserStatus

The queryUserStatus API is used to check the player's adult status, authorization information, and the compliance configuration (including the age of majority, game rating, authorization method, and so on) for the region where the player is located.

Request Sample

complianceApi.queryUserStatus((res) => {
console.log(res);
});

Response Parameter

ParameterTypeDescription
retnumberReturn code
0: Request success, parse related returned field information.
!=0: Request failure, check msg for the detailed return message.
msgstringReturn message
adult_check_statusnumberPlayer adult status
-1: Minor
0: Not set
1: Adult
adult_check_status_expirationstringThe next authorization time required for minors
parent_certificate_statusnumberParental consent status
-1: Refuse
0: No consent provided
1: Consent
10: In progress (for email authorization only)
parent_certificate_status_expirationstringThe next authorization time after the parent refused
eu_user_agree_statusnumberWhether players in the EU region consent to transfer their user data to non-EU regions
-1: Refuse
0: Not set
1: Consent
tsstringCurrent timestamp
adult_agenumberAge of majority according to country/region
Use default age if not found.
game_gradenumberGame rating standard according to country/region
Use default rating if not found
certificate_typenumberAuthorization type according to country/region
Use the default authorization type if not found
0: Authorization not required
1: Self-authorization
2: Credit-card authorization
3: Email authorization
regionstringISO 3166-1 numeric code for country or region
For example 156 for China, 040 for Austria

Response Sample

{
adult_age: 0;
adult_check_status: 1;
adult_check_status_expiration: "1636375714";
certificate_type: -1;
eu_user_agree_status: -1;
game_grade: 0;
msg: "success";
parent_certificate_status: 1;
parent_certificate_status_expiration: "0";
region: "156";
ret: 0;
seq: "1636530872-0180225310-023426-0000428179";
ts: "1636530872";
}