Create a portal session
Creates a new customer portal session, returning a token and URL to redirect the customer to their billing portal. The selected customer must have an email address because the signed session token is tied to that email.
Authorizations
Body
Response
Portal Session Created
The customerPortalUrl field contains the customer’s billing portal URL. This URL alone does not authenticate the customer session. To generate a signed portal link, append the token value from the same response as a query parameter using the following format:
${customerPortalUrl}?token=${token}
Example response:
Generated signed portal link:
https://www.kelviq.com/portal/aphelo/?token=cpt-4f7c5dc4-da9f-447b-d447-6266dc35ed6d:23fca530-adeb-4685-b3d5-9928c6d38275
The generated URL can be safely shared with the customer to provide direct access to their billing portal session.