GET | /v1/{VehicleType}/Vehicle/{vehicleIdentifier} | Get vehicle data by commission number |
---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Mercedes.VehicleManagement.API.ServiceModel
Imports Mercedes.VehicleManagement.API.Shared.POCO
Imports Mercedes.OS.Vehicle.Shared.POCO
Namespace Global
Namespace Mercedes.OS.Vehicle.Shared.POCO
Public Partial Class Equipment
Public Overridable Property Id As Integer
Public Overridable Property Code As String
Public Overridable Property Description As String
End Class
End Namespace
Namespace Mercedes.VehicleManagement.API.ServiceModel
Public Partial Class VehicleByCommissionNumberRequest
Implements IGet
Public Overridable Property vehicleIdentifier As String
Public Overridable Property VehicleType As String
End Class
End Namespace
Namespace Mercedes.VehicleManagement.API.Shared.POCO
Public Partial Class FinanceOffer
Public Overridable Property CampaignDescription As String
Public Overridable Property TermsAndConditions As String
Public Overridable Property Label As String
Public Overridable Property CampaignId As Integer
Public Overridable Property DocumentUrl As String
Public Overridable Property From As String
Public Overridable Property Id As Integer
Public Overridable Property [To] As String
Public Overridable Property Value As String
Public Overridable Property Vin As String
Public Overridable Property Enabled As Boolean
Public Overridable Property Pending As Boolean
Public Overridable Property OfferType As String
End Class
Public Partial Class Message
Public Overridable Property Id As Integer
Public Overridable Property Vin As String
Public Overridable Property CampaignId As Integer
Public Overridable Property Value As String
Public Overridable Property CampaignDescription As String
Public Overridable Property From As String
Public Overridable Property [To] As String
Public Overridable Property DocumentUrl As String
End Class
Public Partial Class Offer
Public Overridable Property Id As Integer
Public Overridable Property OfferType As String
Public Overridable Property CampaignName As String
Public Overridable Property From As String
Public Overridable Property [To] As String
Public Overridable Property Value As String
Public Overridable Property Net As Decimal?
Public Overridable Property OfferVehicle As OfferVehicle
Public Overridable Property Pending As Boolean
Public Overridable Property DocumentUrl As String
Public Overridable Property Personalised As Boolean
Public Overridable Property IsPersonalisedMonetaryOffer As Boolean
Public Overridable Property CampaignVIPDiscount As Boolean
Public Overridable Property OfferValueNet As Decimal?
End Class
Public Partial Class OfferHistory
Public Overridable Property Id As Integer
Public Overridable Property AuditType As String
Public Overridable Property OfferType As String
Public Overridable Property Source As String
Public Overridable Property From As String
Public Overridable Property [To] As String
Public Overridable Property Personalised As Boolean
Public Overridable Property Value As String
Public Overridable Property Net As String
Public Overridable Property VAT As String
Public Overridable Property Description As String
Public Overridable Property Vin As String
Public Overridable Property Gssn As String
Public Overridable Property Creation As String
Public Overridable Property Modified As String
Public Overridable Property UserId As String
Public Overridable Property User As Integer
Public Overridable Property OfferId As Integer
Public Overridable Property CommissionNumber As String
Public Overridable Property CampaignId As Integer?
Public Overridable Property CampaignDescription As String
Public Overridable Property CreationDate As Date
Public Overridable Property IsUsedCarOffer As Boolean
End Class
Public Partial Class OfferVehicle
Public Overridable Property RetailPriceExVAT As String
End Class
Public Partial Class PersonalisedOffer
Inherits Offer
Public Overridable Property Category As String
Public Overridable Property Description As String
Public Overridable Property Reference As String
End Class
Public Partial Class VehicleByCommissionNumberResponse
Inherits VehicleByIdentifierResponse
Public Overridable Property Vehicle As VehicleIdentifierData
End Class
Public Partial Class VehicleByIdentifierResponse
Public Overridable Property CampaignOffers As List(Of Offer) = New List(Of Offer)
Public Overridable Property CampaignPersonalisedOffers As List(Of PersonalisedOffer) = New List(Of PersonalisedOffer)
Public Overridable Property CampaignOLEVGrantOffers As List(Of Offer) = New List(Of Offer)
Public Overridable Property CampaignMessages As List(Of Message) = New List(Of Message)
Public Overridable Property OfferHistories As List(Of OfferHistory)
Public Overridable Property FinanceOffers As List(Of FinanceOffer)
End Class
Public Partial Class VehicleData
Inherits VehicleDataBase
Public Overridable Property Engine As String
End Class
Public Partial Class VehicleDataBase
Public Overridable Property Vin As String
Public Overridable Property Description As String
Public Overridable Property Model As String
Public Overridable Property Otr As String
Public Overridable Property RetailPriceExVAT As String
Public Overridable Property ActualPrice As String
Public Overridable Property FuelType As String
Public Overridable Property Transmission As String
Public Overridable Property TransmissionType As String
Public Overridable Property Colour As String
Public Overridable Property ColourCode As String
Public Overridable Property ColourDescription As String
Public Overridable Property CommissionNumber As String
Public Overridable Property OfferAvailable As Boolean
Public Overridable Property CampaignDiscountOfferTotal As Integer
Public Overridable Property CampaignDiscountOfferTotalCurrent As Integer
Public Overridable Property CampaignDiscountOfferTotalPending As Integer
Public Overridable Property CampaignServiceOfferTotal As Integer
Public Overridable Property CampaignServiceOfferTotalCurrent As Integer
Public Overridable Property CampaignServiceOfferTotalPending As Integer
Public Overridable Property CampaignCustomOfferTotal As Integer
Public Overridable Property CampaignPersonalisedOfferTotalCurrent As Integer
Public Overridable Property CampaignPersonalisedOfferTotalPending As Integer
Public Overridable Property CampaignPersonalisedOfferTotal As Integer
Public Overridable Property CampaignCustomOfferTotalCurrent As Integer
Public Overridable Property CampaignCustomOfferTotalPending As Integer
Public Overridable Property CampaignOtherOfferTotal As Integer
Public Overridable Property CampaignOtherOfferTotalCurrent As Integer
Public Overridable Property CampaignOtherOfferTotalPending As Integer
Public Overridable Property RetailerDiscountOfferTotal As Integer
Public Overridable Property RetailerDiscountOfferTotalCurrent As Integer
Public Overridable Property RetailerDiscountOfferTotalPending As Integer
Public Overridable Property RetailerServiceOfferTotal As Integer
Public Overridable Property RetailerServiceOfferTotalCurrent As Integer
Public Overridable Property RetailerServiceOfferTotalPending As Integer
Public Overridable Property RetailerCustomOfferTotal As Integer
Public Overridable Property RetailerCustomOfferTotalCurrent As Integer
Public Overridable Property RetailerCustomOfferTotalPending As Integer
Public Overridable Property RetailerWarrantyOfferTotal As Integer
Public Overridable Property RetailerWarrantyOfferTotalCurrent As Integer
Public Overridable Property RetailerWarrantyOfferTotalPending As Integer
Public Overridable Property RetailerOfferTotal As Integer
Public Overridable Property RetailerOfferTotalCurrent As Integer
Public Overridable Property RetailerOfferTotalPending As Integer
Public Overridable Property CampaignOfferTotal As Integer
Public Overridable Property CampaignOfferTotalCurrent As Integer
Public Overridable Property CampaignOfferTotalPending As Integer
Public Overridable Property CampaignAndOfferTotal As Integer
Public Overridable Property CampaignAndOfferTotalCurrent As Integer
Public Overridable Property CampaignAndOfferTotalPending As Integer
Public Overridable Property OfferTotal As Integer
Public Overridable Property OfferTotalCurrent As Integer
Public Overridable Property OfferTotalPending As Integer
Public Overridable Property Creation As String
Public Overridable Property Modified As String
Public Overridable Property ElectricRange As Integer
Public Overridable Property ElectricConsumption As Integer
Public Overridable Property PortArrivalDate As Date?
Public Overridable Property DaysSincePortArrival As Integer?
Public Overridable Property RetailPriceIncVAT As Decimal
Public Overridable Property BodyStyle As String
Public Overridable Property Upholstery As String
Public Overridable Property UpholsteryCode As String
Public Overridable Property UpholsteryType As String
Public Overridable Property PackageNames As List(Of String) = New List(Of String)
Public Overridable Property Line As String
Public Overridable Property CurrentRetailerOfferPrice As Decimal
Public Overridable Property RetailPrice As String
Public Overridable Property VATQualifying As Boolean
Public Overridable Property RetailerId As Integer
Public Overridable Property GssnId As String
Public Overridable Property NoImage As Boolean
Public Overridable Property ImageUrl As String
Public Overridable Property IsAvailableOnline As Boolean
Public Overridable Property IsBackOrdered As Boolean
Public Overridable Property CreationDate As String
Public Overridable Property MaintenanceDate As String
Public Overridable Property RegistrationNumber As String
Public Overridable Property RegistrationDate As Date?
Public Overridable Property Mileage As Integer?
Public Overridable Property TradeInDate As Date?
Public Overridable Property Source As String
Public Overridable Property VehicleType As String
Public Overridable Property OfferAmount As String
Public Overridable Property OfferExpiry As String
Public Overridable Property ActiveOffers As Integer() = New Integer(){}
Public Overridable Property CampaignMessagesTotal As Integer
Public Overridable Property UnderOffer As Boolean
Public Overridable Property IsDisplayStock As Boolean
Public Overridable Property DisplayRetailer As String
Public Overridable Property DisplayRetailerGssnId As String
Public Overridable Property Location As String
Public Overridable Property Account As String
Public Overridable Property AccountType As String
Public Overridable Property UsageCode As String
Public Overridable Property Bm7NST As String
Public Overridable Property IsSellable As Boolean
Public Overridable Property Secured As Boolean
Public Overridable Property Specialist As Boolean
Public Overridable Property IsMotabilityRetailer As Boolean
Public Overridable Property UpholsteryDescription As String
Public Overridable Property InBackOrderAccount As Boolean
Public Overridable Property FullModelYearCode As String
Public Overridable Property ProductionDate As Date?
Public Overridable Property Baumuster As String
Public Overridable Property IsMotability As Boolean
Public Overridable Property PipAdvanceRentalGross As Decimal?
Public Overridable Property WpmsAdvanceRentalGross As Decimal?
Public Overridable Property IspVehicleCustomerDescriptions As List(Of String)
End Class
Public Partial Class VehicleIdentifierData
Inherits VehicleData
Public Overridable Property Retailer As String
Public Overridable Property HasMotabilityError As Boolean
Public Overridable Property Equipment As List(Of Equipment) = New List(Of Equipment)
End Class
End Namespace
End Namespace
VB.NET VehicleByCommissionNumberRequest 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/{VehicleType}/Vehicle/{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 <VehicleByCommissionNumberResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mercedes.VehicleManagement.API.Shared.POCO"> <CampaignMessages> <Message> <CampaignDescription>String</CampaignDescription> <CampaignId>0</CampaignId> <DocumentUrl>String</DocumentUrl> <From>String</From> <Id>0</Id> <To>String</To> <Value>String</Value> <Vin>String</Vin> </Message> </CampaignMessages> <CampaignOLEVGrantOffers> <Offer> <CampaignName>String</CampaignName> <CampaignVIPDiscount>false</CampaignVIPDiscount> <DocumentUrl>String</DocumentUrl> <From>String</From> <Id>0</Id> <IsPersonalisedMonetaryOffer>false</IsPersonalisedMonetaryOffer> <Net>0</Net> <OfferType>String</OfferType> <OfferValueNet>0</OfferValueNet> <OfferVehicle> <RetailPriceExVAT>String</RetailPriceExVAT> </OfferVehicle> <Pending>false</Pending> <Personalised>false</Personalised> <To>String</To> <Value>String</Value> </Offer> </CampaignOLEVGrantOffers> <CampaignOffers> <Offer> <CampaignName>String</CampaignName> <CampaignVIPDiscount>false</CampaignVIPDiscount> <DocumentUrl>String</DocumentUrl> <From>String</From> <Id>0</Id> <IsPersonalisedMonetaryOffer>false</IsPersonalisedMonetaryOffer> <Net>0</Net> <OfferType>String</OfferType> <OfferValueNet>0</OfferValueNet> <OfferVehicle> <RetailPriceExVAT>String</RetailPriceExVAT> </OfferVehicle> <Pending>false</Pending> <Personalised>false</Personalised> <To>String</To> <Value>String</Value> </Offer> </CampaignOffers> <CampaignPersonalisedOffers> <PersonalisedOffer> <CampaignName>String</CampaignName> <CampaignVIPDiscount>false</CampaignVIPDiscount> <DocumentUrl>String</DocumentUrl> <From>String</From> <Id>0</Id> <IsPersonalisedMonetaryOffer>false</IsPersonalisedMonetaryOffer> <Net>0</Net> <OfferType>String</OfferType> <OfferValueNet>0</OfferValueNet> <OfferVehicle> <RetailPriceExVAT>String</RetailPriceExVAT> </OfferVehicle> <Pending>false</Pending> <Personalised>false</Personalised> <To>String</To> <Value>String</Value> <Category>String</Category> <Description>String</Description> <Reference>String</Reference> </PersonalisedOffer> </CampaignPersonalisedOffers> <FinanceOffers> <FinanceOffer> <CampaignDescription>String</CampaignDescription> <CampaignId>0</CampaignId> <DocumentUrl>String</DocumentUrl> <Enabled>false</Enabled> <From>String</From> <Id>0</Id> <Label>String</Label> <OfferType>String</OfferType> <Pending>false</Pending> <TermsAndConditions>String</TermsAndConditions> <To>String</To> <Value>String</Value> <Vin>String</Vin> </FinanceOffer> </FinanceOffers> <OfferHistories> <OfferHistory> <AuditType>String</AuditType> <CampaignDescription>String</CampaignDescription> <CampaignId>0</CampaignId> <CommissionNumber>String</CommissionNumber> <Creation>String</Creation> <CreationDate>0001-01-01T00:00:00</CreationDate> <Description>String</Description> <From>String</From> <Gssn>String</Gssn> <Id>0</Id> <IsUsedCarOffer>false</IsUsedCarOffer> <Modified>String</Modified> <Net>String</Net> <OfferId>0</OfferId> <OfferType>String</OfferType> <Personalised>false</Personalised> <Source>String</Source> <To>String</To> <User>0</User> <UserId>String</UserId> <VAT>String</VAT> <Value>String</Value> <Vin>String</Vin> </OfferHistory> </OfferHistories> <Vehicle> <Account>String</Account> <AccountType>String</AccountType> <ActiveOffers xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:int>0</d3p1:int> </ActiveOffers> <ActualPrice>String</ActualPrice> <Baumuster>String</Baumuster> <Bm7NST>String</Bm7NST> <BodyStyle>String</BodyStyle> <CampaignAndOfferTotal>0</CampaignAndOfferTotal> <CampaignAndOfferTotalCurrent>0</CampaignAndOfferTotalCurrent> <CampaignAndOfferTotalPending>0</CampaignAndOfferTotalPending> <CampaignCustomOfferTotal>0</CampaignCustomOfferTotal> <CampaignCustomOfferTotalCurrent>0</CampaignCustomOfferTotalCurrent> <CampaignCustomOfferTotalPending>0</CampaignCustomOfferTotalPending> <CampaignDiscountOfferTotal>0</CampaignDiscountOfferTotal> <CampaignDiscountOfferTotalCurrent>0</CampaignDiscountOfferTotalCurrent> <CampaignDiscountOfferTotalPending>0</CampaignDiscountOfferTotalPending> <CampaignMessagesTotal>0</CampaignMessagesTotal> <CampaignOfferTotal>0</CampaignOfferTotal> <CampaignOfferTotalCurrent>0</CampaignOfferTotalCurrent> <CampaignOfferTotalPending>0</CampaignOfferTotalPending> <CampaignOtherOfferTotal>0</CampaignOtherOfferTotal> <CampaignOtherOfferTotalCurrent>0</CampaignOtherOfferTotalCurrent> <CampaignOtherOfferTotalPending>0</CampaignOtherOfferTotalPending> <CampaignPersonalisedOfferTotal>0</CampaignPersonalisedOfferTotal> <CampaignPersonalisedOfferTotalCurrent>0</CampaignPersonalisedOfferTotalCurrent> <CampaignPersonalisedOfferTotalPending>0</CampaignPersonalisedOfferTotalPending> <CampaignServiceOfferTotal>0</CampaignServiceOfferTotal> <CampaignServiceOfferTotalCurrent>0</CampaignServiceOfferTotalCurrent> <CampaignServiceOfferTotalPending>0</CampaignServiceOfferTotalPending> <Colour>String</Colour> <ColourCode>String</ColourCode> <ColourDescription>String</ColourDescription> <CommissionNumber>String</CommissionNumber> <Creation>String</Creation> <CreationDate>String</CreationDate> <CurrentRetailerOfferPrice>0</CurrentRetailerOfferPrice> <DaysSincePortArrival>0</DaysSincePortArrival> <Description>String</Description> <DisplayRetailer>String</DisplayRetailer> <DisplayRetailerGssnId>String</DisplayRetailerGssnId> <ElectricConsumption>0</ElectricConsumption> <ElectricRange>0</ElectricRange> <FuelType>String</FuelType> <FullModelYearCode>String</FullModelYearCode> <GssnId>String</GssnId> <ImageUrl>String</ImageUrl> <InBackOrderAccount>false</InBackOrderAccount> <IsAvailableOnline>false</IsAvailableOnline> <IsBackOrdered>false</IsBackOrdered> <IsDisplayStock>false</IsDisplayStock> <IsMotability>false</IsMotability> <IsMotabilityRetailer>false</IsMotabilityRetailer> <IsSellable>false</IsSellable> <IspVehicleCustomerDescriptions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>String</d3p1:string> </IspVehicleCustomerDescriptions> <Line>String</Line> <Location>String</Location> <MaintenanceDate>String</MaintenanceDate> <Mileage>0</Mileage> <Model>String</Model> <Modified>String</Modified> <NoImage>false</NoImage> <OfferAmount>String</OfferAmount> <OfferAvailable>false</OfferAvailable> <OfferExpiry>String</OfferExpiry> <OfferTotal>0</OfferTotal> <OfferTotalCurrent>0</OfferTotalCurrent> <OfferTotalPending>0</OfferTotalPending> <Otr>String</Otr> <PackageNames xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>String</d3p1:string> </PackageNames> <PipAdvanceRentalGross>0</PipAdvanceRentalGross> <PortArrivalDate>0001-01-01T00:00:00</PortArrivalDate> <ProductionDate>0001-01-01T00:00:00</ProductionDate> <RegistrationDate>0001-01-01T00:00:00</RegistrationDate> <RegistrationNumber>String</RegistrationNumber> <RetailPrice>String</RetailPrice> <RetailPriceExVAT>String</RetailPriceExVAT> <RetailPriceIncVAT>0</RetailPriceIncVAT> <RetailerCustomOfferTotal>0</RetailerCustomOfferTotal> <RetailerCustomOfferTotalCurrent>0</RetailerCustomOfferTotalCurrent> <RetailerCustomOfferTotalPending>0</RetailerCustomOfferTotalPending> <RetailerDiscountOfferTotal>0</RetailerDiscountOfferTotal> <RetailerDiscountOfferTotalCurrent>0</RetailerDiscountOfferTotalCurrent> <RetailerDiscountOfferTotalPending>0</RetailerDiscountOfferTotalPending> <RetailerId>0</RetailerId> <RetailerOfferTotal>0</RetailerOfferTotal> <RetailerOfferTotalCurrent>0</RetailerOfferTotalCurrent> <RetailerOfferTotalPending>0</RetailerOfferTotalPending> <RetailerServiceOfferTotal>0</RetailerServiceOfferTotal> <RetailerServiceOfferTotalCurrent>0</RetailerServiceOfferTotalCurrent> <RetailerServiceOfferTotalPending>0</RetailerServiceOfferTotalPending> <RetailerWarrantyOfferTotal>0</RetailerWarrantyOfferTotal> <RetailerWarrantyOfferTotalCurrent>0</RetailerWarrantyOfferTotalCurrent> <RetailerWarrantyOfferTotalPending>0</RetailerWarrantyOfferTotalPending> <Secured>false</Secured> <Source>String</Source> <Specialist>false</Specialist> <TradeInDate>0001-01-01T00:00:00</TradeInDate> <Transmission>String</Transmission> <TransmissionType>String</TransmissionType> <UnderOffer>false</UnderOffer> <Upholstery>String</Upholstery> <UpholsteryCode>String</UpholsteryCode> <UpholsteryDescription>String</UpholsteryDescription> <UpholsteryType>String</UpholsteryType> <UsageCode>String</UsageCode> <VATQualifying>false</VATQualifying> <VehicleType>String</VehicleType> <Vin>String</Vin> <WpmsAdvanceRentalGross>0</WpmsAdvanceRentalGross> <Engine>String</Engine> <Equipment xmlns:d3p1="http://schemas.datacontract.org/2004/07/Mercedes.OS.Vehicle.Shared.POCO"> <d3p1:Equipment> <d3p1:Code>String</d3p1:Code> <d3p1:Description>String</d3p1:Description> <d3p1:Id>0</d3p1:Id> </d3p1:Equipment> </Equipment> <HasMotabilityError>false</HasMotabilityError> <Retailer>String</Retailer> </Vehicle> </VehicleByCommissionNumberResponse>