| GET | /v1/details/{vehicleType}/{Identifier} | Get Vehicle Details | |
|---|---|---|---|
| GET | /details/{vehicleType}/{Identifier} | Get Vehicle Details |
package dtos
import (
"time"
)
type VehicleAuditDetails struct {
UserId string `json:"userId"`
Status bool `json:"status,omitempty"`
Notes string `json:"notes"`
CreationDate string `json:"creationDate"`
}
type BackOrderVehicleDetailsBase struct {
Vin string `json:"vin"`
CommissionNumber string `json:"commissionNumber"`
Description string `json:"description"`
Model string `json:"model"`
FullModelYearCode string `json:"fullModelYearCode"`
RetailerId int `json:"retailerId,omitempty"`
ImageUrl string `json:"imageUrl"`
Colour string `json:"colour"`
ColourDescription string `json:"colourDescription"`
BodyStyle string `json:"bodyStyle"`
FuelType string `json:"fuelType"`
Transmission string `json:"transmission"`
TransmissionType string `json:"transmissionType"`
Package string `json:"package"`
Packages []string `json:"packages"`
Line string `json:"line"`
MappedLine string `json:"mappedLine"`
Upholstery string `json:"upholstery"`
UpholsteryDescription string `json:"upholsteryDescription"`
UsageCode string `json:"usageCode"`
Account string `json:"account"`
Nst string `json:"nst"`
Baumuster string `json:"baumuster"`
ElectricRange *float64 `json:"electricRange,omitempty"`
ElectricConsumption *float64 `json:"electricConsumption,omitempty"`
RetailPriceExVAT float64 `json:"retailPrice_ExVAT,omitempty"`
ActualPrice *float64 `json:"actualPrice,omitempty"`
OtrPrice float64 `json:"otrPrice,omitempty"`
P11D float64 `json:"p11D,omitempty"`
VehicleType string `json:"vehicleType"`
Secured bool `json:"secured,omitempty"`
PortArrivalDate *time.Time `json:"portArrivalDate,omitempty"`
DisplayRetailer string `json:"displayRetailer"`
Location string `json:"location"`
Bm7NST string `json:"bm7NST"`
IsAvailableOnline bool `json:"isAvailableOnline,omitempty"`
IsSpecialistCar bool `json:"isSpecialistCar,omitempty"`
IsSellable bool `json:"isSellable,omitempty"`
InBackOrderAccount bool `json:"inBackOrderAccount,omitempty"`
VehicleAuditDetails []VehicleAuditDetails `json:"vehicleAuditDetails"`
IspVehicleCustomerDescriptions []string `json:"ispVehicleCustomerDescriptions,omitempty"`
UnderOffer bool `json:"underOffer,omitempty"`
IsAllocatedToBackOrder bool `json:"isAllocatedToBackOrder,omitempty"`
EligibleForMaTransfer bool `json:"eligibleForMaTransfer,omitempty"`
ConfirmedProductionDate *string `json:"confirmedProductionDate,omitempty"`
ForecastedArrivalDate *string `json:"forecastedArrivalDate,omitempty"`
}
type BackOrderVehicleDetails struct {
BackOrderVehicleDetailsBase
Engine *string `json:"engine,omitempty"`
}
type VehicleDetailsResponse struct {
Vehicle BackOrderVehicleDetails `json:"vehicle"`
}
type VehicleDetailsRequest struct {
Identifier string `json:"identifier"`
VehicleType string `json:"vehicleType"`
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/details/{vehicleType}/{Identifier} HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<VehicleDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO.V3">
<Vehicle>
<Account>String</Account>
<ActualPrice>0</ActualPrice>
<Baumuster>String</Baumuster>
<Bm7NST>String</Bm7NST>
<BodyStyle>String</BodyStyle>
<Colour>String</Colour>
<ColourDescription>String</ColourDescription>
<CommissionNumber>String</CommissionNumber>
<ConfirmedProductionDate>String</ConfirmedProductionDate>
<Description>String</Description>
<DisplayRetailer>String</DisplayRetailer>
<ElectricConsumption>0</ElectricConsumption>
<ElectricRange>0</ElectricRange>
<EligibleForMaTransfer>false</EligibleForMaTransfer>
<ForecastedArrivalDate>String</ForecastedArrivalDate>
<FuelType>String</FuelType>
<FullModelYearCode>String</FullModelYearCode>
<ImageUrl>String</ImageUrl>
<InBackOrderAccount>false</InBackOrderAccount>
<IsAllocatedToBackOrder>false</IsAllocatedToBackOrder>
<IsAvailableOnline>false</IsAvailableOnline>
<IsSellable>false</IsSellable>
<IsSpecialistCar>false</IsSpecialistCar>
<IspVehicleCustomerDescriptions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</IspVehicleCustomerDescriptions>
<Line>String</Line>
<Location>String</Location>
<MappedLine>String</MappedLine>
<Model>String</Model>
<NST>String</NST>
<OTRPrice>0</OTRPrice>
<P11D>0</P11D>
<Package>String</Package>
<Packages xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:string>String</d3p1:string>
</Packages>
<PortArrivalDate>0001-01-01T00:00:00</PortArrivalDate>
<RetailPrice_ExVAT>0</RetailPrice_ExVAT>
<RetailerId>0</RetailerId>
<Secured>false</Secured>
<Transmission>String</Transmission>
<TransmissionType>String</TransmissionType>
<UnderOffer>false</UnderOffer>
<Upholstery>String</Upholstery>
<UpholsteryDescription>String</UpholsteryDescription>
<UsageCode>String</UsageCode>
<VehicleAuditDetails>
<VehicleAuditDetails>
<CreationDate>String</CreationDate>
<Notes>String</Notes>
<Status>false</Status>
<UserId>String</UserId>
</VehicleAuditDetails>
</VehicleAuditDetails>
<VehicleType>String</VehicleType>
<Vin>String</Vin>
<Engine>String</Engine>
</Vehicle>
</VehicleDetailsResponse>