| POST | /v1/DisplayStockOverview | Filter Display Stock vehicle data with usedCode and MBUKSecured |
|---|
package dtos
import (
"time"
)
type VehicleDisplayStock struct {
Vin *string `json:"vin,omitempty"`
VehicleDescription string `json:"vehicleDescription"`
CommissionNumber string `json:"commissionNumber"`
Retailer string `json:"retailer"`
Model string `json:"model"`
FuelType string `json:"fuelType"`
Transmission string `json:"transmission"`
Colour string `json:"colour"`
ActualPrice string `json:"actualPrice"`
GbDestDate *time.Time `json:"gbDestDate,omitempty"`
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"`
MarketAreaName *string `json:"marketAreaName,omitempty"`
MarketAreaId *int `json:"marketAreaId,omitempty"`
DaysAtSite *string `json:"daysAtSite,omitempty"`
EligibleForMaTransfer bool `json:"eligibleForMaTransfer,omitempty"`
}
type DisplayStockOverviewResponse struct {
Vehicles []VehicleDisplayStock `json:"vehicles"`
}
type DisplayStockOverviewRequest struct {
/** @description Is vehicle secured */
// @ApiMember(Description="Is vehicle secured", IsRequired=true)
IsSecured *bool `json:"isSecured"`
/** @description Usage codes */
// @ApiMember(Description="Usage codes", IsRequired=true)
UsageCode []string `json:"usageCode"`
}
Go DisplayStockOverviewRequest DTOs
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/DisplayStockOverview HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
isSecured: False,
usageCode:
[
String
]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
vehicles:
[
{
vin: String,
vehicleDescription: String,
commissionNumber: String,
retailer: String,
model: String,
fuelType: String,
transmission: String,
colour: String,
actualPrice: String,
gbDestDate: 0001-01-01,
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,
marketAreaName: String,
marketAreaId: 0,
daysAtSite: String,
eligibleForMaTransfer: False
}
]
}