Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.36 KB

File metadata and controls

58 lines (40 loc) · 1.36 KB

get

Retrieve a Session

Retrieves the details of a Financial Connections Session

API Endpoint: GET /v1/link_account_sessions/{session}

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.link_account_session.get(session="string")

Asynchronous Client

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

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

Synchronous Client

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"]
)

Asynchronous Client

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"]
)