Data Sharing via Widget
Here is a guide to pre-filling authentic application question fields through our embedded widget
You can pre-fill data about your customer by passing in their information to the prefillData
key of the widget configuration:
authenticWidget.init({
insurancePortal: {
url: "https://<tenant-name>.<environment>.authenticinsurance.com",
},
customerId: "unique_cid1",
prefillData: {
lead: {
email: "customer@email.com",
stateCodes: ["OH"],
},
responses: {
exposures: [{
exposureName: "business_location",
fieldValues: {
"ADDRESS": "100 street, UNIT 2, city, OH 33333, US",
}
}],
questions: {
"BUSINESS_LEGAL_NAME": "Customer Business Name",
"NAME": "Customer Full Name"
}
}
}
});
The complete interface for PrefillData
is shown below:
interface PrefillData {
lead?: {
email?: string;
businessClassCode?: string;
stateCodes?: string[];
productIds?: string[];
};
responses?: {
exposures?: Array<{
exposureName: string;
fieldValues: Record<string, string>;
}>;
questions?: Record<string, string>;
};
};
Please visit the Commonly Prefilled Questions section to find the full data dictionary of the fields that can be passed in. Specifically, please see the first table, Fields for Widget Integration.
Last updated