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-12-08T00:15:17.9397318-08:00",
  "vin": "sample string 2",
  "source": "sample string 3",
  "location": "sample string 4",
  "token": "c9351d32-0736-44b2-8517-b5a57b43ba2a"
}

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">c9351d32-0736-44b2-8517-b5a57b43ba2a</token>
  <dealerId>1</dealerId>
  <location>sample string 4</location>
  <source>sample string 3</source>
  <vin>sample string 2</vin>
  <visitdateutc>2024-12-08T00:15:17.9397318-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>