Typically: proof of the terminated employment relationship (dissolution certificate), your passport, and your social security card or bank account. Some cities also require the work-permit cancellation certificate.
Nationwide (all cities)
Core materials
Shenzhen's official materials list for terminating the social insurance relationship and settling the individual account shows the core documents: the participant's own valid ID (for foreigners, the passport); the participant's bank savings account opened in the city (a limited set of banks applies, and if the person holds a financial social security card it must be used as the refund account); for those who lost Chinese nationality, the household-registration cancellation certificate; a power of attorney if handled by an agent, plus the agent's ID. The Shenzhen government Q&A on refund for departing foreigners adds that the applicant is asked to provide the 'basic old-age insurance benefits declaration form', the 'application to terminate the basic old-age insurance relationship', the passport, and the bank savings account.
The recurring anchor and local variation
The broader point: the employment-termination material (dissolution certificate) is the recurring anchor across the whole departure process — it is needed for the work-permit cancellation, for the housing-fund withdrawal, and for the social insurance settlement. Some cities also ask for the work-permit cancellation certificate as part of the social insurance materials. Because the exact list varies by city, confirm with your local social insurance agency.