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-07-16T04:24:28.8032741-07:00",
  "vin": "sample string 2",
  "source": "sample string 3",
  "location": "sample string 4",
  "token": "55f1346e-a402-4e6c-91c5-d23bb37151fd"
}

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">55f1346e-a402-4e6c-91c5-d23bb37151fd</token>
  <dealerId>1</dealerId>
  <location>sample string 4</location>
  <source>sample string 3</source>
  <vin>sample string 2</vin>
  <visitdateutc>2024-07-16T04:24:28.8032741-07: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>