To launch the Financial Connections authorization flow, create a Session. The session’s client_ can be used to launch the flow using Stripe.js.
Parameters
- account_
holderobjectRequired The account holder to link accounts for.
- account_holder.
typeenumRequired Type of account holder to collect accounts for.
- account_holder.
accountstring The ID of the Stripe account whose accounts will be retrieved. Should only be present if
typeisaccount. - account_holder.
customerstring The ID of the Stripe customer whose accounts will be retrieved. Should only be present if
typeiscustomer.
- permissionsarray of stringsRequired
List of data features that you would like to request access to.
Possible values are
balances,transactions,ownership, andpayment_.method - filtersobject
Filters to restrict the kinds of accounts to collect.
- filters.
account_ subcategoriesarray of enums Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are:
checking,savings,mortgage,line_,of_ credit credit_.card Possible enum valuescheckingThe account is a checking account.
credit_card The account represents a credit card.
line_of_ credit The account represents a line of credit.
mortgageThe account represents a mortgage.
savingsThe account is a savings account.
- filters.
countriesarray of strings List of countries from which to collect accounts.
- prefetcharray of enums
List of data features that you would like to retrieve upon account creation.
Possible enum valuesbalancesRequests to prefetch balance data on accounts collected in this session.
ownershipRequests to prefetch ownership data on accounts collected in this session.
transactionsRequests to prefetch transaction data on accounts collected in this session.
- return_
urlstring For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app.
Returns
Returns the Session object.
{ "id": "fcsess_1MwtnGLkdIwHu7ixs7NPQ7dq", "object": "financial_connections.session", "account_holder": { "customer": "cus_NiKSWdaFz2F6I0", "type": "customer" }, "accounts": { "object": "list", "data": [], "has_more": false, "total_count": 0, "url": "/v1/financial_connections/accounts" }, "client_secret": "fcsess_client_secret_KRJTKvCY3IKoYTrW18EazcO3", "filters": { "countries": [ "US" ] }, "livemode": false, "permissions": [ "balances", "payment_method" ]}