Retrieve a Session
Retrieves the details of a Financial Connections Session
API Endpoint: GET /v1/link_account_sessions/{session}
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.link_account_session.get(session="string")from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.link_account_session.get(session="string")Create a Session
To launch the Financial Connections authorization flow, create a Session. The session’s client_secret can be used to launch the flow using Stripe.js.
API Endpoint: POST /v1/link_account_sessions
from os import getenv
from sideko_stripe import Stripe
client = Stripe(token=getenv("API_TOKEN"))
res = client.link_account_session.create(
account_holder={"type_": "account"}, permissions=["balances"]
)from os import getenv
from sideko_stripe import AsyncStripe
client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.link_account_session.create(
account_holder={"type_": "account"}, permissions=["balances"]
)