Skip to main content

Query Account Status (queryDeleteStatus)

queryDeleteState is used to check the account deletion status through DMCS (whether the account is in the silent period).

Request parameters​

ParametersTypeExplanationNote
openIDstringPlayer Network SDK unique user identifier
Defaults to a 64-bit unsigned integer string, but can also support 32-bit.
Optional
uIDstringUID of self-managed accountOptional

Request sample​

dsrApi.queryDeleteStatus(
{
openID: '136...152',
uID: '339...025',
}
).then((res) => {
console.log(res);
});

Response parameters​

ParametersTypeExplanation
retnumberReturn code
0: Request successful
!=0: Request failed, refer to msg for detailed results
msgstringResult Explanation
created_atint64Timestamp when cancellation was created
If status is 0, created_at is 0
destroyed_atstringActual account deletion timestamp
If status is not 2, destroyed_at is 0.
seqstringData Stream Message Serial Number
statusnumberAccount status
0: No record or account deletion revoked
1: Cooling period
2: Account deletion completed
3: Deleting account
4: Account deletion failed
target_destroy_atstringTarget account deletion timestamp
If status is 0, target_destroy_at is 0.

Response sample​

{
created_at: "0",
destroyed_at: "0",
msg: "",
ret: 0,
seq: "1640266743-...-0010429252",
status: 0,
target_destroy_at: "0",
}