Policy renewal
This guide explains how to configure a policy renewal flow in the KASKO webapp framework. Renewal flows allow customers to review and update their policy before accepting a renewal.
When to Use Renewal
Use a renewal flow when:
A customer receives a renewal link for an expiring policy.
You want to preload existing policy data and allow updates.
The customer needs to explicitly accept the renewal.
Key Concepts
Renewal mode is enabled via
kdata.config.is_renewal.Renewal data is available under the
renewal.*namespace.Renewal acceptance is triggered by the
policy-renewal-buttoncomponent.
Required Flags
The framework exposes renewal state via flags:
flags.is_renewal—truewhen a renewal flow is active.
You can use this in JsonLogic to route users to the correct screens.
Namespaces
Renewal data is available in JsonLogic and content under:
renewal.*renewal.id— Renewal IDrenewal.policy— Original policy datarenewal.quote— New quote data for renewal
Example:
Enabling Renewal via kdata
Renewal is typically enabled through a renewal link that passes kdata:
This will set flags.is_renewal and load the renewal context for the policy.
Initial Screen Pattern
Use JsonLogic in config.initial_screen to route renewal users to a renewal summary screen:
Typical Renewal Flow
Customer opens a renewal link with
is_renewal: true.The framework loads renewal data and pre-fills inputs.
Customer reviews or updates coverage on a renewal screen.
Customer clicks
policy-renewal-buttonto accept.A renewed policy is created with updated dates.
Component: policy-renewal-button
Use the policy-renewal-button component to trigger renewal acceptance:
Include it in the form footer on the renewal screen along with error-list.
Example Renewal Screen
Content Keys
Example content keys you might add to translations:
Notes
Make sure any renewal-specific fields are enabled in your manifest request configuration.
If you use
required_requestson the success screen, include the relevant request types for your renewal flow.Use
flags.is_renewalto gate any renewal-only UI.
Last updated