Get up and running with Credit Applications with our step-by-step guide.
Prerequisites
Before diving into the integration process, ensure you have the following:- Sign up for a Drivly account.
- Create a DRIVLY_API_KEY.
- Basic understanding of TypeScript and REST APIs.
- A secure environment for handling sensitive data.
Overview
The Credit Application process enables users to secure auto loans, providing them with information on loan amounts and interest rates. This guide covers various scenarios, including applications for primary applicants and co-applicants, with or without trade-ins.Implementation Options
Choose your implementation approach:Setup the SDK
To get started, you will need to install the Drivly SDK.
Create a singleton instance of the SDK.
sdk for use in our applicationMake a function to CREATE the Credit Application.
We might need to CREATE a Trade, we will need a few more functions.
Use the API
Credit Application APIhttps://commerce.driv.ly/api/creditApplications, we can use this API to create and manage Credit Applications.
Create an environment variable for your API Key.
Make a function to CREATE the Credit Application.
We might need to CREATE a Trade, we will need a few more functions.
Handling Use Cases
The following scenarios cover various Credit Application use cases:Primary Applicant
Danny found the car of his dreams. He wants to secure a loan to buy the car. He goes to your website and fills out a form to find out how much of a loan he can secure.
Direct the user to the Credit Application Form on your Website.
Applicant Properties
Applicant Properties
SPOUSE, RELATIVE, FRIEND, or null (for primary applicant)Residence Properties
Residence Properties
RENT, OWN, RELATIVE_OWNEDAddress Properties
Address Properties
Employment Properties
Employment Properties
FULL_TIME, PART_TIME, SELF_EMPLOYED, UNEMPLOYED, RETIREDAddress Properties
Address Properties
WEEKLY, BI_WEEKLY, TWICE_MONTHLY, MONTHLY, YEARLYPURCHASE, REFINANCE, LEASE_BUYOUTFormat your Request Body
sendTo: The recipient of the application. Available options:RouteOne,TSGstate: Set toDRAFTin order to create a new application for processing.environment: The application can be submitted inProductionorDevelopment
Send the Request.
Primary and CoApplicant
Danny’s wife Michelle found a car she loves. They want to secure a loan to buy the car. They go to your website and fill out a form to find out how much of a loan they can secure.
Direct Both Applicants to the Credit Application Form.
Collect and Format Data for Both Applicants.
relationshipType in the coApplicant’s data, select the appropriate option that describes
their relationship to the primary applicant.Send the Request.
Primary with Trade
Danny is looking to trade-in his 2011 Lincoln Town Car for a 2023 Genesis G80. He wants to secure a loan to buy the car and trade-in his old car. He goes to your website and fills out a form to find out how much of a loan he can secure.
Guide Danny to the Enhanced Credit Application Form.
Collect Information Including Trade-In Details.
Create a Trade.
Send the Request with the tradeInId
Primary and CoApplicant with Trade
Danny and Michelle are looking to trade-in their 2011 Lincoln Town Car for a 2023 Genesis G80. They want to secure a loan to buy the car and trade-in their old car. They go to your website and fill out a form to find out how much of a loan they can secure.
Guide Both Applicants to the Enhanced Credit Application Form.
Collect Information Including Trade-In Details.
Create a Trade.
Send the Request with the tradeInId