An OpenID is not a customer ID
An exported OpenID looks like a customer key, but it only unlocks one mini program. Why moving members to a new mini program breaks at identity, what can actually match a person, and what to do when the OpenID is all you have.
Imagine the export looks complete. Tens of thousands of rows: an OpenID, a points balance, a stored-value balance, a join date. The business is moving its members to a new mini program, and the new system says it can import a spreadsheet. It feels like the hard part is over.
Then someone asks the only question that matters: when a returning member opens the new mini program, which row is this person?
If the answer is “the one with their OpenID”, the new app cannot find it. An OpenID is an identifier, but not a customer identifier in the sense most migration plans assume. It is a receipt from one specific app, and it does not travel.
An OpenID identifies a person inside one mini program. Move members to a different mini program and the same person gets a new OpenID. Before you move points or balances, establish what the new app can actually recognise: a UnionID, a verified phone number, or nothing at all. If it is nothing, the old mini program is the only system that still knows who your members are. Use it before it closes.
What an OpenID actually identifies
WeChat issues an OpenID per app. The same WeChat user who opens mini program A and mini program B receives two different OpenIDs; WeChat's terminology guide is explicit about this. The value is stable inside A, but it is not a global key to the person. That is deliberate: it limits what one app can learn about a user's activity in another.
UnionID is the exception that makes cross-app matching possible, but only inside one WeChat Open Platform account. If both mini programs are bound to the same Open Platform account, the same user shares a UnionID across them. The UnionID mechanism is worth reading before you rely on it.
An OpenID belongs to the mini program, not to whoever builds it. If you only change the vendor that develops or runs your app, and the mini program itself stays the same, every OpenID stays the same. There is nothing to migrate.
OpenID: oX9…7fOpenID: oQ2…3cWhen the OpenID stops working
The problem starts when members move to a different mini program with a new AppID. That usually happens in one of three ways:
- Same entity, new mini program. Every OpenID changes. If both apps can be bound to your own Open Platform account, UnionID can bridge them.
- A new entity. The new mini program is a separate app. It gives every member a new OpenID, so it cannot recognize old members on its own. Members with only an OpenID reconnect with a jump from the old mini program. Apps owned by different entities usually cannot share an Open Platform account, so UnionID is off the table too.
- The old app was registered by a vendor. Some vendors register mini programs under their own entity and let merchants use them. Leaving that vendor means moving to a new app in your own name, with the same consequences as a change of entity.
In all three, the old app does not redirect anyone and no identifier carries over automatically. WeChat's two built-in options—mini program account migration (which deregisters the old app) and entity change (which keeps the same AppID)—do not link members across two separate mini programs, and WeChat's docs note that account migration is not supported for non-mainland entities and requires both entities under the same Open Platform account. For the cutover timeline, see the 30 days before the old mini program closes.
Phone numbers: check availability, then check the export
Mini programs registered in mainland China can use WeChat's phone-number component. Since 2024, WeChat has been rolling out its phone-number verification component to verified mini programs registered outside mainland China, including Hong Kong, Macao, Taiwan, Singapore, and Malaysia; WeChat's announcement (in Chinese) has the current list. Either way the component only returns the member's current number. If the old export has no numbers, there is still nothing to match.
If the old export holds phone numbers, most new systems can import members by phone. The import is only the start, though. The imported record has a phone number but no OpenID in the new app. When a returning member opens the new app and signs in with WeChat, the system does not recognise them and usually creates a new account. Linking the two then waits until the member verifies the same number, and by then you are merging accounts. Members who never verify leave their old records unclaimed. Members who spend on the new account first make the merge harder.
So with phone numbers in the export, the goal is to recognise returning members before the new system creates an account for them. Either the member jumps from the old mini program, which vouches for them, or the new app verifies their number at sign-in and looks up the old record by it, then credits the member once they confirm. If the new mini program has WeChat's phone-number component, the member verifies with a tap. If not, it is an SMS or email code you send, which is one more step for the member.
Many old apps never collected a phone number at all. Their exports identify members by OpenID alone, and verifying a phone number is not an option either. Only the old app can help.
Even where phone numbers exist, treat them as evidence rather than proof. People change numbers, families share one, and one person may hold several accounts. Never merge conflicting records automatically.
What can actually match a person
Matching methods are not equal. Treat them as a hierarchy, and record which one produced each match:
- The old app vouches for the member. The member taps an entry point in the old mini program. Its backend confirms who they are from the login session, issues a single-use token, and opens the new app with it. The new app redeems the token for the old record. For an OpenID-only export, this is the path. Only OpenIDs in the member export? walks through it.
- A UnionID under the same Open Platform account. Strong, but only when both apps can be bound to one account, which a change of entity usually rules out.
- A verified phone number or email. When the old export has it and the new app can verify it, look up the old record by it at sign-in and credit the member once they confirm. Look it up before creating a new account rather than merging afterwards, subject to the caveats above.
- A member card or order number. Useful for manual checks when the member can show it is theirs. Not enough on its own to move a balance.
- Names, addresses, purchase history. These can narrow a manual review. They must never merge records or move money automatically.
The output of a readiness check should be a count by class, not a single match rate. “92% matched” hides the other 8% and says nothing about whether the 92% were matched correctly.
The part that is not a data problem
Even a perfect match is not automatically a permitted migration. Members may need to be told what is moving, why, and who will hold the data afterwards. Some transfers require fresh consent. Stored value may be treated as a financial liability with its own rules. Write down who controls the data in the old and new systems, the legal basis for the transfer, what notice members receive, how they can object, and how long the data is kept. If those answers are missing, the technical match is not the bottleneck.
A small test before you commit
Take a representative sample of 100 to 500 records, including the messy ones, and answer these questions with evidence:
- What identifies each record? Count verified phones, UnionIDs, member card numbers, and records with only an OpenID. Query the data; do not estimate from the schema.
- Will the old app still be there? Confirm someone can publish a release of it, and that its backend and login will keep running through the migration. Every OpenID-only member depends on it.
- What happens when a member arrives? Walk through it with a test account, from the old app to sign-in on the new one. Does it find the old record? Does it create a duplicate?
- Can you classify the sample? Recognised automatically, needs a manual check, cannot be recognised. Review a few of each by hand.
- Who handles the rest? Name the owner, the channel, and the turnaround for members who cannot be recognised, and decide what happens to their balances.
The question to ask first
Not “can we export it?” but “can the new app recognise the person?”, and before it creates a new account for them. Depending on how the two apps relate and what the export holds, there are four cases:
| Situation | How returning members are recognised |
|---|---|
| Only the vendor changes; the mini program stays the same | AppID and OpenIDs are unchanged. Keep using them; there is nothing to migrate |
| Both apps share an Open Platform account, and the export has UnionIDs | The new system matches by UnionID |
| The export has phone numbers or email addresses | The member jumps from the old app, or verifies their phone or email in the new app, which then looks up the old record by it |
| The export has only OpenIDs | Only the old app can vouch for the member, through a jump |
The last two cases both depend on the old mini program: the jump needs it, and phone numbers only cover members who gave one. Once it is taken down, the jump is gone.
AcrossFlow handles those two cases: import the export, and members tap once in the old app to arrive in the new one with their points and stored value. Where the export has phone numbers or email addresses, members who open the new app directly can also recover their balances with a verified number. Get started covers the setup.
Platform rules and APIs change. This article is general guidance, not legal advice, and not a guarantee that a particular migration is permitted. Verify the current requirements with the platform and qualified advisers.