Vertical Insure
Examples

Renters Insurance Example

Renters insurance can be offered as required coverage or as an optional add-on. Use selection_mode to control whether the customer can decline coverage.

<html>
  <head>
    <script src="https://cdn.jsdelivr.net/npm/@vertical-insure/embedded-offer"></script>
  </head>
  <body>
    <div id="offer"></div>

    <script>
      new VerticalInsure("#offer", {
        client_id: "test_********************************",
        // Omit selection_mode or set to "required" to require coverage.
        // Set selection_mode to "optional" to allow the customer to decline.
        selection_mode: "required",
        product_config: {
          "renters": [{
            "customer": {
              "email_address": "test01@verticalinsure.com",
              "first_name": "James",
              "last_name": "Doe",
              "state": "MN",
              "postal_code": "55432"
            },
            "attributes": {
              "coverage_start_date": "YYYY-MM-DD",
              "rental_type": "SINGLE_FAMILY_HOME",
              "property_address": {
                "street": "123 Main St",
                "suite_or_unit": "Apt 4B",
                "city": "Minneapolis",
                "state": "MN",
                "postal_code": "55432",
                "country": "US"
              }
            }
          }],
        }
      }, function(offerState) {
         console.log(offerState)
      });
    </script>
  </body>
</html>