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
Parameter | Type | Description |
---|---|---|
ret | number | Return code 0: Request success, parse related returned field information. !=0: Request failure, check msg for the detailed return message. |
msg | string | Return message |
adult_check_status | number | Player adult status -1: Minor 0: Not set 1: Adult |
adult_check_status_expiration | string | The next authorization time required for minors |
parent_certificate_status | number | Parental consent status -1: Refuse 0: No consent provided 1: Consent 10: In progress (for email authorization only) |
parent_certificate_status_expiration | string | The next authorization time after the parent refused |
eu_user_agree_status | number | Whether players in the EU region consent to transfer their user data to non-EU regions -1: Refuse 0: Not set 1: Consent |
ts | string | Current timestamp |
adult_age | number | Age of majority according to country/region Use default age if not found. |
game_grade | number | Game rating standard according to country/region Use default rating if not found |
certificate_type | number | Authorization 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 |
region | string | ISO 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";
}