This article shows how the Connection API is used in practice. Every flow assumes you are acting on a specific site and that the site owner is available to authorize in a browser at least once.
Your app needs to manage a site's Business Profile locations, and the site isn't connected yet.
status is already VALID, you're done — skip the rest.connectUrl.
CONNECTING_USER_LOOKUP_UNAVAILABLE means the site-owner lookup failed temporarily. Retry this
step; this typed failure occurs before an authorization attempt is created.CONNECTING_USER_NOT_RESOLVABLE means Wix could not identify a user to own the credential. Stop
and correct the caller identity or site ownership before trying again.connectUrl to the site owner as a link or a button. Don't fetch it yourself: the URL is for
a human to open in their own browser, where they sign in to Google and grant access.status is VALID. Poll on a modest interval — every few seconds is
plenty, since the limiting factor is how long a person takes to click through Google's consent
screen.status unchanged.Then proceed with the Locations API.
Any batch job or scheduled task that calls Google or imports Business Profile data should establish the connection first, so that "not set up" is reported differently from "the operation failed". Wix-only reads and deletes can still run without active Google credentials.
status:
VALID — proceed.NEVER_CONNECTED — the site has never been connected. Report a setup step, not an error.NEEDS_RECONNECT — the credentials are gone. Run the connect flow again from step 2 above.Doing this up front turns one clear message into a report the site owner can act on, instead of a Google-backed Locations call failing part-way through a batch.
NEEDS_RECONNECTNEEDS_RECONNECT means the connection record survives but the stored Google credentials do not — most
often because the Google account holder exercised a data-deletion request. Retrying will not fix it.
status is VALID.No Disconnect is needed. Run the connect flow and authorize with the new account — Wix resolves the account after Google answers, and a different account replaces the existing connection.
status is VALID, then re-import the locations you need.What to tell the site owner before step 2:
If two people call Get Connect URL before either authorization completes, both calls can succeed
and return distinct URLs. The API does not serialize pending attempts. Once one callback creates the
connection, later Get Connect URL calls still succeed — being already connected is no longer a
reason to reject one — and whichever callback completes next is resolved by account, not rejected:
the same Google account heals the connection in place, a different one replaces it — permanently
removing every location on the connection it replaced. A connection reported as
NEEDS_RECONNECT is always replaced, even by the same account, because its stored credentials are
gone and there is nothing left to match against — so its locations are permanently removed too, and
the site owner should be warned before either attempt starts. Re-read Get Connection
rather than assuming an earlier URL is still the one in effect.
If callbacks complete concurrently, both can pass the pre-check and create more than one connection.
The next public API call then returns MULTIPLE_CONNECTIONS_NOT_REPRESENTABLE because the API will
not guess which connection you meant. This is not a caller error and is not retryable; report it and
contact Wix.
Last updated: 27 August 2026