Updates a Credit Application
curl --request PATCH \
--url https://commerce.driv.ly/api/creditApplications/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"updatedAt": "<string>",
"createdAt": "<string>",
"title": "<string>",
"sendToTSG": true,
"meta": {},
"sentToCustomer": true,
"rates": [
{
"term": "<string>",
"apr": "<string>",
"monthlyPayment": 123,
"requiredDownPayment": 123,
"activationLink": "<string>",
"id": "<string>"
}
],
"passesChecklist": true,
"requiredFields": [],
"missingFields": {},
"requestId": "<string>",
"logs": [
{
"timestamp": "<string>",
"message": "<string>",
"debug": {},
"id": "<string>"
}
],
"autopayNumber": "<string>",
"applicationLink": "<string>",
"preApproval": 123,
"financeAmount": 123,
"downPayment": 123,
"primaryApplicant": {
"consumer": 123,
"firstName": "<string>",
"lastName": "<string>",
"birthDate": "<string>",
"emailAddress": "<string>",
"cellPhone": "<string>",
"ssn": "<string>",
"currentResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"currentEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"additionalIncomeAmount": 123,
"additionalIncomeSource": "<string>",
"terms": {
"agreeToTerms": true,
"agreeIP": "<string>",
"agreeUserAgent": "<string>"
}
},
"hasCoApplicant": true,
"coApplicant": {
"consumer": 123,
"firstName": "<string>",
"lastName": "<string>",
"birthDate": "<string>",
"emailAddress": "<string>",
"cellPhone": "<string>",
"ssn": "<string>",
"currentResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"currentEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"additionalIncomeAmount": 123,
"additionalIncomeSource": "<string>",
"terms": {
"agreeToTerms": true,
"agreeIP": "<string>",
"agreeUserAgent": "<string>"
}
},
"vehicle": {
"vin": "<string>",
"year": 123,
"make": "<string>",
"model": "<string>",
"trim": "<string>",
"mileage": 123,
"lien": {
"lienHolder": "<string>",
"monthlyPaymentAmount": 123,
"payoffAmount": 123,
"initialTerm": 123,
"remainingTerm": 123,
"originalAmount": 123,
"apr": 123
}
},
"trades": [
123
]
}
'{
"doc": {
"updatedAt": "<string>",
"createdAt": "<string>",
"title": "<string>",
"sendToTSG": true,
"meta": {},
"sentToCustomer": true,
"rates": [
{
"term": "<string>",
"apr": "<string>",
"monthlyPayment": 123,
"requiredDownPayment": 123,
"activationLink": "<string>",
"id": "<string>"
}
],
"passesChecklist": true,
"requiredFields": [],
"missingFields": {},
"requestId": "<string>",
"logs": [
{
"timestamp": "<string>",
"message": "<string>",
"debug": {},
"id": "<string>"
}
],
"autopayNumber": "<string>",
"applicationLink": "<string>",
"preApproval": 123,
"financeAmount": 123,
"downPayment": 123,
"primaryApplicant": {
"consumer": 123,
"firstName": "<string>",
"lastName": "<string>",
"birthDate": "<string>",
"emailAddress": "<string>",
"cellPhone": "<string>",
"ssn": "<string>",
"currentResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"currentEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"additionalIncomeAmount": 123,
"additionalIncomeSource": "<string>",
"terms": {
"agreeToTerms": true,
"agreeIP": "<string>",
"agreeUserAgent": "<string>"
}
},
"hasCoApplicant": true,
"coApplicant": {
"consumer": 123,
"firstName": "<string>",
"lastName": "<string>",
"birthDate": "<string>",
"emailAddress": "<string>",
"cellPhone": "<string>",
"ssn": "<string>",
"currentResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"currentEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"additionalIncomeAmount": 123,
"additionalIncomeSource": "<string>",
"terms": {
"agreeToTerms": true,
"agreeIP": "<string>",
"agreeUserAgent": "<string>"
}
},
"vehicle": {
"vin": "<string>",
"year": 123,
"make": "<string>",
"model": "<string>",
"trim": "<string>",
"mileage": 123,
"lien": {
"lienHolder": "<string>",
"monthlyPaymentAmount": 123,
"payoffAmount": 123,
"initialTerm": 123,
"remainingTerm": 123,
"originalAmount": 123,
"apr": 123
}
},
"trades": [
123
]
},
"message": "<string>"
}Credit Applications
Updates a Credit Application
Updates a Credit Application
PATCH
/
creditApplications
/
{id}
Updates a Credit Application
curl --request PATCH \
--url https://commerce.driv.ly/api/creditApplications/{id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"updatedAt": "<string>",
"createdAt": "<string>",
"title": "<string>",
"sendToTSG": true,
"meta": {},
"sentToCustomer": true,
"rates": [
{
"term": "<string>",
"apr": "<string>",
"monthlyPayment": 123,
"requiredDownPayment": 123,
"activationLink": "<string>",
"id": "<string>"
}
],
"passesChecklist": true,
"requiredFields": [],
"missingFields": {},
"requestId": "<string>",
"logs": [
{
"timestamp": "<string>",
"message": "<string>",
"debug": {},
"id": "<string>"
}
],
"autopayNumber": "<string>",
"applicationLink": "<string>",
"preApproval": 123,
"financeAmount": 123,
"downPayment": 123,
"primaryApplicant": {
"consumer": 123,
"firstName": "<string>",
"lastName": "<string>",
"birthDate": "<string>",
"emailAddress": "<string>",
"cellPhone": "<string>",
"ssn": "<string>",
"currentResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"currentEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"additionalIncomeAmount": 123,
"additionalIncomeSource": "<string>",
"terms": {
"agreeToTerms": true,
"agreeIP": "<string>",
"agreeUserAgent": "<string>"
}
},
"hasCoApplicant": true,
"coApplicant": {
"consumer": 123,
"firstName": "<string>",
"lastName": "<string>",
"birthDate": "<string>",
"emailAddress": "<string>",
"cellPhone": "<string>",
"ssn": "<string>",
"currentResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"currentEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"additionalIncomeAmount": 123,
"additionalIncomeSource": "<string>",
"terms": {
"agreeToTerms": true,
"agreeIP": "<string>",
"agreeUserAgent": "<string>"
}
},
"vehicle": {
"vin": "<string>",
"year": 123,
"make": "<string>",
"model": "<string>",
"trim": "<string>",
"mileage": 123,
"lien": {
"lienHolder": "<string>",
"monthlyPaymentAmount": 123,
"payoffAmount": 123,
"initialTerm": 123,
"remainingTerm": 123,
"originalAmount": 123,
"apr": 123
}
},
"trades": [
123
]
}
'{
"doc": {
"updatedAt": "<string>",
"createdAt": "<string>",
"title": "<string>",
"sendToTSG": true,
"meta": {},
"sentToCustomer": true,
"rates": [
{
"term": "<string>",
"apr": "<string>",
"monthlyPayment": 123,
"requiredDownPayment": 123,
"activationLink": "<string>",
"id": "<string>"
}
],
"passesChecklist": true,
"requiredFields": [],
"missingFields": {},
"requestId": "<string>",
"logs": [
{
"timestamp": "<string>",
"message": "<string>",
"debug": {},
"id": "<string>"
}
],
"autopayNumber": "<string>",
"applicationLink": "<string>",
"preApproval": 123,
"financeAmount": 123,
"downPayment": 123,
"primaryApplicant": {
"consumer": 123,
"firstName": "<string>",
"lastName": "<string>",
"birthDate": "<string>",
"emailAddress": "<string>",
"cellPhone": "<string>",
"ssn": "<string>",
"currentResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"currentEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"additionalIncomeAmount": 123,
"additionalIncomeSource": "<string>",
"terms": {
"agreeToTerms": true,
"agreeIP": "<string>",
"agreeUserAgent": "<string>"
}
},
"hasCoApplicant": true,
"coApplicant": {
"consumer": 123,
"firstName": "<string>",
"lastName": "<string>",
"birthDate": "<string>",
"emailAddress": "<string>",
"cellPhone": "<string>",
"ssn": "<string>",
"currentResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"currentEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousResidence": {
"monthlyPaymentAmount": 123,
"monthsAtResidence": 123,
"address": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"previousEmployment": {
"yearlyIncomeAmount": 123,
"monthsAtEmployer": 123,
"employerName": "<string>",
"employmentPosition": "<string>",
"employmentAddress": {
"lineOne": "<string>",
"lineTwo": "<string>",
"city": "<string>",
"postalCode": "<string>"
}
},
"additionalIncomeAmount": 123,
"additionalIncomeSource": "<string>",
"terms": {
"agreeToTerms": true,
"agreeIP": "<string>",
"agreeUserAgent": "<string>"
}
},
"vehicle": {
"vin": "<string>",
"year": 123,
"make": "<string>",
"model": "<string>",
"trim": "<string>",
"mileage": 123,
"lien": {
"lienHolder": "<string>",
"monthlyPaymentAmount": 123,
"payoffAmount": 123,
"initialTerm": 123,
"remainingTerm": 123,
"originalAmount": 123,
"apr": 123
}
},
"trades": [
123
]
},
"message": "<string>"
}Usage with the Drivly SDK
Usage with the Drivly SDK
Make sure you install our SDK first. You can find out how, and more here.
import { SDK } from '@drivly/commerce'
import type { creditApplications } from '@drivly/commerce'
const sdk = new SDK(...)
const creditApplications = await sdk.creditApplications.update(creditApplicationsId: string, data: creditApplications): Promise<creditApplications>
Authorizations
Path Parameters
id of the Credit Application
Query Parameters
number of levels to automatically populate relationships and uploads
retrieves document(s) in a specific locale
specifies a fallback locale if no locale value exists
Body
application/json
Available options:
Production, Development Available options:
DRAFT, SUBMITTED, APPROVED, DENIED, CANCELLED Show child attributes
Show child attributes
Available options:
primaryApplicant, primaryApplicant.currentResidence, primaryApplicant.currentEmployment, primaryApplicant.additionalIncome, primaryApplicant.previousResidence, primaryApplicant.previousEmployment, coApplicant, coApplicant.currentResidence, coApplicant.currentEmployment, coApplicant.additionalIncome, coApplicant.previousResidence, coApplicant.previousEmployment, vehicle, vehicle.lien, financeAmount, applicationType, primaryApplicant.agreeTerms, coApplicant.agreeTerms Show child attributes
Show child attributes
Available options:
REFINANCE, PURCHASE, LEASE_BUYOUT Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I