AcrossFlow Start free
Member migration

Before you switch mini programs, the old one needs one last release

When members move to a new mini program and the export holds only OpenIDs, the old app has to ship one more version before it closes. When this applies, who ships it, what to change, and what to put in writing.

The new mini program is in development, the member data is being exported, and the launch date is set. All the attention is on the new app; the old one is just waiting to be switched off. If the export holds only OpenIDs, though, the old mini program has one job left: a final release.

That release is what lets members carry their points and stored value across. Only whoever controls the old app can ship it, so it has to be arranged before the old app goes away, while there is still someone to arrange it with.

The short version

Add a migration entry point to the old mini program: one relay page, one backend endpoint, and a few settings. If a vendor maintains the old app or another entity owns it, put this release in the handover terms with a deadline and a minimum run time, and raise it at least two to three months before the old app closes.

1. First, check that the mini program is really changing

An OpenID belongs to a mini program, not to a vendor. If you are only changing who develops or runs your app, and the mini program itself stays the same, the AppID and every OpenID stay the same too. The new vendor takes over the existing app and none of this applies.

You need this when members are moving to a different mini program with a new AppID. The common reasons:

  • A change of entity. A restructure, a sale of the business, or a new company taking over. The new mini program gives every member a new OpenID, so it cannot recognize old members on its own. See An OpenID is not a customer ID.
  • The old app was never yours. 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.
  • A fresh start. A brand merger or split, or a decision to build a new app rather than keep the old one.

In each case the new app sees a different OpenID for the same person. Only the old app and its backend can confirm that the member in front of it is row 4,182 of the export. Only OpenIDs in the member export? explains how the handoff works.

2. Who ships the release

Whoever can publish the old mini program:

  • Your own developers. The easy case: put it in the launch plan.
  • The vendor that maintains the old app. Agree it before the contract ends.
  • The entity that owns the old app. If you bought the business but the app stayed with the seller, write it into the sale agreement.

In the last two cases, the other side has no reason to volunteer. Ask early.

3. The change list to forward

This is the change for AcrossFlow's server integration. Sample code for every part is in Server integration, ready to copy.

  1. A relay page. The member taps here to open the new mini program. To show the migration notice built in the AcrossFlow Dashboard, you can add a web-view page as well, but mini programs registered to an individual or in mainland China cannot use it.
  2. One backend endpoint. The relay page calls the old app's own backend. The backend reads the member's OpenID from the login session, requests a token from AcrossFlow with the issue token, and returns the result. It must never accept an OpenID sent by the app.
  3. Settings. Server integration needs no request domain; the relay page only calls the old app's own backend. A web-view notice page needs a business domain, which WeChat requires to have an ICP filing; acrossflow.com has none, so mini programs registered in mainland China cannot add it.
  4. Entry points. A banner on the home screen, a button in the member centre, a link on the points page: anywhere members already go.
  5. Privacy notice. State that members' OpenIDs are shared with AcrossFlow to identify them.
  6. Submit for review and publish.

For a developer who knows the codebase, this is a small change. The time goes into scheduling and WeChat's review, which is why it needs to be raised early.

4. Put it in writing

When a vendor or another entity controls the old app, “we'll help when the time comes” is not enough. Once the contract or the sale closes, the people and the goodwill on the other side both change. Write down:

  • A release date for the entry point.
  • A minimum run time. How long the old app stays live after the entry point ships; one to two months is a sensible floor. Its backend and login must keep working for the whole period.
  • Who holds the issue token. It stays on the old app's server, and you revoke it in the Dashboard when the migration ends.
  • The shutdown order. Remove the entry point and revoke the token first, then stop the backend, then take the app down.
  • The fee, if there is one, agreed in advance.

The new app has to be ready at the same time: it must accept the token on launch and report each credit back. If either side is missing, members get stuck between the two apps.

5. If the other side won't help

  • You have the old app's code and publishing access. Another developer can make the change, as long as the old backend keeps running through the migration.
  • The old backend is going away, but a front-end release is still possible. AcrossFlow's upcoming WeChat authorization mode does not depend on the old backend: once the old app is authorized to AcrossFlow, only the pages are needed. It won't work for an old app registered in mainland China, because the domain it needs has no ICP filing.
  • Nobody can publish a release. The handoff is off the table. You are left with announcements through official accounts, groups, and stores, plus manual recovery by member card or order number under rules agreed in advance.

The last case is the expensive one. Your leverage is highest before the contract ends or the sale closes, so use it then.

6. Work back from the shutdown date

  1. One to two months before the old app closes: the entry point goes live and announcements start.
  2. A week or two before that: build, test, and submit for review. The new app finishes token redemption in parallel.
  3. Before that: the terms are agreed, the export is imported into AcrossFlow, the notice page is built, and tokens are issued to both sides.
  1. 2–3 months outAgree terms; import the export, build the notice page, issue tokens
  2. 1–2 weeks before launchBuild, test, submit for review; the new app finishes redemption
  3. 1–2 months outThe entry point goes live and announcements start
  4. Shutdown dayRemove the entry point and revoke the token, stop the backend, take the app down
In the order things happen. The list above works back from the shutdown date.

In practice, that means starting two to three months before the old app closes. For the announcement and support plan itself, see The 30 days before the old mini program closes.

Developers can start with server integration, and Get started covers the full 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.