CE AMP Request a Quote Implementation

Request a Quote

I have added sample query string key and value as well as table mapping below.

Querystring sample

https://www.tdicinsurance.com/pl-quote-request?firstName=Deana%20G&lastName=Welch&addressLine1=3428%20%20Tator%20Patch%20Road&addressLine2=&city=TRACY&state=CA&zipCode=68124&primaryPhone=2015550123&primaryEmail=something@email.com&adaNumber=123456789

 

Query string key mapping for website fields:

Fields for website pre-fill:

Example Data as if ADA 109760448

Website Field Description

Querystring key from portal

Policyholder First Name

Santos

First Name

 

firstName

Policyholder Last Name

Cortez, Jr.

Last Name

 

lastName

Policyholder Address Line1

3320 Los Coyotes Diagonal

Street

 

addressLine1

Policyholder  Address Line2

Ste 200

Street (cont.)

 

addressLine2

Policyholder City

Long Beach

City

 

city

Policyholder State

CA

State

 

state

Policyholder Zip

90808

Zip

 

zipCode

Policyholder State

CA

What state will you be practicing in?

state

Primary Phone

562-377-1375

Office Telephone

 

primaryPhone

Primary Email

<null>

Email Address

 

primaryEmail

ADA No.

109760448

ADA No.

 

adaNumber

 

 

 

 

 

Technical suggestions:

Use decodeURI in website for decoding the url with special characters.

 

const url =

"https://www.tdicinsurance.com/pl-quote-request?firstName=Deana%20G&lastName=Welch&addressLine1=3428%20%20Tator%20Patch%20Road&addressLine2=&city=TRACY&state=CA&zipCode=68124&primaryPhone=2015550123&primaryEmail=something@email.com&adaNumber=123456789";

 

const decode = decodeURI(url);

 

 

Check query string field is empty or not in website implementation, sometimes you may get empty value. (ex. addressLine2)

 

Approach 1:

Now we are redirecting the actual page with query string which is added in sample request.

Approach 2:

TDIC can create a separate capability for redirecting request a quote page within the website. In this case, portal will call common endpoint and additionally append a lob name in query string for website reference.