Auth
Call/api/v1/graphql with a Fluz user Bearer access token that includes MANAGE_PAYMENT. Basic auth is not allowed on these fields.
Detecting that a relink is needed
There are two reliable signals:refreshPlaidBankConnectionsreturnsverifyMembers. Each entry identifies a connection that needs repair; use itsplatformItemIdto start the relink flow below. (See Managing Bank Account Spend Power for that mutation.)createPlaidLinkTokenfails withNo active Plaid connection found for the provided platformItemId.— the stored connection is no longer relinkable; guide the user through a new bank link instead (see Linking a Plaid Bank Account).
Relink flow
You’ll need the storedplatformItemId for the disconnected connection.
1. Create a Link token with the stored platformItemId
platformItemId to retrieve the Plaid access token from identity-service, then asks identity-service to create a Plaid update-mode Link token. The access token is never returned to the caller.
For native relink, also pass deviceOs as IOS or ANDROID.
2. Open Plaid Link
Initialize Plaid Link with the returnedlinkToken.
3. Complete the relink
In Plaid Link’sonSuccess, complete the flow with both publicToken and the same platformItemId.
4. Update the stored platformItemId
Update your stored platformItemId from the response if it changed. If it isn’t returned, call getPlaidBankAccounts for the user and store the persisted platformItemId from that response.
Using the Web SDK for relink
The sharedstartPlaidLink helper in Linking a Plaid Bank Account handles both cases. Call startPlaidLink(existingPlatformItemId) to repair a disconnected connection; call startPlaidLink() with no argument for a brand-new link.
Error handling
IfcreatePlaidLinkToken fails with No active Plaid connection found for the provided platformItemId., treat the stored connection as no longer relinkable and guide the user through a new bank link.
If a user starts a new link for the same institution instead of choosing relink, complete it as a normal new link — identity-service owns bank-account dedupe and repair. Store the returned platformItemId after completion.