If you stay at a friend’s home or a non-hotel rental in Shanghai, arrange accommodation registration within 24 hours after arriving at that address. For a first registration through the national online service, involve your host: the official procedure provides for host assistance, with the host registering a rented or borrowed stay on your behalf. If online registration does not succeed, use the police station serving the address. Visa-free entry does not remove this requirement. Article 39 and Shanghai’s current service guide set out the obligation.
The rules and public instructions below were checked on 11 November 2026. They concern foreign nationals staying outside hotels; your reading language does not determine your nationality or document status.
Before arrival, agree who will register the stay
Ask the person providing the accommodation whether it is registered as a hotel stay or as a non-hotel residence, and who will complete the registration. A listing’s “apartment” or “short rental” label does not settle that question. Hotels handle their guests’ registration under separate rules; Shanghai’s non-hotel measures expressly exclude hotel stays. A reservation confirmation is not evidence of completed accommodation registration.
For a private stay, ask your host for the exact address, including the building and room details needed to identify where you will sleep, and agree a time to complete registration after you arrive. Keep the host reachable for verification codes. The host can be a Chinese citizen or a foreign national; “host” means the person accommodating you, and should not automatically be read as “property owner”. The online route may nevertheless require particular property documents, as explained below.
Use 24 hours after arrival at the accommodation for this foreign-visitor task. Do not apply a rural 72-hour allowance to a foreign-passport visitor. Shanghai’s current Chinese rule assigns that allowance specifically to Hong Kong, Macao and Taiwan residents in rural areas.
Choose the correct national online route
The NIA’s nationwide service began on 21 September 2026. You or your host can access it through the NIA Government Service Platform, the “NIA 12367” app, or the “移民局12367” WeChat or Alipay mini program. Complete account registration and identity verification, then use Foreigner Service → Accommodation Registration, following the current prompts. These are the published official instructions, not a test application made for this guide.
| Your situation | Route to use | Cooperation still needed |
|---|---|---|
| First stay at a friend’s home or rented residence | Arrange host assistance; the host uses the host-registration route, 留宿人代为登记 | Host information, address and verification code; your document details |
| Registering again at the same address after your host previously registered you there through the NIA platform | The guest’s other-person’s-residence route, 住宿人登记(他人住所) | The system sends a verification code to the host’s recorded phone |
| Staying in a residence owned by you or your spouse in China | The self-owned-residence route | The applicable ownership documents and identity verification |
The guest self-registration instructions expressly require a previous host registration for you at the current address through the NIA platform. Having registered at a hotel, another address, or through a different local system is not evidence that you qualify for this route. Even when registering yourself again, arrange for your host to receive and provide the system’s code during the application.
Shanghai’s official entry page currently offers both a nationwide system and a Shanghai-only self-service system. Keep track of which you use: their procedures and proof formats should not be treated as interchangeable. The steps here describe the national service.
Prepare your details and the host’s information
Have your valid identity document available. For a foreign-passport guest, prepare a clear photograph of the passport’s information page for the host-registration process. The NIA host guide says to upload the guest’s document information-page photograph, check the recognised details, and correct any errors manually.
The host checks their own profile and completes the verification-code step before entering your information. If the host’s profile is wrong, the guide directs them to “My” → “Personal Information” to change it. Prepare the actual arrival date, planned length of stay and whether the residence is borrowed or rented. The stay-length options are “within one month”, “one to six months” and “more than six months”; choosing one does not extend your permission to remain in China.
For a mainland Chinese resident host, the guide allows address selection followed by manual entry of the detailed address. It lists an identity card, household register, ownership certificate or purchase contract as documents whose address can be consulted. That is not a requirement to upload all four. The system lists police stations corresponding to the address’s street or township; select the correct one with the host rather than guessing from a nearby station’s location.
For a Hong Kong, Macao, Taiwan or foreign host, the published national guide has a separate branch. On the first registration at that address, it requires an ownership certificate or property purchase contract; if it is the host’s spouse’s residence, it also requires the marriage-registration certificate. Do not replace “purchase contract” with “rental contract”. If your host is a tenant or cannot supply the documents requested in that online branch, ask 12367 or the local police station how to register in your circumstances. This online document requirement does not establish that every person hosting a visitor must own the property.
The self-owned-residence instructions similarly require ownership or purchase documentation for an initial registration there, with marriage documentation where applicable. A booked rental is not a self-owned residence.
Submit, then check the actual record
Review the guest’s identity details, exact address, responsible police station, arrival date, intended stay and residence type before agreeing to the declaration and submitting. Use the real circumstances; do not select a different residence type just to get past a screen.
After completion, open Registration Record Inquiry, 登记记录查询, and view the accommodation registration record. The NIA record guide also explains how to reuse a record for another registration. Check that the record corresponds to you and this stay. Starting a form or seeing a submission message is not a substitute for checking the completed record. If you cannot find the completed registration or the details are wrong, seek official help.
For the national system, NIA’s proof instructions say there is no need to print the accommodation record. You can show the electronic record for visa-document procedures or inspections. If you need a paper accommodation-registration form, collect it from the police station shown in that electronic record.
For Shanghai’s local self-service channel, the local measures provide for downloading an electronic registration form after the system approves the application, and printing it if needed. That is a separate proof route; it is not an extra PDF you must obtain after completing the national procedure.
If online registration fails, use the local window
An unavailable verification code, an unrecognised document or an address you cannot match needs resolving while the registration remains outstanding. Follow the guidance or correction request actually shown to you. Do not assume that a failed submission gives you extra time, or wait for an imagined automatic approval deadline.
The NIA eligibility guide says that unsuccessful online applicants should register at the police station in person. Its help page also points to 12367 and local exit-entry service windows for assistance. Shanghai publishes +86-21-12367. The number has not been test-called for this guide; access from your overseas or roaming line and an immediate solution are not guaranteed.
Ask your host to help identify the police station serving the actual residence and check the relevant window’s opening arrangements. Shanghai’s measures also allow registration at police service windows located in subdistrict or township community-affairs service centres; that does not mean every service centre has such a window.
For the window, Shanghai’s 2025 revised measures require presentation of the guest’s valid identity document. If a host or authorised person handles the application, their valid identity document is also required. Have the accurate address and actual online difficulty available to explain. Follow any specific request for additional material; do not assume an old universal checklist of ownership certificate, household register and rental contract is still the citywide rule.
Where identity is genuine, documents valid and materials complete, the measures require on-the-spot acceptance and issue of the accommodation-registration form. If materials do not meet requirements, the office should first record the registration and tell you on the spot what to supplement. This does not promise that every unresolved case will be finished immediately. For a lost passport, the measures provide a separate route: report the loss to exit-entry administration and use its loss certificate to apply for accommodation registration.
Moving elsewhere or returning after a trip
A record for the old address does not register a new one. Applying Article 39 to your new non-hotel stay means arranging registration within 24 hours after arriving there. Work with the new host; do not assume that a past registration anywhere lets you use the same-address self-registration route at the new home.
Returning to the same address is a different question. The NIA policy interpretation provides these exceptions after an initial registration has already been completed as required:
- Returning after domestic or overseas travel to a self-owned residence in China, meaning one owned by you or your spouse.
- Holding a residence permit or permanent residence permit, and returning after travel to your habitual residence during the validity of the same permit. A habitual residence is one where you live or plan to live long term; the definition of long term is more than 180 days.
A short tourist stay or visa-free visit to a friend does not by itself meet the second exception. If your documents change or you are unsure whether an exception covers your return, ask 12367 or the local authority with your actual documents and stay details; do not rely on the old record without resolving that question.
Photograph credit
The photograph shows Shanghai lane-house surroundings, photographed by on 18 June 2017. It is historical residential context, not a rental offer, an accommodation-registration scene or evidence that a particular property is authorised for rental. See the and.
Before arrival, send your host the correct address and official registration guide, agree who will submit, and keep both people reachable until the completed record or the local-window arrangement is settled.

