@copart/tx-title-submission
v1.0.29
Published
Automates texas title submission via headless browser
Downloads
13
Readme
Texas DMV Submission
An API for submitting Title documentation to Texas DMV
Installation
npm install @copart/tx-title-submission
Usage
const data = {
"VIN": "1Z7HT32N76S567988",
"lotId": "54565454",
"vehicleMake": "",
"vehicleYear": "",
"vehicleModel": "LAI",
"bodyStyle": "OF",
"majorColor": "RED",
"minorColor": "TAN",
"dotProofRequired": "",
"manufactureBuyBack": false,
"floodDamage": true,
"noLien": true,
"recordLien": "",
"ownerName": "Test Owner",
"ownerCity": "DALLAS",
"ownerState": "TX",
"applicantName": "test app name",
"applicantAddressLine1": "test app line1",
"applicantAddressLine2": "test app line2",
"applicantCity": "DALLAS",
"applicantState": "TX",
"applicantZip": "75240",
"applicantZip2": "",
"applicantMailingName": "test app mail name",
"applicantMailingAddressLine1": "test app mail line1",
"applicantMailingAddressLine2": "test app mail line2",
"applicantMailingCity": "test mail city",
"applicantMailingState": "TX",
"applicantMailingZip": "75240",
"applicantMailingZip2": "",
"documentType": 1,
"uploadDocument": "/Users/xxx/Code/ycs_dmv_submission/uploads/54565454.pdf", //give your file path
"username": "",
"password": "",
"licenseNo": ""
}
texasSubmission(data)
.then(res => { console.log("Successfully submitted")})
.catch(e => { console.log("ERROR: ", e)})