Mercedes.VehicleManagement.API

<back to all web services

VehicleRejectRequest

Vehicle
Requires Authentication
The following routes are available for this service:
GET/v1/Vehicle/Reject/{vehicleIdentifier}Get vehicle details and rejections by VIN or Commission NumberCalls Vehicle Data API. Returns vehicle details from the DB if found, otherwise from the Rejects table.
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class VehicleRejectRequest : IGet
{
    open var vehicleIdentifier:String? = null
}

open class VehicleRejectDetailsResponse
{
    open var vehicle:VehicleRejectDetailsData? = null
}

open class VehicleRejectDetailsData
{
    open var details:VehicleIdentifierData? = null
    open var rejections:ArrayList<VehicleRejectionData> = ArrayList<VehicleRejectionData>()
    open var sellableChecks:ArrayList<VehicleSellableCheckData> = ArrayList<VehicleSellableCheckData>()
}

open class VehicleIdentifierData : VehicleData()
{
    open var retailer:String? = null
    open var hasMotabilityError:Boolean? = null
    open var equipment:ArrayList<Equipment> = ArrayList<Equipment>()
    open var vehicleClass:String? = null
}

open class VehicleData : VehicleDataBase()
{
    open var engine:String? = null
}

open class VehicleDataBase
{
    open var vin:String? = null
    open var description:String? = null
    open var model:String? = null
    open var otr:String? = null
    open var retailPriceExVAT:String? = null
    open var actualPrice:String? = null
    open var p11D:String? = null
    open var fuelType:String? = null
    open var transmission:String? = null
    open var transmissionType:String? = null
    open var colour:String? = null
    open var colourCode:String? = null
    open var colourDescription:String? = null
    open var commissionNumber:String? = null
    open var offerAvailable:Boolean? = null
    open var campaignDiscountOfferTotal:Int? = null
    open var campaignDiscountOfferTotalCurrent:Int? = null
    open var campaignDiscountOfferTotalPending:Int? = null
    open var campaignServiceOfferTotal:Int? = null
    open var campaignServiceOfferTotalCurrent:Int? = null
    open var campaignServiceOfferTotalPending:Int? = null
    open var campaignCustomOfferTotal:Int? = null
    open var campaignPersonalisedOfferTotalCurrent:Int? = null
    open var campaignPersonalisedOfferTotalPending:Int? = null
    open var campaignPersonalisedOfferTotal:Int? = null
    open var campaignCustomOfferTotalCurrent:Int? = null
    open var campaignCustomOfferTotalPending:Int? = null
    open var campaignOtherOfferTotal:Int? = null
    open var campaignOtherOfferTotalCurrent:Int? = null
    open var campaignOtherOfferTotalPending:Int? = null
    open var retailerDiscountOfferTotal:Int? = null
    open var retailerDiscountOfferTotalCurrent:Int? = null
    open var retailerDiscountOfferTotalPending:Int? = null
    open var retailerServiceOfferTotal:Int? = null
    open var retailerServiceOfferTotalCurrent:Int? = null
    open var retailerServiceOfferTotalPending:Int? = null
    open var retailerCustomOfferTotal:Int? = null
    open var retailerCustomOfferTotalCurrent:Int? = null
    open var retailerCustomOfferTotalPending:Int? = null
    open var retailerWarrantyOfferTotal:Int? = null
    open var retailerWarrantyOfferTotalCurrent:Int? = null
    open var retailerWarrantyOfferTotalPending:Int? = null
    open var retailerOfferTotal:Int? = null
    open var retailerOfferTotalCurrent:Int? = null
    open var retailerOfferTotalPending:Int? = null
    open var campaignOfferTotal:Int? = null
    open var campaignOfferTotalCurrent:Int? = null
    open var campaignOfferTotalPending:Int? = null
    open var campaignAndOfferTotal:Int? = null
    open var campaignAndOfferTotalCurrent:Int? = null
    open var campaignAndOfferTotalPending:Int? = null
    open var offerTotal:Int? = null
    open var offerTotalCurrent:Int? = null
    open var offerTotalPending:Int? = null
    open var creation:String? = null
    open var modified:String? = null
    open var electricRange:Int? = null
    open var electricConsumption:Int? = null
    open var portArrivalDate:Date? = null
    open var daysSincePortArrival:Int? = null
    open var retailPriceIncVAT:BigDecimal? = null
    open var bodyStyle:String? = null
    open var upholstery:String? = null
    open var upholsteryCode:String? = null
    open var upholsteryType:String? = null
    open var packageNames:ArrayList<String> = ArrayList<String>()
    open var line:String? = null
    open var mappedLine:String? = null
    open var currentRetailerOfferPrice:BigDecimal? = null
    open var retailPrice:String? = null
    open var vatQualifying:Boolean? = null
    open var retailerId:Int? = null
    open var gssnId:String? = null
    open var noImage:Boolean? = null
    open var imageUrl:String? = null
    open var isAvailableOnline:Boolean? = null
    open var isBackOrdered:Boolean? = null
    open var creationDate:String? = null
    open var maintenanceDate:String? = null
    open var registrationNumber:String? = null
    open var registrationDate:Date? = null
    open var mileage:Int? = null
    open var tradeInDate:Date? = null
    open var source:String? = null
    open var vehicleType:String? = null
    open var offerAmount:String? = null
    open var offerExpiry:String? = null
    open var activeOffers:ArrayList<Int> = ArrayList<Int>()
    open var campaignMessagesTotal:Int? = null
    open var underOffer:Boolean? = null
    open var isDisplayStock:Boolean? = null
    open var displayRetailer:String? = null
    open var displayRetailerGssnId:String? = null
    open var location:String? = null
    open var account:String? = null
    open var accountType:String? = null
    open var usageCode:String? = null
    open var bm7NST:String? = null
    open var isSellable:Boolean? = null
    open var secured:Boolean? = null
    open var specialist:Boolean? = null
    open var isMotabilityRetailer:Boolean? = null
    open var upholsteryDescription:String? = null
    open var inBackOrderAccount:Boolean? = null
    open var fullModelYearCode:String? = null
    open var baumuster:String? = null
    open var isMotability:Boolean? = null
    open var pipAdvanceRentalGross:BigDecimal? = null
    open var wpmsAdvanceRentalGross:BigDecimal? = null
    open var ispVehicleCustomerDescriptions:ArrayList<String>? = null
    open var eligibleForMaTransfer:Boolean? = null
    open var confirmedProductionDate:String? = null
    open var forecastedArrivalDate:String? = null
}

open class Equipment
{
    open var id:Int? = null
    open var code:String? = null
    open var description:String? = null
}

open class VehicleRejectionData
{
    open var rejectReason:String? = null
    open var exception:String? = null
    open var creationDate:String? = null
    open var active:Boolean? = null
    open var dataSource:String? = null
}

open class VehicleSellableCheckData
{
    open var check:String? = null
    open var failure:String? = null
    open var creationDate:String? = null
}

Kotlin VehicleRejectRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /v1/Vehicle/Reject/{vehicleIdentifier} 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

<VehicleRejectDetailsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.ServiceModel">
  <Vehicle>
    <Details xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO">
      <d3p1:Account>String</d3p1:Account>
      <d3p1:AccountType>String</d3p1:AccountType>
      <d3p1:ActiveOffers xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:int>0</d4p1:int>
      </d3p1:ActiveOffers>
      <d3p1:ActualPrice>String</d3p1:ActualPrice>
      <d3p1:Baumuster>String</d3p1:Baumuster>
      <d3p1:Bm7NST>String</d3p1:Bm7NST>
      <d3p1:BodyStyle>String</d3p1:BodyStyle>
      <d3p1:CampaignAndOfferTotal>0</d3p1:CampaignAndOfferTotal>
      <d3p1:CampaignAndOfferTotalCurrent>0</d3p1:CampaignAndOfferTotalCurrent>
      <d3p1:CampaignAndOfferTotalPending>0</d3p1:CampaignAndOfferTotalPending>
      <d3p1:CampaignCustomOfferTotal>0</d3p1:CampaignCustomOfferTotal>
      <d3p1:CampaignCustomOfferTotalCurrent>0</d3p1:CampaignCustomOfferTotalCurrent>
      <d3p1:CampaignCustomOfferTotalPending>0</d3p1:CampaignCustomOfferTotalPending>
      <d3p1:CampaignDiscountOfferTotal>0</d3p1:CampaignDiscountOfferTotal>
      <d3p1:CampaignDiscountOfferTotalCurrent>0</d3p1:CampaignDiscountOfferTotalCurrent>
      <d3p1:CampaignDiscountOfferTotalPending>0</d3p1:CampaignDiscountOfferTotalPending>
      <d3p1:CampaignMessagesTotal>0</d3p1:CampaignMessagesTotal>
      <d3p1:CampaignOfferTotal>0</d3p1:CampaignOfferTotal>
      <d3p1:CampaignOfferTotalCurrent>0</d3p1:CampaignOfferTotalCurrent>
      <d3p1:CampaignOfferTotalPending>0</d3p1:CampaignOfferTotalPending>
      <d3p1:CampaignOtherOfferTotal>0</d3p1:CampaignOtherOfferTotal>
      <d3p1:CampaignOtherOfferTotalCurrent>0</d3p1:CampaignOtherOfferTotalCurrent>
      <d3p1:CampaignOtherOfferTotalPending>0</d3p1:CampaignOtherOfferTotalPending>
      <d3p1:CampaignPersonalisedOfferTotal>0</d3p1:CampaignPersonalisedOfferTotal>
      <d3p1:CampaignPersonalisedOfferTotalCurrent>0</d3p1:CampaignPersonalisedOfferTotalCurrent>
      <d3p1:CampaignPersonalisedOfferTotalPending>0</d3p1:CampaignPersonalisedOfferTotalPending>
      <d3p1:CampaignServiceOfferTotal>0</d3p1:CampaignServiceOfferTotal>
      <d3p1:CampaignServiceOfferTotalCurrent>0</d3p1:CampaignServiceOfferTotalCurrent>
      <d3p1:CampaignServiceOfferTotalPending>0</d3p1:CampaignServiceOfferTotalPending>
      <d3p1:Colour>String</d3p1:Colour>
      <d3p1:ColourCode>String</d3p1:ColourCode>
      <d3p1:ColourDescription>String</d3p1:ColourDescription>
      <d3p1:CommissionNumber>String</d3p1:CommissionNumber>
      <d3p1:ConfirmedProductionDate>String</d3p1:ConfirmedProductionDate>
      <d3p1:Creation>String</d3p1:Creation>
      <d3p1:CreationDate>String</d3p1:CreationDate>
      <d3p1:CurrentRetailerOfferPrice>0</d3p1:CurrentRetailerOfferPrice>
      <d3p1:DaysSincePortArrival>0</d3p1:DaysSincePortArrival>
      <d3p1:Description>String</d3p1:Description>
      <d3p1:DisplayRetailer>String</d3p1:DisplayRetailer>
      <d3p1:DisplayRetailerGssnId>String</d3p1:DisplayRetailerGssnId>
      <d3p1:ElectricConsumption>0</d3p1:ElectricConsumption>
      <d3p1:ElectricRange>0</d3p1:ElectricRange>
      <d3p1:EligibleForMaTransfer>false</d3p1:EligibleForMaTransfer>
      <d3p1:ForecastedArrivalDate>String</d3p1:ForecastedArrivalDate>
      <d3p1:FuelType>String</d3p1:FuelType>
      <d3p1:FullModelYearCode>String</d3p1:FullModelYearCode>
      <d3p1:GssnId>String</d3p1:GssnId>
      <d3p1:ImageUrl>String</d3p1:ImageUrl>
      <d3p1:InBackOrderAccount>false</d3p1:InBackOrderAccount>
      <d3p1:IsAvailableOnline>false</d3p1:IsAvailableOnline>
      <d3p1:IsBackOrdered>false</d3p1:IsBackOrdered>
      <d3p1:IsDisplayStock>false</d3p1:IsDisplayStock>
      <d3p1:IsMotability>false</d3p1:IsMotability>
      <d3p1:IsMotabilityRetailer>false</d3p1:IsMotabilityRetailer>
      <d3p1:IsSellable>false</d3p1:IsSellable>
      <d3p1:IspVehicleCustomerDescriptions xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d3p1:IspVehicleCustomerDescriptions>
      <d3p1:Line>String</d3p1:Line>
      <d3p1:Location>String</d3p1:Location>
      <d3p1:MaintenanceDate>String</d3p1:MaintenanceDate>
      <d3p1:MappedLine>String</d3p1:MappedLine>
      <d3p1:Mileage>0</d3p1:Mileage>
      <d3p1:Model>String</d3p1:Model>
      <d3p1:Modified>String</d3p1:Modified>
      <d3p1:NoImage>false</d3p1:NoImage>
      <d3p1:OfferAmount>String</d3p1:OfferAmount>
      <d3p1:OfferAvailable>false</d3p1:OfferAvailable>
      <d3p1:OfferExpiry>String</d3p1:OfferExpiry>
      <d3p1:OfferTotal>0</d3p1:OfferTotal>
      <d3p1:OfferTotalCurrent>0</d3p1:OfferTotalCurrent>
      <d3p1:OfferTotalPending>0</d3p1:OfferTotalPending>
      <d3p1:Otr>String</d3p1:Otr>
      <d3p1:P11D>String</d3p1:P11D>
      <d3p1:PackageNames xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
        <d4p1:string>String</d4p1:string>
      </d3p1:PackageNames>
      <d3p1:PipAdvanceRentalGross>0</d3p1:PipAdvanceRentalGross>
      <d3p1:PortArrivalDate>0001-01-01T00:00:00</d3p1:PortArrivalDate>
      <d3p1:RegistrationDate>0001-01-01T00:00:00</d3p1:RegistrationDate>
      <d3p1:RegistrationNumber>String</d3p1:RegistrationNumber>
      <d3p1:RetailPrice>String</d3p1:RetailPrice>
      <d3p1:RetailPriceExVAT>String</d3p1:RetailPriceExVAT>
      <d3p1:RetailPriceIncVAT>0</d3p1:RetailPriceIncVAT>
      <d3p1:RetailerCustomOfferTotal>0</d3p1:RetailerCustomOfferTotal>
      <d3p1:RetailerCustomOfferTotalCurrent>0</d3p1:RetailerCustomOfferTotalCurrent>
      <d3p1:RetailerCustomOfferTotalPending>0</d3p1:RetailerCustomOfferTotalPending>
      <d3p1:RetailerDiscountOfferTotal>0</d3p1:RetailerDiscountOfferTotal>
      <d3p1:RetailerDiscountOfferTotalCurrent>0</d3p1:RetailerDiscountOfferTotalCurrent>
      <d3p1:RetailerDiscountOfferTotalPending>0</d3p1:RetailerDiscountOfferTotalPending>
      <d3p1:RetailerId>0</d3p1:RetailerId>
      <d3p1:RetailerOfferTotal>0</d3p1:RetailerOfferTotal>
      <d3p1:RetailerOfferTotalCurrent>0</d3p1:RetailerOfferTotalCurrent>
      <d3p1:RetailerOfferTotalPending>0</d3p1:RetailerOfferTotalPending>
      <d3p1:RetailerServiceOfferTotal>0</d3p1:RetailerServiceOfferTotal>
      <d3p1:RetailerServiceOfferTotalCurrent>0</d3p1:RetailerServiceOfferTotalCurrent>
      <d3p1:RetailerServiceOfferTotalPending>0</d3p1:RetailerServiceOfferTotalPending>
      <d3p1:RetailerWarrantyOfferTotal>0</d3p1:RetailerWarrantyOfferTotal>
      <d3p1:RetailerWarrantyOfferTotalCurrent>0</d3p1:RetailerWarrantyOfferTotalCurrent>
      <d3p1:RetailerWarrantyOfferTotalPending>0</d3p1:RetailerWarrantyOfferTotalPending>
      <d3p1:Secured>false</d3p1:Secured>
      <d3p1:Source>String</d3p1:Source>
      <d3p1:Specialist>false</d3p1:Specialist>
      <d3p1:TradeInDate>0001-01-01T00:00:00</d3p1:TradeInDate>
      <d3p1:Transmission>String</d3p1:Transmission>
      <d3p1:TransmissionType>String</d3p1:TransmissionType>
      <d3p1:UnderOffer>false</d3p1:UnderOffer>
      <d3p1:Upholstery>String</d3p1:Upholstery>
      <d3p1:UpholsteryCode>String</d3p1:UpholsteryCode>
      <d3p1:UpholsteryDescription>String</d3p1:UpholsteryDescription>
      <d3p1:UpholsteryType>String</d3p1:UpholsteryType>
      <d3p1:UsageCode>String</d3p1:UsageCode>
      <d3p1:VATQualifying>false</d3p1:VATQualifying>
      <d3p1:VehicleType>String</d3p1:VehicleType>
      <d3p1:Vin>String</d3p1:Vin>
      <d3p1:WpmsAdvanceRentalGross>0</d3p1:WpmsAdvanceRentalGross>
      <d3p1:Engine>String</d3p1:Engine>
      <d3p1:Equipment xmlns:d4p1="http://schemas.datacontract.org/2004/07/Mercedes.OS.Vehicle.Shared.POCO">
        <d4p1:Equipment>
          <d4p1:Code>String</d4p1:Code>
          <d4p1:Description>String</d4p1:Description>
          <d4p1:Id>0</d4p1:Id>
        </d4p1:Equipment>
      </d3p1:Equipment>
      <d3p1:HasMotabilityError>false</d3p1:HasMotabilityError>
      <d3p1:Retailer>String</d3p1:Retailer>
      <d3p1:VehicleClass>String</d3p1:VehicleClass>
    </Details>
    <Rejections xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO">
      <d3p1:VehicleRejectionData>
        <d3p1:Active>false</d3p1:Active>
        <d3p1:CreationDate>String</d3p1:CreationDate>
        <d3p1:DataSource>String</d3p1:DataSource>
        <d3p1:Exception>String</d3p1:Exception>
        <d3p1:RejectReason>String</d3p1:RejectReason>
      </d3p1:VehicleRejectionData>
    </Rejections>
    <SellableChecks xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO">
      <d3p1:VehicleSellableCheckData>
        <d3p1:Check>String</d3p1:Check>
        <d3p1:CreationDate>String</d3p1:CreationDate>
        <d3p1:Failure>String</d3p1:Failure>
      </d3p1:VehicleSellableCheckData>
    </SellableChecks>
  </Vehicle>
</VehicleRejectDetailsResponse>