Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 693 Bytes

File metadata and controls

27 lines (18 loc) · 693 Bytes

create

Create an Account Session

Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.

API Endpoint: POST /v1/account_sessions

Synchronous Client

from os import getenv
from sideko_stripe import Stripe

client = Stripe(token=getenv("API_TOKEN"))
res = client.account_sessions.create(account="string", components={})

Asynchronous Client

from os import getenv
from sideko_stripe import AsyncStripe

client = AsyncStripe(token=getenv("API_TOKEN"))
res = await client.account_sessions.create(account="string", components={})