POST Vehicle/logvisit

Logs a vehicle visit.

Request Information

URI Parameters

None.

Body Parameters

LogVisitRequest
NameDescriptionTypeAdditional information
dealerId

Dealer ID

integer

None.

visitdateutc

Visit Date in UTC

date

None.

vin

VIN number

string

None.

source

Source

string

None.

location

Location

string

None.

token

API access token

globally unique identifier

Required

Request Formats

application/json, text/json

Sample:
{
  "dealerId": 1,
  "visitdateutc": "2024-11-20T22:47:23.4292392-08:00",
  "vin": "sample string 2",
  "source": "sample string 3",
  "location": "sample string 4",
  "token": "59dc5204-217b-4e88-854b-e870e9c3aeed"
}

application/xml, text/xml

Sample:
<LogVisitRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API.Models.Vehicle">
  <token xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API.Models">59dc5204-217b-4e88-854b-e870e9c3aeed</token>
  <dealerId>1</dealerId>
  <location>sample string 4</location>
  <source>sample string 3</source>
  <vin>sample string 2</vin>
  <visitdateutc>2024-11-20T22:47:23.4292392-08:00</visitdateutc>
</LogVisitRequest>

Response Information

Resource Description

APIResult
NameDescriptionTypeAdditional information
code

API result code

integer

None.

error

API error message

string

None.

APIVersion

API Version

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "APIVersion": 1,
  "code": 200,
  "error": "sample string 2"
}

application/xml, text/xml

Sample:
<APIResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AutoAlert.API">
  <APIVersion>1</APIVersion>
  <error>sample string 2</error>
</APIResult>