Retrieve connect request
Returns the latest connection request you started for this integration with
POST /integrations/{key}/connect. Poll it to follow the connection; it never changes
anything.
Poll every 10 seconds while status is pending or authorizing, and stop once it is
complete, failed, or expired. A request that failed or expired stays here until
you start a new one, so you can read how it ended. If the user wants to try again, call
POST /integrations/{key}/connect for a new link.
While the company is onboarding, this works only once Finta has approved it (see
“Onboarding”); before then it returns 403 onboarding_incomplete.
Authorizations
Response
The latest connection request for this integration.
pending until the provider sends the user back (for a Plaid bank, until Plaid reports that the session ended), then authorizing while Finta finishes the connection, then complete or failed. expired when nobody finished the link before expires_at. A request already authorizing when expires_at passes stays authorizing while Finta finishes it. For a Plaid bank, a request can still turn complete after expires_at when the user finished in Plaid just before it and Plaid reported it late, or after failing with access_denied when the user reopens the same link and connects.
pending, authorizing, complete, failed, expired "pending"
The provider's authorization page. A person opens it in a browser signed in to Finta as the user who started the request. Single use. For a Plaid bank it is a Plaid Hosted Link page instead, which needs no Finta sign-in: anyone with it can connect a bank to the company until expires_at. null unless status is pending.
"https://oauth2.mercury.com/oauth2/auth?client_id=example&redirect_uri=https%3A%2F%2Fapp.finta.com%2Fintegrations%2Fmercury%2Fcallback&response_type=code&scope=offline_access+read&state=example"
Why a failed request failed; null for every other status. access_denied: the user declined at the provider, or left Plaid without connecting a bank. provider_admin_required: the provider account that approved is not an administrator. provider_error: the provider returned an error or no authorization code. connection_failed: Finta could not finish the connection, for example because the bank picked in Plaid is not the one requested.
access_denied, provider_admin_required, provider_error, connection_failed