For the complete documentation index, see llms.txt. This page is also available as Markdown.

Rendering an Offer Panel

Partners will often present an Offer after customers have selected a core product (such as a laptop, travel booking, event tickets, etc.). The Offer presentation combines dynamic data from the Create Offer API response with static branding and content elements.

Key Components of an Offer

There are key components to presenting an Offer:

Dynamic Components (from Create Offer API Response)

  1. Price - Product pricing and financial details

  2. Disclaimer - Legal disclaimers and policy information

  3. Policy Wording Link - Link to the Policy Disclosure Statement (PDS)

  4. Product Details - Product name, benefits, inclusions, and exclusions

Static Components (provided or approved by Cover Genius CSE)

  • Trustpilot banner and ratings

  • Graphical elements and branding

  • Layout and design structure

  • Additional marketing copy

The following examples are for Single Product cases. You want to make sure for multiple products we are displaying price, disclaimer and pds urls accordingly to not a signle product but multiple.

Design Structure

Cover Genius offers a standard or customized design structure optimized for the partner-specific use case (e.g., Travel, Parcel, Ticket, Retail, etc.). A Travel example is presented below:

Travel Protection Offer Panel Example

API Response Mapping

1. Price Display

Source: Create Offer response → products[].details.finance.price

Display Options:

  • Total Price: Display products[0].details.finance.price.total_amount_formatted

    • Example: "€18.61"

  • Per Unit Price: Divide total_amount by number of travelers/units

    • Example: "€9.31 per traveler" (if €18.61 total for 2 travelers)

  • In Button: Use in the CTA button from content.positive_cta

    • Example: "Yes, add Travel Protection for €18.61"

2. Disclaimer

Source: Create Offers response → content.disclaimer or content.disclaimer_html

Display: Show the disclaimer text prominently near the price or at the bottom of the offer panel. Use disclaimer_html if you want to render HTML formatting, but make sure to apply HTML sanitization before rendering to mitigate XSS attacks.

Source: Create Offer response → products[].details.pds_url

Display: Render as a hyperlink with text such as:

  • "View Wording"

  • "Read Policy Details"

  • "Policy Disclosure Statement"

Example:

4. Offer Heading and Product Content

Source: Create Offer response → content.heading and content.products[]

Display:

  • Main Title: Use content.heading

  • Sub-heading: Use content.sub_heading for additional context

  • Product Title: Use content.products[0].title for specific product name

5. Benefits

Source: Create Offers response → content.products[].benefits

Display: Iterate through the benefits object and display as bullet points:

6. Call-to-Action Buttons

Source: Create Offers response → content.positive_cta and content.negative_cta

Display:

  • Accept Button: Use positive_cta (may need to inject price)

  • Decline Button: Use negative_cta

  • Warning Modal: Show negative_cta_warning when user clicks decline

7. Trust and Credibility

Source: Create Offers response → content.credibility_message

Display: Show near the offer to build trust.

Last updated

Was this helpful?