Create Advanced Vehicle

This endpoint allows you to create a vehicle with miscellaneous information.

CreateAdvancedVehicle(data, callback)

POST https://imperialcad.app/api/1.1/wf/createadvancedvehicle


Request Body

Vehicle Data = []

Name
Type
Description

ssn

string

Social Security Number of Civilian

plate

string

License Plate

model

string

Model

color

string

Color

year

string

Year

make

string

Make

regState

string

Registration State

regStatus

string

Registration Status

regExpDate

string

Registration Expiration Date

vin

string

VIN (Vehicle Identification Number)

stolen

boolean

Is Vehicle Stolen?

vehicleInsurance = []

Name
Type
Description

hasInsurance

boolean

Does vehicle have insurance?

insuranceStatus

string

Insurance Status

insurancePolicyNum

string

Insurance Policy Number

vehicleOwner = []

Name
Type
Description

ownerSSN

string

Owner's Social Security Number

ownerFirstName

string

Owner's First Name

ownerLastName

string

Owner's Last Name

ownerGender

string

Owner's Gender

ownerAddress

string

Owner's Address

ownerCity

string

Owner's City


exports["ImperialCAD"]:CreateVehicleAdvanced({
    vehicleData = {
      plate = "XYZ123",
      model = "Sultan RS",
      Make = "Karin",
      color = "Gray",
      year = "2021",
      regState = "SA",
      regStatus = "Valid",
      regExpDate = "2025-05-01",
      vin = "1HGCM82633A004352",
      stolen = false
    },
    vehicleInsurance = {
      hasInsurance = true,
      insuranceStatus = "Active",
      insurancePolicyNum = "INS234"
    },
    vehicleOwner = {
      ownerSSN = "JD321",
      ownerFirstName = "Jane",
      ownerLastName = "Smith",
      ownerGender = "Female",
      ownerAddress = "123 Main St",
      ownerCity = "Los Santos"
    }
  }, function(success, res)
    if success then print("Vehicle registered.") else print("Failed:", res) end
end)

Last updated

Was this helpful?