POST api/Inventory/SaveVehicle?DealershipID={DealershipID}

Add/Update vehicle.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
DealershipID

integer

Required

Body Parameters

Vehicle
NameDescriptionTypeAdditional information
VehicleID

integer

None.

VIN

string

Required

Max length: 17

YoutubeLink

string

None.

ThreeSixtyViewLink

string

None.

StockNumber

string

None.

ModelYear

integer

Required

ModelID

integer

Required

MakeID

integer

None.

BodyStyleID

integer

Required

EngineID

integer

None.

TransmissionID

integer

None.

FuelTypeID

byte

None.

DriveTypeID

byte

None.

MPGCity

byte

None.

MPGHwy

byte

None.

TrimID

integer

None.

DealershipID

integer

None.

SubTitle

string

None.

IsSold

boolean

None.

NoOfDoors

string

None.

Arbitrated

boolean

None.

ArbitratedDate

date

None.

StockPrefix

string

None.

NextAvailableStockNumber

integer

None.

StockNumberType

enumStockType

None.

Make

string

None.

Model

string

None.

IsEvaluation

boolean

None.

BuyBackDealID

integer

None.

OperatorID

integer

None.

EngineSoundImageName

string

None.

EngineSoundImageExtension

string

None.

ElectricEPARange

string

None.

DCFastChargeTime

string

None.

Level2ChargeTime

string

None.

Request Formats

application/json, text/json

Sample:
{
  "VehicleID": 1,
  "VIN": "sample string 2",
  "YoutubeLink": "sample string 3",
  "ThreeSixtyViewLink": "sample string 4",
  "StockNumber": "sample string 5",
  "ModelYear": 6,
  "ModelID": 7,
  "MakeID": 8,
  "BodyStyleID": 1,
  "EngineID": 1,
  "TransmissionID": 1,
  "FuelTypeID": 64,
  "DriveTypeID": 64,
  "MPGCity": 64,
  "MPGHwy": 64,
  "TrimID": 1,
  "DealershipID": 9,
  "SubTitle": "sample string 10",
  "IsSold": true,
  "NoOfDoors": "sample string 11",
  "Arbitrated": true,
  "ArbitratedDate": "2025-05-11T13:12:09.8857041-04:00",
  "StockPrefix": "sample string 13",
  "NextAvailableStockNumber": 14,
  "StockNumberType": 1,
  "Make": "sample string 15",
  "Model": "sample string 16",
  "IsEvaluation": true,
  "BuyBackDealID": 1,
  "OperatorID": 1,
  "EngineSoundImageName": "sample string 17",
  "EngineSoundImageExtension": "sample string 17",
  "ElectricEPARange": "sample string 18",
  "DCFastChargeTime": "sample string 19",
  "Level2ChargeTime": "sample string 20"
}

application/xml, text/xml

Sample:
<Vehicle xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DC.Core.Model">
  <Arbitrated>true</Arbitrated>
  <ArbitratedDate>2025-05-11T13:12:09.8857041-04:00</ArbitratedDate>
  <BodyStyleID>1</BodyStyleID>
  <BuyBackDealID>1</BuyBackDealID>
  <DCFastChargeTime>sample string 19</DCFastChargeTime>
  <DealershipID>9</DealershipID>
  <DriveTypeID>64</DriveTypeID>
  <ElectricEPARange>sample string 18</ElectricEPARange>
  <EngineID>1</EngineID>
  <EngineSoundImageName>sample string 17</EngineSoundImageName>
  <FuelTypeID>64</FuelTypeID>
  <IsEvaluation>true</IsEvaluation>
  <IsSold>true</IsSold>
  <Level2ChargeTime>sample string 20</Level2ChargeTime>
  <MPGCity>64</MPGCity>
  <MPGHwy>64</MPGHwy>
  <Make>sample string 15</Make>
  <MakeID>8</MakeID>
  <Model>sample string 16</Model>
  <ModelID>7</ModelID>
  <ModelYear>6</ModelYear>
  <NextAvailableStockNumber>14</NextAvailableStockNumber>
  <NoOfDoors>sample string 11</NoOfDoors>
  <OperatorID>1</OperatorID>
  <StockNumber>sample string 5</StockNumber>
  <StockNumberType>Incremental</StockNumberType>
  <StockPrefix>sample string 13</StockPrefix>
  <SubTitle>sample string 10</SubTitle>
  <ThreeSixtyViewLink>sample string 4</ThreeSixtyViewLink>
  <TransmissionID>1</TransmissionID>
  <TrimID>1</TrimID>
  <VIN>sample string 2</VIN>
  <VehicleID>1</VehicleID>
  <YoutubeLink>sample string 3</YoutubeLink>
</Vehicle>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

None.