POST | /v1/OnlineShowroom/Stock | Search for Online Showroom Stock | Calls Vehicle Data API online showroom stock endpoint and searches for vehicles given a list of retailers. The results are used to populate the Online Showroom Stock datatable grid in OneAdmin |
---|
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.V3
Namespace Global
Namespace Mercedes.VehicleManagement.API.ServiceModel
Public Partial Class OnlineShowroomStockRequest
Implements IPost
Public Overridable Property Gssns As List(Of String) = New List(Of String)
End Class
Public Partial Class OnlineShowroomStockResponse
Public Overridable Property TotalVehicles As Integer
Public Overridable Property Vehicles As List(Of StockDataRow) = New List(Of StockDataRow)
End Class
End Namespace
Namespace Mercedes.VehicleManagement.API.Shared.POCO.V3
Public Partial Class StockDataRow
Public Overridable Property CommissionNumber As String
Public Overridable Property Description As String
Public Overridable Property SalesDescriptionLong As String
Public Overridable Property Model As String
Public Overridable Property Colour As String
Public Overridable Property ColourGroup As String
Public Overridable Property FuelType As String
Public Overridable Property Transmission As String
Public Overridable Property TransmissionType As String
Public Overridable Property Packages As String
Public Overridable Property Lines As String
Public Overridable Property Upholstery As String
Public Overridable Property UpholsteryCode As String
Public Overridable Property DisplayStockAgent As String
Public Overridable Property Location As String
Public Overridable Property Vin As String
Public Overridable Property Vid As String
Public Overridable Property VehicleType As String
Public Overridable Property VehicleClass As String
Public Overridable Property CreationDate As Date
Public Overridable Property LastUpdated As Date?
Public Overridable Property ProductionDate As Date?
Public Overridable Property PortArrivalDate As Date?
Public Overridable Property CombinedGrossOfferValue As Decimal
Public Overridable Property CurrentLocation As String
Public Overridable Property NotVisibleOnlineShowroom As Boolean
Public Overridable Property NvosReason As String
Public Overridable Property NvosReasonOneAdminExcluded As Boolean
Public Overridable Property NvosReasonLinkedToBackOrder As Boolean
Public Overridable Property IncludedAfterDeduplication As Boolean
Public Overridable Property Unique As Boolean
Public Overridable Property Duplicate As Boolean
Public Overridable Property DuplicateGroup As Integer?
Public Overridable Property LowestComm As Boolean
Public Overridable Property Rule As String
Public Overridable Property Fin As String
Public Overridable Property ChassisNumber As String
Public Overridable Property ModelYear As String
Public Overridable Property ModelYearCode As String
Public Overridable Property HalfModelYearCode As String
Public Overridable Property FullModelYearCode As String
Public Overridable Property BodyStyle As String
Public Overridable Property Engine As String
Public Overridable Property CesarIdShipToParty As String
Public Overridable Property VehicleUsageCode As String
Public Overridable Property Acceleration As Decimal?
Public Overridable Property BootCapacity As Integer?
Public Overridable Property TopSpeed As Decimal?
Public Overridable Property DriveConcept As String
Public Overridable Property CombustionPowerHp As Decimal?
Public Overridable Property ElectricPowerKw As Decimal?
Public Overridable Property ElectricPowerHp As Decimal?
Public Overridable Property CombinedPowerKw As Decimal?
Public Overridable Property CombinedPowerHP As Decimal?
Public Overridable Property UnderOffer As Boolean
Public Overridable Property IsSellable As Boolean
Public Overridable Property MBUKSecured As Boolean
Public Overridable Property IsDisplayStock As Boolean
Public Overridable Property IsSpecialistCar As Boolean
Public Overridable Property Account As String
Public Overridable Property ProductRange As String
Public Overridable Property IsAMG As Boolean
Public Overridable Property ActualPrice As Decimal
Public Overridable Property RetailPrice_ExVAT As Decimal
Public Overridable Property RetailPrice_IncVAT As Decimal
Public Overridable Property OTR As Decimal
Public Overridable Property NST As String
Public Overridable Property Bm7NST As String
Public Overridable Property ElectricRange As Decimal?
Public Overridable Property ElectricConsumption As Decimal?
Public Overridable Property Emission As Decimal?
Public Overridable Property EmissionDirective As String
Public Overridable Property EmissionCombined As String
Public Overridable Property EmissionExtraUrban As String
Public Overridable Property EmissionUrban As String
Public Overridable Property EnergyEfficiencyClass As String
Public Overridable Property WLTPEmissionCombined As String
Public Overridable Property WLTPCombined As String
Public Overridable Property WLTPLow As String
Public Overridable Property WLTPMedium As String
Public Overridable Property WLTPHigh As String
Public Overridable Property WLTPExtraHigh As String
Public Overridable Property TotalMoneyOffersExclDiscretionary As Decimal
Public Overridable Property DiscretionaryMoneyOffer As Decimal
Public Overridable Property TotalMoneyOffersInclDiscretionary As Decimal
Public Overridable Property NonDiscretionaryNMOCount As Integer
Public Overridable Property NonDiscretionaryMOCount As Integer
Public Overridable Property DiscretionaryNMOCount As Integer
Public Overridable Property DiscretionaryMOCount As Integer
Public Overridable Property TotalOfferVIPAmount As Decimal
Public Overridable Property StockLevelIndicator As String
End Class
End Namespace
End Namespace
VB.NET OnlineShowroomStockRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/OnlineShowroom/Stock HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: application/json
Content-Type: application/json
Content-Length: length
{"gssns":["String"]}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"totalVehicles":0,"vehicles":[{"commissionNumber":"String","description":"String","salesDescriptionLong":"String","model":"String","colour":"String","colourGroup":"String","fuelType":"String","transmission":"String","transmissionType":"String","packages":"String","lines":"String","upholstery":"String","upholsteryCode":"String","displayStockAgent":"String","location":"String","vin":"String","vid":"String","vehicleType":"String","vehicleClass":"String","creationDate":"\/Date(-62135596800000-0000)\/","lastUpdated":"\/Date(-62135596800000-0000)\/","productionDate":"\/Date(-62135596800000-0000)\/","portArrivalDate":"\/Date(-62135596800000-0000)\/","combinedGrossOfferValue":0,"currentLocation":"String","notVisibleOnlineShowroom":false,"nvosReason":"String","nvosReasonOneAdminExcluded":false,"nvosReasonLinkedToBackOrder":false,"includedAfterDeduplication":false,"unique":false,"duplicate":false,"duplicateGroup":0,"lowestComm":false,"rule":"String","fin":"String","chassisNumber":"String","modelYear":"String","modelYearCode":"String","halfModelYearCode":"String","fullModelYearCode":"String","bodyStyle":"String","engine":"String","cesarIdShipToParty":"String","vehicleUsageCode":"String","acceleration":0,"bootCapacity":0,"topSpeed":0,"driveConcept":"String","combustionPowerHp":0,"electricPowerKw":0,"electricPowerHp":0,"combinedPowerKw":0,"combinedPowerHP":0,"underOffer":false,"isSellable":false,"mbukSecured":false,"isDisplayStock":false,"isSpecialistCar":false,"account":"String","productRange":"String","isAMG":false,"actualPrice":0,"retailPrice_ExVAT":0,"retailPrice_IncVAT":0,"otr":0,"nst":"String","bm7NST":"String","electricRange":0,"electricConsumption":0,"emission":0,"emissionDirective":"String","emissionCombined":"String","emissionExtraUrban":"String","emissionUrban":"String","energyEfficiencyClass":"String","wltpEmissionCombined":"String","wltpCombined":"String","wltpLow":"String","wltpMedium":"String","wltpHigh":"String","wltpExtraHigh":"String","totalMoneyOffersExclDiscretionary":0,"discretionaryMoneyOffer":0,"totalMoneyOffersInclDiscretionary":0,"nonDiscretionaryNMOCount":0,"nonDiscretionaryMOCount":0,"discretionaryNMOCount":0,"discretionaryMOCount":0,"totalOfferVIPAmount":0,"stockLevelIndicator":"String"}]}