Commit the user's birth year and month (CommitBirthday)
The commitBirthday API is used to submit the user's birthday.
caution
Currently, credit card authorization is not supported, but it's planned for future versions.
Request Parameters
| Parameters | Type | Explanation |
|---|---|---|
| birthday | string | Player birth date YYYY-MM or YYYY-MM-DD |
| adultAge | number | The adult standard in the player's country or region |
| gameGrade | number | The age standard for game classification in the player's country or region |
| certificateType | number | Authentication method for input country/region Use default if not found -1: Unknown 0: No authentication required 1: Self-authentication 2: Credit card payment authentication (Credit card authentication not supported) 3: Email authentication |
Response parameters
| Parameters | Type | Explanation |
|---|---|---|
| ret | number | Return code 0: Request successful !=0: Request failed, see msg for detailed result description |
| msg | string | Result description |
| adult_check_status | number | Adulthood status -1: Not yet an adult 0: Not set 1: Already an 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",
}