Retrieve Subscription details on custom thank you page.

Modified on: Tue, 5 Mar, 2019 at 12:11 PM

This article covers:

I am using a custom thank you page in Chargebee and I would like to retrieve subscription details from the thank you page URL. How do I achieve this?

Getting subscription details from the redirect URL

With the Checkout pages V2, Chargebee offers a default Thank You page where customers are redirected after a successful checkout. Instead, you can also redirect them to a thank you page URL on your end by configuring a redirect URL for each plan.

To add a custom thank you page(redirect URL), navigate to Product catalog > Plans > Create new plan > Hosted pages > Redirect options > Use redirect URL.


With the Redirect URL, you can also retrieve subscription-related information to display to the customer or to store on your end. For this, you’d need to add subscription-related Mail Merge Fields with the redirect page URL. 

Here’s a sample URL with Merge Fields for retrieving the subscription and invoice IDs to be displayed in the thank you page:{{}}&invoice_id={{}}

Related articles and documentation:

Hosted page URL customizations

Ravi is the author of this solution article.

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.