GET | /vehicles/{id}/ | Gets a single vehicle. |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | path | Guid | Yes | The Vehicle id for the vehicle we want. |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Id | form | Guid | No | |
LicenseTag | form | string | No | |
LicenseState | form | string | No | |
MakeModel | form | string | No | |
Color | form | string | No | |
FirstName | form | string | No | |
LastName | form | string | No | |
AddressStreet1 | form | string | No | |
AddressStreet2 | form | string | No | |
City | form | string | No | |
State | form | string | No | |
Zip | form | string | No | |
CreatedByUserId | form | Guid? | No | |
DateCreated | form | DateTime? | No | |
PlateType | form | string | No | |
Nixie | form | bool? | No | |
NoHit | form | bool? | No | |
VIN | form | string | No | |
IsStolen | form | bool? | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /vehicles/{id}/ HTTP/1.1 Host: api.paylock.com Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {"id":"00000000000000000000000000000000","licenseTag":"String","licenseState":"String","makeModel":"String","color":"String","firstName":"String","lastName":"String","addressStreet1":"String","addressStreet2":"String","city":"String","state":"String","zip":"String","createdByUserId":"00000000000000000000000000000000","dateCreated":"\/Date(-62135596800000-0000)\/","plateType":"String","nixie":false,"noHit":false,"vin":"String","isStolen":false}