The Route Checkout Widget uses the Open API to dynamically generate a Route branded opt-in checkbox for insurance. To use the widget, just add the following two lines of code to your checkout page or any page where customers will select shipping. The generated code includes a checkbox that can be included as part of a form. The name and id of this checkbox is ‘routeInsureOrder’ and can be referenced like any other form variable.
If you plan to include insurance on all you orders, such as making it a handling charge, the widget is not required.
Replace WIDGET-KEY-HERE with your public widget key and QUOTE-ID with a quote id from the Request Quote API or use ‘test’ if you are working on the UI.