How to link a user to manage an active Subscription

We are using the API to access Commerce Subscriptions. We can render info in our system so that our customers log in and they can see their active subscription info. We need to allow them to click on a link to HubSpot so they can do things such as enter a new credit card or cancel their subscription.

How shall we build that URL that goes to a specific Subscription? The user is already signed into our app, but they did not create any kind of username or password in Hubspot when they purchased the Subscription. So, how can we render a hyperlink that allows the authenticated user to modify their existing subscription?

Hey, @ANeveu :waving_hand: The options for updating or modifying subscription are all done in-app. Here are the related articles — Update a subscription payment method and Create and share payment links. The Subscriptions API endpoints (Commerce Hub) are read-only and would not be suitable for updating or modifying a subscription. The links for updating payments or subscription details are autogenerated from the User record and then sent to the associated email. The documentation nor the dev doc for this API offer a way to generate these links outside what is linked above.

Best,

Jaycee

Okay, that’s great information, thank you! I think it is just what I was looking for, and I am fine that I can only get to it in-app. I guess what we will do for a process is watch the subscriptions and any that have a payment failure, and then use that Update Payment Method tool so that the customer updates it themselves. That’s of course preferrable in so many ways! Question: When this happens, is authentication handled by essentially a magic link and the user really does not need or have a username/password into our hubspot account?