provider POST /v1/customer_sessions
@utdk/stripe /v1/customer_sessions
Create a Customer Session
<p>Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.</p>

Try it

Authentication
Configure credentials for Stripe API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

postcustomersessions
POST/v1/customer_sessions
<p>Creates a Customer Session object that includes a single-use client secret that you can use on your front-end to grant client-side API access for certain customer resources.</p>

Input

required

Configuration for each component. At least 1 component must be enabled.

The ID of an existing customer for which to create the Customer Session.

The ID of an existing Account for which to create the Customer Session.

Specifies which fields in the response should be expanded.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import stripe from '@utdk/stripe';

await stripe.postcustomersessions()