Create Portal Session
POST
Creates a billing portal session for a customer. The portal allows customers to view their subscriptions, update payment methods, cancel subscriptions, and change plans — all without requiring you to build a subscription management UI.
/portal-sessionsAuthentication
Headers
Request Body
You must provide either
customer.id (to reference an existing customer) or customer.country_code + customer.phone (to look up the customer by phone).Example Request (By Phone)
Example Request (By Customer ID)
Success Response
Response Fields
Portal Capabilities
The customer billing portal allows customers to:Authentication Flow
The portal uses OTP (one-time password) verification to authenticate the customer:- Your server creates a portal session via this endpoint
- Redirect the customer to the
url - The customer verifies their identity via OTP sent to their phone
- After verification, the customer can manage their subscriptions
- When done, the customer is redirected to your
return_url

