Mercedes.VehicleManagement.API

<back to all web services

OnlineShowroomStockRequest

Vehicle
Requires Authentication
The following routes are available for this service:
POST/v1/OnlineShowroom/StockSearch for Online Showroom StockCalls 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
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class OnlineShowroomStockRequest : IPost
{
    open var gssns:ArrayList<String> = ArrayList<String>()
}

open class OnlineShowroomStockResponse
{
    open var totalVehicles:Int? = null
    open var vehicles:ArrayList<StockDataRow> = ArrayList<StockDataRow>()
}

open class StockDataRow
{
    open var commissionNumber:String? = null
    open var description:String? = null
    open var salesDescriptionLong:String? = null
    open var model:String? = null
    open var colour:String? = null
    open var colourGroup:String? = null
    open var fuelType:String? = null
    open var transmission:String? = null
    open var transmissionType:String? = null
    open var packages:String? = null
    open var lines:String? = null
    open var upholstery:String? = null
    open var upholsteryCode:String? = null
    open var displayStockAgent:String? = null
    open var location:String? = null
    open var vin:String? = null
    open var vid:String? = null
    open var vehicleType:String? = null
    open var vehicleClass:String? = null
    open var creationDate:Date? = null
    open var lastUpdated:Date? = null
    open var productionDate:Date? = null
    open var portArrivalDate:Date? = null
    open var combinedGrossOfferValue:BigDecimal? = null
    open var currentLocation:String? = null
    open var notVisibleOnlineShowroom:Boolean? = null
    open var nvosReason:String? = null
    open var nvosReasonOneAdminExcluded:Boolean? = null
    open var nvosReasonLinkedToBackOrder:Boolean? = null
    open var includedAfterDeduplication:Boolean? = null
    open var unique:Boolean? = null
    open var duplicate:Boolean? = null
    open var duplicateGroup:Int? = null
    open var lowestComm:Boolean? = null
    open var rule:String? = null
    open var fin:String? = null
    open var chassisNumber:String? = null
    open var modelYear:String? = null
    open var modelYearCode:String? = null
    open var halfModelYearCode:String? = null
    open var fullModelYearCode:String? = null
    open var bodyStyle:String? = null
    open var engine:String? = null
    open var cesarIdShipToParty:String? = null
    open var vehicleUsageCode:String? = null
    open var acceleration:BigDecimal? = null
    open var bootCapacity:Int? = null
    open var topSpeed:BigDecimal? = null
    open var driveConcept:String? = null
    open var combustionPowerHp:BigDecimal? = null
    open var electricPowerKw:BigDecimal? = null
    open var electricPowerHp:BigDecimal? = null
    open var combinedPowerKw:BigDecimal? = null
    open var combinedPowerHP:BigDecimal? = null
    open var underOffer:Boolean? = null
    open var isSellable:Boolean? = null
    open var mbukSecured:Boolean? = null
    open var isDisplayStock:Boolean? = null
    open var isSpecialistCar:Boolean? = null
    open var account:String? = null
    open var productRange:String? = null
    open var isAMG:Boolean? = null
    open var actualPrice:BigDecimal? = null
    open var retailPrice_ExVAT:BigDecimal? = null
    open var retailPrice_IncVAT:BigDecimal? = null
    open var otr:BigDecimal? = null
    open var nst:String? = null
    open var bm7NST:String? = null
    open var electricRange:BigDecimal? = null
    open var electricConsumption:BigDecimal? = null
    open var emission:BigDecimal? = null
    open var emissionDirective:String? = null
    open var emissionCombined:String? = null
    open var emissionExtraUrban:String? = null
    open var emissionUrban:String? = null
    open var energyEfficiencyClass:String? = null
    open var wltpEmissionCombined:String? = null
    open var wltpCombined:String? = null
    open var wltpLow:String? = null
    open var wltpMedium:String? = null
    open var wltpHigh:String? = null
    open var wltpExtraHigh:String? = null
    open var totalMoneyOffersExclDiscretionary:BigDecimal? = null
    open var discretionaryMoneyOffer:BigDecimal? = null
    open var totalMoneyOffersInclDiscretionary:BigDecimal? = null
    open var nonDiscretionaryNMOCount:Int? = null
    open var nonDiscretionaryMOCount:Int? = null
    open var discretionaryNMOCount:Int? = null
    open var discretionaryMOCount:Int? = null
    open var totalOfferVIPAmount:BigDecimal? = null
    open var stockLevelIndicator:String? = null
}

Kotlin OnlineShowroomStockRequest DTOs

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

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	gssns: 
	[
		String
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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: 0001-01-01,
			lastUpdated: 0001-01-01,
			productionDate: 0001-01-01,
			portArrivalDate: 0001-01-01,
			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
		}
	]
}