Skip to main content

CommitBirthday

The commitBirthday API is used to submit user's birthday.

caution

Credit card authorization is currently not supported but is planned for subsequent versions.

Request Parameter

ParameterTypeDescription
birthdaystringUser birthday
YYYY-MM or YYYY-MM-DD
adultAgenumberAge of majority in the player's country
gameGradenumberAge criteria of games in the player's country
certificateTypenumberAuthorization method according to country/region
Use the default authorization method if not found
-1: Unknown
0: Authorization not required
1: Self-authorization
2: Credit-card authorization(currently not supported)
3: Email authorization

Response Parameter

ParameterTypeDescription
retnumberReturn code
0: Request success
!=0: Request failure, see msg for detailed return message
msgstringReturn message
adult_check_statusnumberPlayer adult status
-1: Minor
0: Not set
1: Adult

Request Sample

complianceApi.commitBirthday(
{
birthday: "2000-01-01",
adultAge: 18,
gameGrade: 16,
certificateType: 0,
},
(res) => {
console.log(res);
}
);

Response Sample

{
adult_check_status: 1,
msg: "success",
ret: 0,
seq: "1636535835-1006943754-007094-0000351947",
}