Create a pre-cancel hosted page
Open in PostmanCreates a hosted_page
resource of type
pre_cancel
. Route canceling users to this page to provide them a retention experience and start saving revenue.
The hosted page is created in accordance with the retention experience configured in the Chargebee Growth app
, along with the data provided as input to this endpoint. Call the endpoint before your customer clicks the Cancel
button, and when they do, route them to the url
in the endpoint response.
Sample Request
Sample Result[JSON]
URL Format
Input Parameters
The unique ID of the brand this hosted page should be linked to. Applicable only when multiple brands have been created for the site. This need not match the brand of the customer or subscription in the request; when the two differ, the value provided here is used for the hosted page. An alternative way of passing this parameter is by means of the chargebee-brand-id custom HTTP header; when both are provided, they must specify the same brand.
Default behavior
- When not provided, the hosted page is linked to the brand of the customer or subscription in the request.
Additional data to be passed to Chargebee Growth. Only the value of pass_thru_content.custom is sent to Chargebee Growth. It is sent as the value of the custom property. The fields provided in pass_thru_content.custom must be preconfigured in Chargebee Growth.
Although only pass_thru_content.custom is sent to Chargebee Growth, all of pass_thru_content is stored by Chargebee Billing and is retrievable as an attribute of the hosted_page.
.
The locale tag for the language in which the retention experience should be rendered. The value must match the mapping rules of one of the languages configured in the Chargebee Growth app.
Example: en, pt, fr, it
Prerequisites
- The Chargebee Growth app's language resolution setting must be enabled and set to API / JS. If it's set to Billing, this parameter is ignored, and Growth resolves the language from
customer.localein Chargebee Billing instead. - To enable the language resolution setting, contact Chargebee Support.
Default behavior Growth uses the site's primary language for the retention experience when:
localeisn't passed.localeis passed but doesn't match the mapping rules of any configured language.localeis passed and matches a configured language, but that language has no translated variant for the specific experience.
Returns
Resource object representing hosted_page