| POST | /v1/DisplayStock | Retailer/s display stock |
|---|
package dtos
import (
"time"
)
type DisplayStock struct {
VehicleDescription string `json:"vehicleDescription"`
CommissionNumber string `json:"commissionNumber"`
Vin string `json:"vin"`
Retailer string `json:"retailer"`
Model string `json:"model"`
FuelType string `json:"fuelType"`
Transmission string `json:"transmission"`
Colour string `json:"colour"`
ActualPrice string `json:"actualPrice"`
ActiveOffers []int `json:"activeOffers"`
DaysAtSite string `json:"daysAtSite"`
OfferTotalCurrent string `json:"offerTotalCurrent"`
OfferExpiry string `json:"offerExpiry"`
VehicleUsage string `json:"vehicleUsage"`
UnderOffer bool `json:"underOffer,omitempty"`
IsSellable bool `json:"isSellable,omitempty"`
VehicleType string `json:"vehicleType"`
Vid string `json:"vid"`
Fin string `json:"fin"`
ChassisNumber string `json:"chassisNumber"`
Line string `json:"line"`
ModelYear string `json:"modelYear"`
ModelYearCode string `json:"modelYearCode"`
VehicleClass string `json:"vehicleClass"`
RetailPriceExVAT string `json:"retailPrice_ExVAT"`
RetailPriceIncVAT string `json:"retailPrice_IncVAT"`
Otr string `json:"otr"`
BodyStyle string `json:"bodyStyle"`
ProductRange string `json:"productRange"`
Engine string `json:"engine"`
IsAMG bool `json:"isAMG,omitempty"`
ColourGroup string `json:"colourGroup"`
Upholstery string `json:"upholstery"`
Packages string `json:"packages"`
Nst string `json:"nst"`
BM7NST string `json:"bM7NST"`
Acceleration string `json:"acceleration"`
BootCapacity string `json:"bootCapacity"`
TopSpeed string `json:"topSpeed"`
DriveConcept string `json:"driveConcept"`
CombustionPowerHp string `json:"combustionPowerHp"`
ElectricPowerKw string `json:"electricPowerKw"`
ElectricPowerHp string `json:"electricPowerHp"`
CombinedPowerKw string `json:"combinedPowerKw"`
CombinedPowerHP string `json:"combinedPowerHP"`
ElectricRange string `json:"electricRange"`
ElectricConsumption string `json:"electricConsumption"`
EmissionCombined string `json:"emissionCombined"`
EmissionExtraUrban string `json:"emissionExtraUrban"`
EmissionUrban string `json:"emissionUrban"`
Emission string `json:"emission"`
EmissionDirective string `json:"emissionDirective"`
EnergyEfficiencyClass string `json:"energyEfficiencyClass"`
WltpCombined string `json:"wltpCombined"`
WltpLow string `json:"wltpLow"`
WltpMedium string `json:"wltpMedium"`
WltpHigh string `json:"wltpHigh"`
WltpExtraHigh string `json:"wltpExtraHigh"`
WltpEmissionCombined string `json:"wltpEmissionCombined"`
PortArrivalDate *time.Time `json:"portArrivalDate,omitempty"`
CreationDate *time.Time `json:"creationDate,omitempty"`
LastUpdated *time.Time `json:"lastUpdated,omitempty"`
IsDisplayStock bool `json:"isDisplayStock,omitempty"`
DisplayStockAgent string `json:"displayStockAgent"`
IsSpecialistCar bool `json:"isSpecialistCar,omitempty"`
Account string `json:"account"`
Location string `json:"location"`
CesarIdShipToParty string `json:"cesarIdShipToParty"`
VehicleUsageCode string `json:"vehicleUsageCode"`
MbukSecured bool `json:"mbukSecured,omitempty"`
IsAllocatedToBackOrder bool `json:"isAllocatedToBackOrder,omitempty"`
BackOrderReference *string `json:"backOrderReference,omitempty"`
}
type DisplayStockResponse struct {
Vehicles []DisplayStock `json:"vehicles"`
}
type DisplayStockRequest struct {
/** @description Gssns */
// @ApiMember(Description="Gssns", IsRequired=true)
Gssns []string `json:"gssns"`
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/DisplayStock HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
gssns:
[
String
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
vehicles:
[
{
vehicleDescription: String,
commissionNumber: String,
vin: String,
retailer: String,
model: String,
fuelType: String,
transmission: String,
colour: String,
actualPrice: String,
activeOffers:
[
0
],
daysAtSite: String,
offerTotalCurrent: String,
offerExpiry: String,
vehicleUsage: String,
underOffer: False,
isSellable: False,
vehicleType: String,
vid: String,
fin: String,
chassisNumber: String,
line: String,
modelYear: String,
modelYearCode: String,
vehicleClass: String,
retailPrice_ExVAT: String,
retailPrice_IncVAT: String,
otr: String,
bodyStyle: String,
productRange: String,
engine: String,
isAMG: False,
colourGroup: String,
upholstery: String,
packages: String,
nst: String,
bM7NST: String,
acceleration: String,
bootCapacity: String,
topSpeed: String,
driveConcept: String,
combustionPowerHp: String,
electricPowerKw: String,
electricPowerHp: String,
combinedPowerKw: String,
combinedPowerHP: String,
electricRange: String,
electricConsumption: String,
emissionCombined: String,
emissionExtraUrban: String,
emissionUrban: String,
emission: String,
emissionDirective: String,
energyEfficiencyClass: String,
wltpCombined: String,
wltpLow: String,
wltpMedium: String,
wltpHigh: String,
wltpExtraHigh: String,
wltpEmissionCombined: String,
portArrivalDate: 0001-01-01,
creationDate: 0001-01-01,
lastUpdated: 0001-01-01,
isDisplayStock: False,
displayStockAgent: String,
isSpecialistCar: False,
account: String,
location: String,
cesarIdShipToParty: String,
vehicleUsageCode: String,
mbukSecured: False,
isAllocatedToBackOrder: False,
backOrderReference: String
}
]
}