| GET | /v1/details/{vehicleType}/{Identifier} | Get Vehicle Details | |
|---|---|---|---|
| GET | /details/{vehicleType}/{Identifier} | Get Vehicle Details |
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
import com.google.gson.annotations.*
import com.google.gson.reflect.*
open class VehicleDetailsRequest : IGet
{
open var identifier:String? = null
open var vehicleType:String? = null
}
open class VehicleDetailsResponse
{
open var vehicle:BackOrderVehicleDetails? = null
}
open class BackOrderVehicleDetails : BackOrderVehicleDetailsBase()
{
open var engine:String? = null
}
open class BackOrderVehicleDetailsBase
{
open var vin:String? = null
open var commissionNumber:String? = null
open var description:String? = null
open var model:String? = null
open var fullModelYearCode:String? = null
open var retailerId:Int? = null
open var imageUrl:String? = null
open var colour:String? = null
open var colourDescription:String? = null
open var bodyStyle:String? = null
open var fuelType:String? = null
open var transmission:String? = null
open var transmissionType:String? = null
@SerializedName("package") open var Package:String? = null
open var packages:ArrayList<String> = ArrayList<String>()
open var line:String? = null
open var upholstery:String? = null
open var upholsteryDescription:String? = null
open var usageCode:String? = null
open var account:String? = null
open var nst:String? = null
open var baumuster:String? = null
open var electricRange:BigDecimal? = null
open var electricConsumption:BigDecimal? = null
open var retailPrice_ExVAT:BigDecimal? = null
open var actualPrice:BigDecimal? = null
open var otrPrice:BigDecimal? = null
open var vehicleType:String? = null
open var secured:Boolean? = null
open var productionDate:String? = null
open var portArrivalDate:Date? = null
open var displayRetailer:String? = null
open var location:String? = null
open var bm7NST:String? = null
open var isAvailableOnline:Boolean? = null
open var isSpecialistCar:Boolean? = null
open var isSellable:Boolean? = null
open var inBackOrderAccount:Boolean? = null
open var vehicleAuditDetails:ArrayList<VehicleAuditDetails> = ArrayList<VehicleAuditDetails>()
open var ispVehicleCustomerDescriptions:ArrayList<String>? = null
open var underOffer:Boolean? = null
open var isAllocatedToBackOrder:Boolean? = null
open var eligibleForMaTransfer:Boolean? = null
open var confirmedProductionDate:String? = null
open var forecastedArrivalDate:String? = null
}
open class VehicleAuditDetails
{
open var userId:String? = null
open var status:Boolean? = null
open var notes:String? = null
open var creationDate:String? = null
}
Kotlin VehicleDetailsRequest DTOs
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>
<Model>String</Model>
<NST>String</NST>
<OTRPrice>0</OTRPrice>
<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>
<ProductionDate>String</ProductionDate>
<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>