Skip to main content

Query registration status

The queryRegisterStatus API is used to check whether LI PASS is already registered.

Request parameters

ParametersTypeDescriptionNote
accountstringAccount
Email or phone number (phones not supported temporarily)
Required
account_typenumberAccount type
1: Email
2: Phone number (not supported temporarily)
Required
phone_area_codestringPhone Area CodeRequired if account_type is 2

Request sample

accountApi.queryRegisterStatus( {
account: 'xxx@gmail.com',
account_type: 1,
}).then((res) => {
console.log(res);
});

Response parameters

ParametersTypeDescription
retnumberReturn code
0: Request successful
!=0: Request failed, refer to msg for detailed results
msgstringResult Explanation
is_registernumberWhether the account exists
0: Does not exist
1: Exists
seqstringData stream message sequence number

Response sample

{
is_register: 0,
msg: "Success",
ret: 0,
seq: "1638794583-0180225865-009373-0000146261",
}