Paddle Billing
Search

Generate authenticated customer portal links

Create customer portal sessions for a customer to generate authenticated links to the customer portal so that they're automatically logged in to the portal.

What's new?

We've updated the Paddle API so that now you can create customer portal sessions. Customer portal sessions generate links that automatically log a customer in to the customer portal. You can also generate deep links that let customers make changes to their subscriptions.

POSThttps://api.paddle.com/customers/{customer_id}/portal-sessions
customer_idstring

Paddle ID of the customer that you want to create a customer portal session for.

How it works

The customer portal is a secure, Paddle-hosted site that customers can use to manage their own subscriptions, payments, and account information. You can link to the customer portal to add core subscription management functionality to your app rather than building your own billing management screens from scratch.

Previously, if you linked the portal from your app then customers had to sign in to the portal. With this update, you can create customer portal sessions to generate authenticated links to the customer portal for a customer. This makes sense in the context of your app, where customers are already authenticated, and makes for a more seamless customer experience.

When creating portal sessions, you can include an array subscription_ids to generate authenticated portal links that let customers make changes to their subscriptions. You can use these links as part of subscription management workflows to let customers do things like update their payment method or cancel a subscription.

Examples

Request

This example creates a customer portal session with deep links for a subscription.

Response

If successful, Paddle returns a list of authenticated customer portal URLs. The general URL is always returned, linking to the customer portal homepage for a customer. Deep links for subscriptions are returned for the subscriptions passed as part of the request.

Summary of changes

Fields

This is a summary of the changes to fields in the Paddle API:

FieldChangeNotes
portal_sessionNew entityHolds authenticated links to the customer portal for a customer.

API operations

This is a summary of new operations in the Paddle API:

MethodSummary
POSTCreate a customer portal session for a customer

Next steps

This change is available in version 1 of the Paddle API.

It's a non-breaking change, meaning it doesn't impact existing integrations.

You can create a customer portal session using the Paddle API to get started.

Learn more