It is not granted automatically, but it can be applied for: the NIA stay-document guide allows a stay document of up to 30 days where residence grounds have ceased and the person needs to stay for humanitarian reasons. Shanghai publishes the appointment and filing steps.
Nationwide (all cities)
Stay document capped at 180 days
Article 34 of the Exit-Entry Administration Law caps the validity of a stay document at 180 days. Article 29 of the same Law requires an application to extend a visa stay period to be filed 7 days before the indicated period expires, with cumulative extensions not exceeding the stay period originally indicated on the visa.
National source of the 30-day period
The National Immigration Administration's Service Guide for Issuance, Renewal and Replacement of Foreigners' Stay Documents is the national-level source of the 30-day period: where a foreigner's grounds for residence have ceased and the person needs to remain in China for humanitarian reasons, the applicant submits the residence document and supporting materials, and a stay document with a stay period of no more than 30 days may be issued. The same guide sets no more than 30 days for crew members and accompanying family members who need to leave the port city, and no more than 180 days for persons approved to renounce Chinese nationality.
How to file
How to file: apply in person to the exit-entry administration of the public security authority at or above prefecture level (the NIA delegates receipt to city-level authorities, and to county-level authorities where provincially authorised). Submit a valid passport or other international travel document, a completed visa/stay/residence document application form with one compliant photograph, and materials related to the purpose of the stay. Where the application meets acceptance requirements, the authority issues a receipt valid for no more than 7 working days from acceptance and decides within that period. The guide lists three cases in which an inviting entity or individual, a family member, or a professional service agency may apply on the applicant's behalf. Article 21 of the Regulations on the Administration of Entry and Exit of Foreigners lists the cases in which a stay document is not issued.
Local variations
Shanghai procedure
Shanghai procedure: Government Online-Offline Shanghai lists "foreign nationals whose grounds for residence have ceased and who need to remain in China longer for humanitarian reasons" among the eligible applicants for a stay permit. Book an appointment in the Exit-Entry Services column, select "Issuance of Foreigner's Stay Permit", choose the district and a time slot, then submit in person at the Exit-Entry Administration Corps of the Shanghai Municipal Public Security Bureau (Monday to Saturday 9:00-17:00; Saturdays for document acceptance only) with the original passport, the completed application form and supporting documents; a photograph is taken free of charge on site. With complete materials, processing is completed within 5 working days. The 12367 hotline serves callers in Chinese, English, French, Russian, Japanese and Korean.
If something goes wrong
- The passport is held by the authority while the application is processed — The acceptance receipt is the basis for lawful stay in China until the decision is made (Article 13 of the Regulations); the receipt is valid for no more than 7 working days