Create customer billing portal

📘

API Refs

Request body

NameTypeDescriptionRequired
customerstringStripeCustomerID or email addressyes
return_urlstringURL to return to when the customer exits the portalyes

Response

Returns a billing portal session object containing:

  • url: The customer portal URL to redirect your customer to

Description

This endpoint creates a Stripe billing portal session for your customers to manage their subscriptions, payment methods, and billing details. The portal allows customers to:

  • Update payment methods
  • Download invoices
  • Cancel or modify subscriptions
  • Update billing information

This provides a complete self-service experience without requiring you to build these features yourself.