Shanqi served as the tax supervisor of Chongwenmen, as a commander in the Army, as a member of the Ministry of Civil Affairs, and as an early leader within the Beijing gendarmerie and Qing police system.