Hangzhou Binjiang foreign programmer switching jobs: cancel work permit first for residence permit change?
Hangzhou Binjiang Foreign Programmer Job Change: Does the Residence Permit Change Require Cancelling the Original Work Permit First? A Complete 2026 Guide
Binjiang District (滨江区) is the densest technology cluster in Hangzhou. Within a few square kilometres along the Qiantang River sit the headquarters and R&D centres of major internet platforms, e-commerce groups, gaming studios, and — since roughly 2023 — a fast-growing wave of AI startups working on large models, computer vision, embodied intelligence, and AI infrastructure. For a foreign software engineer holding a Class A or Class B Foreigner's Work Permit and a residence permit for work purposes, moving from an established internet company to an early-stage AI startup is a routine career step. The administrative question that trips up almost everyone is the sequencing: must the old work permit be cancelled before the residence permit can be changed?
The short answer is yes — in the standard path, cancellation (注销) of the existing work permit precedes the new work permit application, and the residence permit change is processed on the basis of the new permit. But the practical reality in Hangzhou is more nuanced: there are at least three distinct scenarios, each with a different sequence, different risk profile, and different documentary requirements. Getting the order wrong can leave a foreign engineer in a legal grey zone — employed by nobody on paper, with a residence permit tied to a sponsor that no longer exists. This guide sets out the legal basis, the three scenarios, the exact Binjiang/Hangzhou procedures, the fee schedule, the timeline, and the most common misconceptions.
This guide is written for foreign technical talent working in Hangzhou's Binjiang District and for the HR and administrative teams of the internet and AI companies that employ them. It reflects the regulatory framework in force as of 2026. Because local implementing rules and online-system workflows are updated periodically, applicants should always confirm the current requirements with the Hangzhou Municipal Science and Technology Bureau (the work-permit authority) and the Hangzhou Public Security Bureau Exit-Entry Administration before filing.
The Legal Framework: Two Permits, Two Authorities, One Linked Status
Foreign professionals in China work under a two-permit architecture that is easy to misunderstand. The Foreigner's Work Permit (外国人工作许可证) is issued by the science and technology (foreign expert) authorities and governs the right to be employed. The residence permit for work (工作类居留许可) is issued by the public security exit-entry authorities and governs the right to reside. The two are legally linked: the residence permit for work is granted on the basis of a valid work permit, and its validity is normally capped by the work permit's remaining validity.
The core rules that govern a job change derive from the Exit and Entry Administration Law of the People's Republic of China (《中华人民共和国出境入境管理法》), effective 1 July 2013, and its implementing regulations, together with the national foreigner work-permit management rules administered by the State Administration of Foreign Experts Affairs (now operating under the Ministry of Human Resources and Social Security). Under these rules:
- Article 41 of the Exit and Entry Administration Law requires foreigners working in China to obtain a work permit and a residence permit for work; working without the appropriate permit is unlawful.
- Article 43 lists the circumstances in which a foreigner's stay or residence may be terminated, including where the foreigner's employment relationship ends or the basis for residence no longer exists.
- The work-permit rules require that when a foreigner's employment with the sponsoring employer ends, the employer must apply to cancel (注销) the work permit within the prescribed period, and the foreigner must then either regularise status with a new employer or depart.
The practical consequence is the "linked-status" principle: the residence permit for work is anchored to a specific employer. When the anchor is removed — because the old work permit is cancelled — the residence permit does not automatically become invalid on the same day, but it loses its underlying basis, and the holder must complete the transfer to a new employer within the window allowed. This is precisely why the sequencing question matters so much for a Binjiang job-hopper.
The Three Scenarios: Which Sequence Applies to You?
Not every job change follows the identical sequence. In Hangzhou practice, foreign engineers moving from an internet company to an AI startup fall into one of three scenarios. Identifying your scenario on day one determines your entire timeline and risk exposure.
Scenario A — Standard Path: Cancel Old Work Permit, Apply for New Work Permit, Then Change Residence Permit
This is the default and most common path, and it applies when the new AI startup is a different legal entity from the old internet company (which is almost always the case — a startup is a new company, not a branch of the platform). The sequence is:
- Old employer cancels the work permit. The internet company files the cancellation through the national foreigner work-permit service system. The cancellation takes effect and the system generates a cancellation record.
- New employer applies for a new work permit. The AI startup, having completed its own employer registration/verification on the system, submits a fresh work-permit application for the foreign employee, attaching the cancellation record, the new labour contract, and the employee's documents.
- Foreign employee changes the residence permit. With the new work permit in hand, the employee applies at the exit-entry administration to change the residence permit to reflect the new employer.
In this path, the answer to the headline question is unambiguously yes: the old work permit must be cancelled before the new one can be issued, and the residence permit change follows the new work permit. The critical risk is the gap period between cancellation and the issuance of the new residence permit, during which the foreigner's status is technically in transition.
Scenario B — Intra-Group or Affiliate Transfer: Change of Employer Without Full Cancellation
If the AI startup is a legally affiliated entity of the old internet company — for example, a wholly-owned subsidiary, a jointly controlled venture, or a spin-off that remains under the same corporate group — there may be a streamlined "change of employer" (变更用人单位) route rather than a full cancel-and-reapply. Under this route, the work permit is amended to reflect the new employing entity rather than cancelled outright, and the residence permit is then updated accordingly.
This route is materially faster and avoids the gap-period risk, but it is only available where the corporate relationship can be documented — typically with the business licence, shareholder records, or a group-structure certificate showing the affiliation. A genuinely independent AI startup founded by former colleagues does not qualify. Many Binjiang engineers assume "same building, same investors" equals "affiliate" — it does not. The test is legal affiliation, not commercial familiarity.
Scenario C — Class A Talent Fast-Track and the "Commitment" Route
Foreign engineers classified as Class A (high-end talent) under the foreigner work-permit classification system — for example, those meeting the salary threshold, holding senior technical titles, or possessing scarce AI expertise — may benefit from expedited processing and, in some Hangzhou cases, a route in which the new employer files the new work-permit application with a commitment to complete the old permit's cancellation within a short window. This is sometimes described as the "parallel filing" or "commitment" route.
This route is discretionary and case-specific. It is not a universal entitlement, and it depends on the new employer's standing on the system and the officer's assessment. Applicants should not assume it applies; instead, they should ask the Hangzhou work-permit authority directly whether their profile qualifies. Where it is available, it substantially reduces the gap period, but it does not eliminate the requirement to cancel the old permit — it merely reorders the paperwork.
| Scenario | When It Applies | Sequence | Gap-Period Risk | Typical Duration |
|---|---|---|---|---|
| A — Standard | New AI startup is an unrelated legal entity | Cancel old work permit → new work permit → change residence permit | Moderate to high; status in transition | 3–6 weeks end to end |
| B — Affiliate transfer | Documented legal affiliation between old and new employer | Amend work permit (change employer) → update residence permit | Low; continuous status | 2–4 weeks |
| C — Class A / commitment | Class A talent; new employer in good standing; authority discretion | Parallel filing with commitment to cancel old permit within window | Low to moderate; depends on compliance | 2–3 weeks |
Why the Order Matters: The Gap-Period Risk Explained
The reason the sequencing question is not academic is that the gap period creates genuine legal exposure. Consider what happens on the day the old internet company cancels the work permit:
- The foreign engineer's work permit is no longer valid. They cannot lawfully perform work for any employer until a new permit is issued.
- The residence permit for work remains physically valid (its expiry date has not changed), but its underlying basis — employment with the sponsoring employer — has ended. The permit is, in effect, "orphaned."
- If the engineer is stopped in a routine check, or if the exit-entry system flags the mismatch between the cancelled work permit and the still-valid residence permit, they may be asked to explain their status.
- If the gap extends beyond the period the authorities allow for regularisation, the residence permit may be cancelled or shortened, and the engineer may be required to leave and re-enter on a new visa.
The safe operating rule is: prepare the new application fully, then cancel, then file immediately. The cancellation and the new filing should be separated by days, not weeks. Where the new employer's HR is experienced, the two steps are coordinated so that the cancellation record is generated on a Monday and the new application is filed the same week.
Step-by-Step Procedure for the Standard Path (Scenario A)
The following is the practical workflow for a foreign programmer moving from a Binjiang internet company to an independent AI startup. It assumes the standard path applies.
Step 1 — Confirm the New Employer's System Registration
Before anything else, the AI startup must be registered and verified as an employing entity on the national foreigner work-permit service system. Early-stage startups sometimes have not completed this step, which stalls the entire process. The new employer should confirm its registration status and, if necessary, complete verification — a step that can take several working days.
Step 2 — Assemble the New Work-Permit Application Package
The new employer prepares the application. The core documents typically include:
- ☐ The foreign employee's passport (validity normally at least six months remaining)
- ☐ The new labour contract with the AI startup, specifying position, salary, and term
- ☐ The employee's highest degree certificate and professional qualification documents, notarised and legalised/apostilled as required
- ☐ A criminal record certificate covering the relevant period, notarised and legalised/apostilled, where required for the category
- ☐ The medical examination certificate from a designated hospital (or a valid one on file)
- ☐ The employee's recent photograph to the prescribed specification
- ☐ The old employer's work-permit cancellation record (generated in Step 3)
- ☐ The new employer's business licence and registration verification materials
Step 3 — Old Employer Cancels the Work Permit
The internet company files the cancellation through the system. The cancellation record is the bridge document that the new employer needs. The old employer should provide the foreign employee with a copy of the cancellation record and, where applicable, a release/termination letter confirming the end of employment.
Step 4 — New Employer Files the New Work-Permit Application
With the cancellation record in hand, the AI startup files the new application. Processing time for a straightforward Class B application in Hangzhou is typically in the range of 10 to 20 working days, subject to document completeness and caseload. Class A applications may be faster.
Step 5 — Collect the New Work Permit and Change the Residence Permit
Once the new work permit is issued, the foreign employee applies at the exit-entry administration to change the residence permit to reflect the new employer. The residence permit change is typically processed within 7 working days. The new residence permit's validity will be aligned with the new work permit's remaining validity.
Step 6 — Post-Change Compliance Checks
- ☐ Verify the new residence permit correctly names the AI startup as the employer
- ☐ Confirm the residence permit expiry date matches or is within the work permit validity
- ☐ Update the employee's file with the new employer's HR system
- ☐ Diarise the renewal dates so the next cycle is not missed
Fees, Timelines, and Official Channels
The fee schedule for the relevant permits is set nationally and is modest. The table below summarises the typical charges; applicants should confirm current amounts with the issuing authority, as fee schedules are subject to adjustment.
| Item | Issuing Authority | Typical Fee | Typical Processing Time |
|---|---|---|---|
| Foreigner's Work Permit — new application | Hangzhou Municipal Science and Technology Bureau (foreign expert authority) | No or nominal administrative fee; verify current schedule | 10–20 working days |
| Foreigner's Work Permit — cancellation | Same as above | No fee | 1–5 working days |
| Residence permit for work — change | Hangzhou Public Security Bureau Exit-Entry Administration | Statutory fee per the national schedule; verify current amount | 7 working days |
| Residence permit — extension/renewal | Same as above | Statutory fee per the national schedule | 7 working days |
Official channels to verify requirements and current fees:
- National Immigration Administration — www.nia.gov.cn, for exit-entry law, residence-permit rules, and policy notices.
- National foreigner work-permit service system — the online portal operated under the Ministry of Human Resources and Social Security / State Administration of Foreign Experts Affairs, for work-permit applications and cancellations.
- Hangzhou Municipal Science and Technology Bureau — the local work-permit authority for Hangzhou, including Binjiang District employers.
- Hangzhou Public Security Bureau Exit-Entry Administration — for residence-permit changes, and the Binjiang district service window for in-person filing.
Common Misconceptions and How to Avoid Them
Misconception 1: "The residence permit is valid until its expiry date, so I can change jobs freely."
This is the most dangerous misconception. The residence permit for work is employer-anchored. Its printed expiry date does not mean you may work for a different employer until that date. Once the old work permit is cancelled, the residence permit's basis is gone, and you must regularise within the allowed window. Working for the AI startup on the old residence permit before the new work permit is issued is unlawful employment.
Misconception 2: "I can start working at the startup while the paperwork is pending."
No. Until the new work permit is issued, the foreign engineer may not lawfully perform work for the AI startup. Some startups ask the engineer to "start informally" during the gap — this exposes both the engineer and the company to penalties under the Exit and Entry Administration Law. The safe approach is to align the start date with the issuance of the new work permit.
Misconception 3: "The old employer can just transfer the permit to the new company."
Work permits are not transferable between unrelated legal entities. The "change of employer" route (Scenario B) exists only for documented affiliates. For an independent startup, the old permit must be cancelled and a new one issued.
Misconception 4: "Cancelling first is always safer because it shows good faith."
Cancelling before the new application is prepared creates the gap-period risk described above. The correct order is to prepare the new application fully, then cancel, then file immediately. Good faith is demonstrated by timely compliance, not by premature cancellation.
Misconception 5: "Class A status means I can skip the cancellation step."
Class A status may expedite processing and, in some cases, enable a commitment-based parallel filing. It does not eliminate the requirement to cancel the old permit. The cancellation still happens — it is merely reordered in the workflow.
Risk Checklist Before You Resign
Before signing the resignation with the internet company, the foreign engineer and the AI startup's HR should jointly confirm the following:
- ☐ The AI startup is registered and verified on the foreigner work-permit system
- ☐ The new labour contract is drafted and ready to file
- ☐ The degree, criminal record, and medical documents are valid and properly notarised/legalised
- ☐ The passport has at least six months' validity remaining
- ☐ The old employer has agreed on a cancellation date coordinated with the new filing
- ☐ The new employer has confirmed the expected issuance date of the new work permit
- ☐ The start date at the AI startup is set on or after the new work permit issuance
- ☐ The residence-permit change appointment is booked or the online channel confirmed
- ☐ The engineer has a copy of the cancellation record and the new work permit
- ☐ Renewal dates are diarised for the next cycle
Frequently Asked Questions
In the standard path — where the AI startup is an unrelated legal entity — yes. The residence permit for work is anchored to the sponsoring employer, and the new employer's work permit is the basis for the residence-permit change. The old work permit must be cancelled before the new one is issued, and the residence-permit change follows the new work permit. The only exceptions are the documented-affiliate route (change of employer without full cancellation) and the Class A commitment route, both of which still involve cancelling the old permit, just in a different order.
There is no single fixed number of days that applies to every case; the authorities allow a reasonable period for regularisation, and the practical target is to keep the gap to days rather than weeks. The safe approach is to prepare the new application fully before the cancellation is filed, so the new work-permit application can be submitted immediately after the cancellation record is generated. If the gap is likely to be long, consult the Hangzhou exit-entry administration before the cancellation is filed to confirm the acceptable window for your specific case.
No. Until the new work permit is issued, you may not lawfully perform work for the AI startup. Starting informally during the gap exposes both you and the company to penalties under the Exit and Entry Administration Law. Align your start date with the issuance of the new work permit.
Generally no. The streamlined "change of employer" route requires documented legal affiliation — shared ownership, a parent-subsidiary relationship, or a group structure that can be evidenced with the business licence and shareholder records. Commercial familiarity, shared investors, or the same office building do not qualify. If the startup is a genuinely independent entity, the standard cancel-and-reapply path applies.
The old employer is obliged to file the cancellation when the employment relationship ends. If it delays, the new employer's application cannot proceed, and your status remains in limbo. Escalate in writing, keep records of the resignation and the request to cancel, and if necessary seek guidance from the Hangzhou work-permit authority. Do not resign without a coordinated cancellation date agreed in writing.
Not necessarily. The new residence permit's validity is aligned with the new work permit's remaining validity, which depends on the term of your new labour contract and the category of permit issued. If the new work permit has a shorter term than your old one, the residence permit will be correspondingly shorter. Plan your next renewal cycle accordingly.
Verify with the Hangzhou Municipal Science and Technology Bureau for work-permit matters and the Hangzhou Public Security Bureau Exit-Entry Administration for residence-permit matters. The National Immigration Administration website (www.nia.gov.cn) publishes the legal framework and policy notices, and the national foreigner work-permit service system handles work-permit filings. Because local window arrangements and online/offline rules change, confirm the current channel before filing.
Bottom line for Binjiang's foreign engineers: the residence-permit change does require the old work permit to be cancelled first in the standard path — but the order of operations, not the requirement itself, is what determines whether your job change is smooth or stranded. Prepare the new application fully, coordinate the cancellation date with the new employer, file immediately, and never start work at the AI startup before the new work permit is in hand.