Skip to main content

Overview

The Pre-Approval API is designed to revolutionize the vehicle financing process by enabling quick, efficient, and customer-friendly pre-approval for auto loans. This API provides a seamless way to perform soft pulls on credit scores, offering customers and businesses a fast path to understanding financing options with no Social Securtity Number (SSN) requirements and no impact to credit scores.

Making a Request

Submit a pre-approval to https://commerce.driv.ly/api/preApprovals with a POST request. Below is a breakdown of the required and optional data fields, supplemented with example requests for your applications.

Required Fields

Required fields must be provided with every request:

Optional Fields

Optional fields can be included based on specific requirements:

Fetch API Example

This function createPreApproval sends the pre-approval data to the API endpoint using fetch with a POST method. It waits for the response asynchronously, converts the response to JSON, and logs it to the console. If an error occurs during the request or while handling the response, it catches the error and logs it, which is crucial for debugging and user feedback in real applications.
To execute the function, simply call createPreApproval() from your JavaScript code.
This example is meant to be a basic demonstration. In production, you might want to handle errors more gracefully and provide user feedback based on the result of the API call.

Successful Response

Upon successful submission, the API returns a response containing the following generated values: The response will contain the same values as the request, along with the generated values. The response will also include the status of the pre-approval, which can be used to track the progress of the request. The status will be one of the following: Processing, Error, Processed, Needs Info.
Example Response

Next Steps

Now that you have a better understanding of how the Pre-Approval API works, you can start integrating it into your application.

Pre-Approval Guide

Getting Started with Pre-Approvals

Pre-Approval API Reference

Explore the Pre-Approval API