Check Xiaomi Mi Account Status (and Full INFO) by IMEI or Lock code and make sure the MI status is Off before you buy or sell a Xiaomi device.
Find device is off
Unlock number or IMEI:
Can't locate this device because it isn't associated with a Mi Account. Sign in to Mi Account and turn on Find device.
Erase all data on this device before reselling or giving it away.