code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.financial_connections.Session.create(
    account_holder={
      "type": "customer",
      "customer": "cus_8TEMHVY5moxIPI",
    },
    permissions=["payment_method", "balances"],
    filters={"countries": ["US"]},
  )
  '''Response {
    "id": "fcsess_1LE8to2eZvKYlo2CeCL5ftCO",
    "object": "link_account_session",
    "accountholder": {
      "account": "acct_1KdUF8RhmIBPIfCO",
      "type": "account"
    },
    "client_secret": "fcsess_client_secret_PZri8EdhlStQTdnecntKdjnx",
    "filters": {
      "countries": [
        "US"
      ]
    },
    "linked_accounts": {
      "object": "list",
      "data": [],
      "has_more": false,
      "url": "/v1/linked_accounts"
    },
    "livemode": false,
    "permissions": [
      "ownership",
      "payment_method"
    ]
  }'''
nl: Create a SessionTo launch the Financial Connections authorization flow, create a Session. The session’s client_secret can be used to launch the flow using Stripe.js.Parameters account_holder required The account holder to link accounts for.Show child parameters permissions required List of data features that you would like to request access to.
  Possible values are balances, transactions, ownership, and payment_method. filters optional dictionary Filters to restrict the kinds of accounts to collect.Show child parametersReturnsReturns the Session object