Standalone customer portal
Learn how link the Bunny customer portal with your platform to enable self service subscription management and upgrades.
Last updated
Was this helpful?
Learn how link the Bunny customer portal with your platform to enable self service subscription management and upgrades.
Last updated
Was this helpful?
This guide covers the customer portal integration from a developers point of view. It assumes that you have already setup your Products in Bunny and enabled them to be visible for self service.
TLDR... This integration involves using the API to generate a token that will be appended to a customer portal url that you will redirect the user over to for subscription management.
Make a request from your backend to obtain the portal security token using the graphql request.
The API client will need to have the security:read and security:write scopes enabled.
Use the API client to with the security scopes.
The portal token is obtained using the graphql request.
Attributes
Mutation
On success the response will contain a token attribute. You need to extract this token and use it in the next step.
The final step is to redirect the browser to the customer portal by appending the token to the base url for your customer portal.
You can also redirect to specific pages within the customer portal by including the path to that page.