Pre-Owned Car Loan

How Car Age Affects Used Car Loan Terms?

author-image
Pallavi Lakra
23 Sep 2025 |4 Minutes
Table of Content

Cars are depreciating assets and decrease in value with time. A used car has a lower resale value, which means that if a borrower defaults, the lender will have to face heavy losses when trying to recover the loan.

Relatively newer pre-owned cars are generally easier to finance with favourable loan-to-value ratios, while older vehicles may have slightly different terms to match their depreciation and condition.

Read Also: 7 Factors to Consider Before Applying for a Used Car Loan

What is Depreciation, and How Does it Affect the Car's Value?

car-age

One of the biggest reasons why car age is so important is depreciation. All cars start to depreciate the moment they leave the showroom. Depreciation is the gradual decrease in the car's value because of wear and tear, use, and lower market demand. Depreciation occurs the most in the first two years.

Lenders consider depreciation because it affects the car’s resale value. An older vehicle that has already lost a significant amount of its value is riskier. ​​Because of this, a vehicle that is 2 years old might still be qualified for a larger loan amount and better terms, whereas a car that is 12 years old would not qualify at all or only partially.

Read Also: What is Depreciation and Factors That Affect It in Case of a Used Car

Other Factors That Lenders Consider

Age is not the only factor considered by lenders while checking eligibility for a used car loan. Most lenders review the bigger picture before they offer you a Pre-owned Car Loan. Here are some other factors that lenders will consider:

  • Credit Score: Having a clean credit record indicates that you're a responsible customer. Even with an older car, having a good credit rating can put you in a favourable position. Similarly, if you have a poor credit score, it might result in higher interest or even rejection.
  • Income Level: Your income is also a significant factor in determining eligibility for a loan. A regular and stable monthly income gives them confidence that you will not miss payments. Self-employed borrowers will have to submit additional documents to establish a constant income.
  • Down Payment: The higher the down payment you can make, the lower the risk to lenders. A higher down payment speeds up the loan approval and lowers the total cost of the loan.
  • Car Condition: The mechanical and physical condition of the vehicle is critical, particularly for used cars. A vehicle with good service history, regular maintenance, and no severe damage will be more easily financed compared to one with a bad service history.

In general, car age is an essential factor; however, your general financial situation, your ability to repay the loan, and the state of the car all together determine whether you can get approved for a car loan and the conditions that you're offered.

Read More: The Ultimate Used Car Checklist: 25 Things to Inspect Before You Pay

How Can You Increase Your Chances of Getting a Used Car Loan Approved?

Here are some tips that will help you become more eligible for used car loans:

  • Second-hand Car’s Age: To increase your chances of getting a loan approved and receiving better terms, choose a car that is not too old, ideally, less than 8 to 10 years old.
  • Verify the Car's History: The car's history must be clean. Ensure the car has not been involved in serious accidents, has no service issues, and has no pending loans or insurance claims. The lenders feel more confident when they know the car is in good condition and has no hidden problems.
  • Choose a Reliable Dealer: Always opt for a certified pre-owned dealer or an authorised dealer to buy a pre-owned car. The dealers usually check the cars thoroughly and then certify them, so lenders are assured that the vehicle is reliable and eligible for financing.
  • Make a Larger Down Payment: Try to make as large a down payment as possible, as it will lower the loan-to-value ratio. This reduces the risk for the lender and increases the approval chances. Sometimes, it will also qualify you for a lower interest rate.
  • Choose a Shorter Repayment Term: Short repayment durations are preferable to lenders in the case of used vehicles, as the value of the car continues to depreciate. A loan term of 2-4 years can increase your chances of qualifying for a loan.
  • Maintain a Good Credit Score: Your credit score plays a vital role in the approval of a Pre-owned Car Loan. A good credit score indicates you are financially disciplined, which can help balance the risk to the lender on your used car loan.

Read Also: Factors to Consider Before Applying for a Used Car Loan

To Conclude

Car’s age is one of the most important factors that lenders consider when determining your eligibility and terms for a Pre-owned Car Loan. The loan can help you fulfil your dream of having your own car. However, always take your financial situation and personal requirements into account, and make a well-informed decision when applying for a used car loan.

Looking to get a used-car loan? Poonawalla Fincorp offers a Pre-owned Car Loan of up to Rs. 75 Lakh at affordable interest rates with a long repayment tenure of up to 6 years. Apply now and take the first step towards owning your dream car!

FAQs

Can I get a car loan if the car is already 9-10 years old?

It depends on the lenders; most of the financing is restricted to cars under 8-10 years of age. However, some lenders may also offer loans for vehicles that are 9-10 years old with limited loan amounts, interest rates, and tenures.

Does the car's age affect the interest rate on a car loan?

Yes, older cars usually attract higher interest rates due to a higher risk for lenders.

Will a higher down payment help me get a car loan for an older car?

Absolutely, a larger upfront payment reduces the lender's risk and improves approval chances for a used car loan.

What are the documents needed for a used-car loan at Poonawalla Fincorp?

Proof of name and address, evidence of income, bank statements, and vehicle documentation, such as RC (Registration Certificate), insurance, and PUC (Pollution Under Control), are required for a used car loan at Poonawalla Fincorp.

Does the car's service record matter for loan eligibility?

Yes, a well-maintained service history can increase your chances of getting approval for a used car loan.

Disclaimer

We take utmost care to provide information based on internal data and reliable sources. However, this article and associated web pages provide generic information for reference purposes only. Readers must make an informed decision by reviewing the products offered and the terms and conditions. Loan disbursal is at the sole discretion of Poonawalla Fincorp.

*Terms and Conditions apply
call to action
An error occurred while processing the template.
The following has evaluated to null or missing:
==> blogEntry.getCoverImageURL(themeDisplay)  [in template "20096#20121#1665161" at line 30, column 26]

----
Tip: If the failing expression is known to legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----

----
FTL stack trace ("~" means nesting-related):
	- Failed at: #assign coverImageUrl = blogEntry.get...  [in template "20096#20121#1665161" at line 30, column 1]
----
1<#assign baseUrl= themeDisplay.getPortalURL() > 
2<#assign groupId = themeDisplay.getScopeGroupId() > 
3<#assign blogService = serviceLocator.findService("com.liferay.blogs.service.BlogsEntryLocalService")> 
4<#assign assetCategory = serviceLocator.findService("com.liferay.asset.kernel.service.AssetCategoryLocalService")> 
5<#assign url = themeDisplay.getURLCurrent()?substring(7)?trim!"" /> 
6<#if url = ""> 
7<#assign url="/personal-loan/top-ideas-to-celebrate-diwali-festival"> 
8</#if> 
9<#assign blogEntry = "" /> 
10<#attempt> 
11<#assign blogEntry = blogService.getEntry(groupId, url)!""> 
12<#recover> 
13<#assign blogEntry = "" /> 
14</#attempt> 
15<#assign blogcontent = "Default blog content"> 
16<#assign title = "Default title" > 
17<#assign description = "Default description" > 
18<#assign createDate = "Default createDate"> 
19<#assign modifiedDate = "Default modifiedDate"> 
20<#assign displayDate = "Default displayDate"> 
21<#assign coverImageUrl = "Default url"> 
22<#if blogEntry?has_content && blogEntry?is_hash> 
23<#assign blogcontent = blogEntry.content > 
24<#assign title = blogEntry.title!"Default title" > 
25<#assign description = blogEntry.description !"Default description" > 
26<#setting time_zone="Asia/Kolkata"> 
27<#assign createDateIST = blogEntry.createDate?string("yyyy-MM-dd'T'HH:mm:ssXXX") !"Default createDate"> 
28<#assign modifiedDate = (blogEntry.modifiedDate?long + (10 * 60 * 1000))?number_to_datetime?string("yyyy-MM-dd'T'HH:mm:ssXXX") !"Default modifiedDate"> 
29<#assign displayDateIST = (blogEntry.displayDate?long + (10 * 60 * 1000))?number_to_datetime?string("yyyy-MM-dd'T'HH:mm:ssXXX") !"Default displayDate">  
30<#assign coverImageUrl = blogEntry.getCoverImageURL(themeDisplay)?keep_before('?')?keep_before_last('/') !"Default url"> 
31<#assign caption = blogEntry.coverImageCaption ! "Caption"> 
32<#assign authorName = blogEntry.getExpandoBridge().getAttribute("Author Name List") !"Poonawalla Fincorp Team" /> 
33<#if caption?contains("Caption")> 
34<#assign width = "1200"> 
35<#assign height = "675"> 
36<#elseif caption?contains("*")> 
37<#assign width = caption?keep_before('*')?replace("<p>","")?trim ! "1200"> 
38<#assign height = caption?keep_after('*')?replace("</p>","")?trim ! "675"> 
39<#else> 
40<#assign width = "1200"> 
41<#assign height = "675"> 
42</#if> 
43 
44</#if> 
45<#assign authorName = blogEntry.getExpandoBridge().getAttribute("Author Name List") !"Poonawalla Fincorp Team" /> 
46<#if authorName[0]?has_content> 
47<#if authorName[0] == "Pradeep Salunkhe"> 
48<#assign authorName = "Pradeep Salunkhe"> 
49<#assign authorPageUrl = "${themeDisplay.getPortalURL()}/author/pradeep-salunkhe"> 
50<#assign authorDescription ="With over 12 years of experience - including 8+ years in the BFSI sector - Pradeep shares practical financial insights to help readers make smarter money decisions."> 
51<#assign portraitURL = "/documents/35085/2665948/pradeep-salunkhe.jpg"> 
52<#elseif authorName[0] == "Vidhi Thakkar"> 
53<#assign authorName = "Vidhi Thakkar"> 
54<#assign authorDescription ="Vidhi Thakkar is a content writer with 2 years of experience crafting digital content in finance. She enjoys simplifying complex topics and finds joy in everyday storytelling."> 
55<#assign authorPageUrl = "${themeDisplay.getPortalURL()}/author/vidhi-thakkar"> 
56<#assign portraitURL = "/documents/35085/0/image.jpg"> 
57<#elseif authorName[0] == "Nachiketh Premraj"> 
58<#assign authorName = "Nachiketh Premraj"> 
59<#assign authorDescription = "As a seasoned Digital Marketing and Brand Leader, I specialize in Social Media Marketing, Social Listening (ORM), Brand Insights, Martech, App Marketing, SEO, Performance Marketing, Content Creation, Digital Strategy, Brand Building, and Consumer Insights. With a PGDM focused on Advertising & PR, I bring 18 years of diverse experience across Media and Banking sectors. My passion lies in leveraging data-driven insights to craft compelling brand narratives and drive impactful marketing strategies." > 
60<#assign authorPageUrl = "${themeDisplay.getPortalURL()}/author/nachiketh-premraj"> 
61<#assign portraitURL = "/documents/35085/2516764/nachiketh-premraj.jpg"> 
62 
63<#elseif authorName[0] == "Pallavi Lakra"> 
64<#assign authorName = "Pallavi Lakra"> 
65<#assign authorDescription = "Pallavi Lakra is a content writer with 2 years of experience crafting digital content in finance. She enjoys simplifying complex topics and finds joy in everyday storytelling." > 
66<#assign authorPageUrl = "${themeDisplay.getPortalURL()}/author/pallavi-lakra"> 
67<#assign portraitURL = "/documents/35085/2516764/pallavi-lakra.jpg"> 
68<#else> 
69<#assign authorName = "[Poonawalla Fincorp Team]" > 
70<#assign authorDescription ="Our team of expert writers and editors are passionate about providing authentic and valuable information on finance. Our aim is to simplify financial and finance-related concepts. We strive to help our readers become more aware and empowered to make informed financial decisions."> 
71<#assign authorPageUrl = "${themeDisplay.getPortalURL()}/author/poonawallateam"> 
72<#assign portraitURL = "/documents/d/poonawalla-fincorp/user_portrait"> 
73</#if> 
74</#if> 
75<script type="application/ld+json" id="json-ld"> 
76
77    "@context":"http://schema.org", 
78    "@type":"Article", 
79    "url":"${(themeDisplay.getPortalURL() + themeDisplay.getURLCurrent())?json_string}", 
80		"headline":"${title}", 
81    "description":"${description}", 
82    "datePublished":"${createDateIST}", 
83    "dateModified":"${displayDateIST}", 
84    "mainEntityOfPage":{ 
85        "@type":"WebPage", 
86        "@id":"${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}" 
87        }, 
88        "publisher":{ 
89            "@type":"Organization", 
90            "name":"Poonawalla Fincorp Limited", 
91            "logo":{ 
92                "@type":"ImageObject", 
93                "url":"https://poonawallafincorp.com/documents/d/poonawalla-fincorp/logo", 
94								"width":"125", 
95                "height":"26" 
96                }}, 
97				"author": { 
98           "@type": "Person", 
99           "name": "${authorName}", 
100           "description": "${authorDescription}", 
101           "url": "${authorPageUrl}", 
102           "image": { 
103           "@type": "ImageObject", 
104           "url": "${baseUrl}${portraitURL}", 
105           "width": 200, 
106           "height": 200 
107
108					}, 
109					"image": { 
110           "@type": "ImageObject", 
111           "url": "${coverImageUrl}", 
112           "width": "${width}px", 
113           "height": "${height}px" 
114		       }, 
115					"articleBody":"${blogcontent?replace('<[^>]*>', '', 'r')?replace('[^a-zA-Z0-9 ]', '', 'r')?json_string}", 
116 
117	        "about": [ 
118
119             "@type": "Thing", 
120             "name": "${themeDisplay.getURLCurrent()?split('/')[2]?replace("-"," ")?capitalize}" 
121
122
123
124
125</script> 
126 
127 
128 
129<#assign htmlContent = blogcontent> 
130<#if htmlContent?contains("<h2>Frequently Asked Questions</h2>")> 
131<#assign faqContent = htmlContent?keep_after("<h2>Frequently Asked Questions</h2>")?keep_before("<div class=")> 
132<#assign strongSplits = faqContent?split("<strong>")> 
133 
134<script type="application/ld+json" id="json-ld"> 
135
136  "@context": "https://schema.org", 
137  "@type": "FAQPage", 
138  "mainEntity": [ 
139<#list strongSplits as item> 
140<#if item_index != 0> 
141
142        "@type": "Question", 
143        "name": "${item?keep_before("</strong>")?trim}", 
144        "acceptedAnswer": { 
145          "@type": "Answer", 
146          "text": "${item?keep_after("</strong>")?replace("<[^>]*>", "", "r")?trim}" 
147
148      }<#if !item?is_last>,</#if> 
149</#if> 
150</#list> 
151
152
153</script> 
154 
155<#elseif htmlContent?contains("<h2>FAQs</h2>")> 
156<#assign faqContent = htmlContent?keep_after("<h2>FAQs</h2>")?keep_before("<div class=")> 
157<#assign strongSplits = faqContent?split("<strong>")> 
158<script type="application/ld+json" id="json-ld"> 
159
160  "@context": "https://schema.org", 
161  "@type": "FAQPage", 
162  "mainEntity": [ 
163<#list strongSplits as item> 
164<#if item_index != 0> 
165
166        "@type": "Question", 
167        "name": "${item?keep_before("</strong>")?trim}", 
168        "acceptedAnswer": { 
169          "@type": "Answer", 
170          "text": "${item?keep_after("</strong>")?replace("<[^>]*>", "", "r")?trim}" 
171
172      }<#if !item?is_last>,</#if> 
173</#if> 
174</#list> 
175
176
177</script> 
178 
179<#else> 
180<#-- No FAQ section found --> 
181<#assign faqContent = ""> 
182</#if> 
183  
184 
185<style nonce="2D0oPEosbPtmhwpQq22tPg==" nonce="SPiOUHjpip8198n4uNoZFQ=="> 
186 #waitd{ 
187		color:red; 
188
189 .waitd{ 
190		color:red; 
191
192</style> 
193<div class="article-blog_feature"> 
194        <img class="mob-hide" src="https://poonawallafincorp.com/documents/d/poonawalla-fincorp/article06-png" alt="Personal Loan Banner" width="100%" height="auto" loading="lazy" /> 
195        <img class="d-none mob-show" src="https://poonawallafincorp.com/documents/d/poonawalla-fincorp/marticle06-png" alt="Personal Loan Banner" width="100%" height="auto" loading="lazy" /> 
196        <div class="article-blog_overlay container-fluid"> 
197          <div class="blog-feature_caption">           
198 <h3><#if (Heading.getData())?? && !(Heading.getData()?lower_case?contains("<script"))> 
199	${Heading.getData()} 
200</#if></h3> 
201            <div class="loanAmount"> 
202              <div class="loanAmountLimit"> 
203               Get Upto 
204<div>₹<#if (GetUptoAmount.getData())?? && !(GetUptoAmount.getData()?lower_case?contains("<script"))> 
205	${GetUptoAmount.getData()} 
206</#if><span>lakhs</span></div> 
207              </div> 
208              <div class="loanAmountLimit"> 
209                Starting at 
210                <div><#if (Text53388883.getData())?? && !(Text53388883.getData()?lower_case?contains("<script"))> 
211	${Text53388883.getData()} 
212</#if><span> % </span></div> 
213              </div> 
214            </div> 
215           <a href="${ApplyNowLinkPage.getFriendlyUrl()}" title="Apply-Loan">  <button class="btn btnWhite apply">Apply Now</button></a> 
216          </div> 
217        </div> 
218      </div>			 
219	<div class="article-blog_inputBox"> 
220  <div class="article-blog_inputContent">        
221  <div class="emailBox"> 
222    <label> Like what you read? <br>  
223      Stay ahead with finance insights</label> 
224    <div class="emailInput position-relative"> 
225     <input class="form-control" type="text" placeholder="e-mail address" id="emailID" maxlength="50"/> 
226    <img src="https://poonawallafincorp.com/documents/d/poonawalla-fincorp/rightarrow" alt="rightArrow" onclick="sendSubcription()"/> 
227    </div> 
228		<span id="success_req" style="display:none"> 
229	 <label class="mt-2 position-relative top-0 subscribeMsg"><span class="text-green mt-2"> 
230        <img src="https://poonawallafincorp.com/documents/d/poonawalla-fincorp/greencheck" class="mr-2">  Thank you for subscribing!</img></label> 
231	  </span> 
232		<div class="emailInput position-relative waitd" id="waitd" style="display:none">Please wait...</div> 
233	   <div class="emailInput position-relative" id="success_suscrib" style="display:none">Email Already Suscribed!</div> 
234	   <div class="emailInput position-relative" id="error_val" style="display:none">Enter Valid Email Id</div> 
235		 <div class="emailInput position-relative" id="error_req" style="display:none">Enter Your Email Id</div>  
236</div></div></div></div>		 
237 
238<script> 
239var baseUrlNew = "${baseUrl}"; 
240var _token; 
241function getTokens() { 
242    $(".loader").css("display", "block"); 
243    const myHeaders = new Headers(); 
244    myHeaders.append("Content-Type", "application/x-www-form-urlencoded"); 
245    myHeaders.append("Cookie", "JSESSIONID=E6176249B705404196C7DC2B93619CA8"); 
246    const urlencoded = new URLSearchParams(); 
247    urlencoded.append("client_id", "id-e87ee6b8-15d8-9cfb-e4e8-ee81957e1da"); 
248    urlencoded.append("client_secret", "secret-39e1d060-4ea7-af66-fe6b-63742d41d920"); 
249    urlencoded.append("grant_type", "client_credentials"); 
250    const requestOptions = { 
251        method: "POST", 
252        headers: myHeaders, 
253        body: urlencoded, 
254        redirect: "follow" 
255    }; 
256    fetch(baseUrlNew+"/o/oauth2/token", requestOptions) 
257        .then((response) => response.text()) 
258        .then((result) => { 
259            let res = JSON.parse(result); 
260            var btok = res.access_token; 
261            _token = btok; 
262						}) 
263        .catch((error) => { 
264            $(".loader").css("display", "none"); 
265            console.error(error); 
266        }); 
267
268//getTokens(); 
269function handleEnterKey(event) { 
270      if (event.keyCode === 13) { 
271        sendSubcription(); 
272
273
274 
275    const emailInput = document.getElementById('emailID'); 
276    emailInput.addEventListener('keydown', handleEnterKey); 
277	function sendSubcription() { 
278			var emailId=$('#emailID').val(); 
279		$("#success_req").css("display","none"); 
280		$("#success_suscrib").css("display","none"); 
281	 
282	//const emailRegex = /^[a-zA-Z0-9._%+-]+@gmail\.com$/; 
283	const emailRegex = /^[a-zA-Z0-9._%+-]+@(gmail\.com|yahoo\.com|yopmail\.com|outlook\.com|[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})$/; 
284   if(emailRegex.test(emailId)){ 
285		  emailInput.classList.remove('danger'); 
286		 $("#error_val").css("display","none"); 
287		 $("#error_req").css("display","none"); 
288	 }else{ 
289		 if(emailId ==""){	 
290			 emailInput.classList.add('danger'); 
291		  $("#error_val").css("display","none"); 
292			$("#error_req").css("display","block"); 
293			return; 
294	   }else{ 
295			 emailInput.classList.add('danger'); 
296			  $("#error_val").css("display","block"); 
297			  $("#error_req").css("display","none"); 
298			 return; 
299
300		   
301
302	//	return; 
303		$("#waitd,.waitd").css("display","block"); 
304     var apiUrl =baseUrlNew+"/o/subscription/get-lead-by-email?email="+emailId; 
305          $.ajax({ 
306            url: apiUrl, 
307            type: 'GET',					  
308            dataType: 'json', 
309					//	headers: { 
310        //'Authorization': 'Bearer ' + _token 
311       // }, 
312            success: function(data) { 
313                 emailInput.classList.remove('danger'); 
314			           $("#error_val").css("display","none"); 
315			           $("#error_req").css("display","none"); 
316							   //$("#success_req").css("display","block"); 
317							if(data && data.length>0){ 
318								$("#success_suscrib").css("display","block"); 
319								$("#waitd,.waitd").css("display","none"); 
320								$("#emailID").val(""); 
321								setTimeout(()=>{$("#success_suscrib").css("display","none"); 
322								$("#waitd").css("display","none"); 
323								},2000) 
324								return; 
325							}else{ 
326								$("#success_suscrib").css("display","none"); 
327								newSuscribed(emailId); 
328
329                 $.each(data, function(index, loan) { 
330                    $('#loanList').append($('<option></option>').attr('value', loan.lId).text(loan.loanName)); 
331                }); 
332            }, 
333						 
334                                    complete: function(){ 
335																		//	$("#waitd,.waitd").css("display","none"); 
336                                    }, 
337            error: function(xhr, status, error) { 
338
339        }); 
340
341	function newSuscribed(emailId){    	 
342	var apiUrl = baseUrl1+"/o/subscription/capture-lead?Attribute=EmailAddress&Value="+emailId;  
343    const myHeaders = new Headers(); 
344//myHeaders.append("Authorization", 'Bearer ' + _token); 
345myHeaders.append("Cookie", "COOKIE_SUPPORT=true; GUEST_LANGUAGE_ID=en_US; JSESSIONID=077E178F6946DD868149B7A58A993FBB"); 
346 
347const requestOptions = { 
348  method: "POST", 
349  headers: myHeaders, 
350  redirect: "follow" 
351}; 
352 
353fetch(apiUrl, requestOptions) 
354  .then((response) => response.text()) 
355  .then((data) => {	 
356	if (JSON.parse(data)?.Status == "Success") { 
357                localStorage.setItem("submitApi", emailId); 
358                sendSubcriptionAgain(emailId) 
359                    .then((res) => { 
360                        return true; 
361                    }) 
362                    .catch((err) => { 
363                        console.log(err); 
364                    }) 
365
366            else { 
367 
368
369	}) 
370	.catch((error)=>{ 
371	console.warn(error); 
372	}) 
373	 
374
375function increaseTimeByFiveMinutes() { 
376    var currentDate = new Date(); // Get the current date and time 
377    currentDate.setMinutes(currentDate.getMinutes() + 5); // Increase current time by 5 minutes 
378 
379    // Format the date and time as "YYYY-MM-DD HH:mm:ss" 
380    var formattedDateTime = currentDate.toISOString().replace(/T/, ' ').replace(/\..+/, ''); 
381 
382    return formattedDateTime; 
383
384 
385 
386	function passLeadGenerate(prospectId, emailId) { 
387   
388     
389 
390	var activitnn= "News Letter"; 
391   
392var apiUrl = baseUrl1 + "/o/subscription/create-subscription-lead?RelatedProspectId=" + encodeURIComponent(prospectId.trim()) + 
393"&ActivityNote=" + encodeURIComponent(activitnn) + "&ActivityDateTime=" + encodeURIComponent(increaseTimeByFiveMinutes()) + 
394"&ActivityEvent=258"+"&ProcessFilesAsync=true"; 
395  
396    const myHeaders = new Headers(); 
397//myHeaders.append("Authorization", 'Bearer ' + _token); 
398myHeaders.append("Cookie", "COOKIE_SUPPORT=true; GUEST_LANGUAGE_ID=en_US; JSESSIONID=077E178F6946DD868149B7A58A993FBB"); 
399 
400const requestOptions = { 
401  method: "POST", 
402  headers: myHeaders, 
403  redirect: "follow" 
404}; 
405 
406fetch(apiUrl, requestOptions) 
407  .then((response) => response.text()) 
408  .then((data) => { 
409		$("#success_req").css("display","block"); 
410		$("#waitd,.waitd").css("display","none"); 
411					$("#emailID").val(""); 
412					setTimeout(()=>{ 
413					$("#success_req").css("display","none"); 
414					},2000); 
415	}) 
416	.catch((error)=>{ 
417	console.warn(error); 
418	}) 
419    
420
421	 
422	function sendSubcriptionAgain(EmailId) { 
423			var emailId=EmailId; 
424		$("#success_req").css("display","none"); 
425		$("#success_suscrib").css("display","none"); 
426	 
427		//const emailRegex = /^[a-zA-Z0-9._%+-]+@gmail\.com$/; 
428		const emailRegex = /^[a-zA-Z0-9._%+-]+@(gmail\.com|yahoo\.com|yopmail\.com|outlook\.com|[a-zA-Z0-9.-]+\.[a-zA-Z]{2,})$/; 
429   if(emailRegex.test(emailId)){ 
430		  emailInput.classList.remove('danger'); 
431		 $("#error_val").css("display","none"); 
432		 $("#error_req").css("display","none"); 
433	 }else{ 
434		 if(emailId ==""){	 
435			 emailInput.classList.add('danger'); 
436		  $("#error_val").css("display","none"); 
437			$("#error_req").css("display","block"); 
438			return; 
439	   }else{ 
440			 emailInput.classList.add('danger'); 
441			  $("#error_val").css("display","block"); 
442			  $("#error_req").css("display","none"); 
443			 return; 
444
445		   
446
447	//	return; 
448	 
449    return new Promise((resolve, reject) => { 
450        $.ajax({ 
451             url: baseUrl1+"/o/subscription/get-lead-by-email?email="+emailId, 
452            type: 'GET', 
453           //	headers: { 
454           // 'Authorization': 'Bearer ' + _token 
455           //  }, 
456            dataType: 'json', 
457            success: function (data) { 
458                resolve(data); 
459                if (data && data?.length > 0) { 
460                    //	$("#success_suscrib").css("display","block"); 
461                    passLeadGenerate(data[0].ProspectID, emailId); 
462                } else { 
463                    $("#success_suscrib").css("display", "none"); 
464                    newSuscribed(emailId); 
465
466								$("#waitd ,.waitd").css("display","none"); 
467                $.each(data, function (index, loan) { 
468                    $('#loanList').append($('<option></option>').attr('value', loan.lId).text(loan.loanName)); 
469                }); 
470            }, 
471 
472            complete: function () { 
473            }, 
474            error: function (xhr, status, error) { 
475                reject(new Error("Error fetching data:", error)) 
476 
477
478        }); 
479    })	 
480
481		 
482</script> 
483 
484 
485 
486<#assign baseUrl= themeDisplay.getPortalURL() > 
487<#assign currentPageUrl = themeDisplay.getPortalURL() + themeDisplay.getURLCurrent()> 
488<#assign articles = []>  
489 
490 
491 
492<script type="application/ld+json"> 
493
494          "@context": "https://schema.org/",  
495          "@type": "BreadcrumbList",  
496          "itemListElement": [{ 
497            "@type": "ListItem",  
498            "position": 1,  
499            "name": "Home", 
500            "item": "${baseUrl}"   
501          },{ 
502            "@type": "ListItem",  
503            "position": 2,  
504            "name": "Blogs", 
505            "item": "${baseUrl}/blogs/all-blogs"   
506          },{ 
507            "@type": "ListItem",  
508            "position": 3,  
509            "name": "${themeDisplay.getURLCurrent()?split('/')[2]?replace("-"," ")?capitalize}", 
510            "item": "${themeDisplay.getPortalURL()}/blogs/${themeDisplay.getURLCurrent()?split('/')[2]}"   
511          },{ 
512            "@type": "ListItem",  
513            "position": 4,  
514            "name": "${title}", 
515            "item": "${themeDisplay.getPortalURL()}${themeDisplay.getURLCurrent()}"   
516          }] 
517
518    </script>