Skip to main content
Use stripe.createBillingPortalSession to create a short-lived Stripe-hosted billing portal session.

Example

automations/stripe-create-billing-portal-session.automation.ts

Inputs

customer is required. Configure the portal in Stripe or pass a configuration ID. Redirect the customer to the returned URL promptly because sessions are short-lived. idempotencyKey is optional. Inputs use camel case and accept compatible signals. Automate.ax converts provider fields to Stripe’s wire format. Metadata keys remain unchanged.

Output

Returns the created billing portal Session, including its URL. Output fields use camel case.