Mercedes.VehicleManagement.API

<back to all web services

VehicleDetailsRequest

Vehicle
Requires Authentication
The following routes are available for this service:
GET/v1/details/{vehicleType}/{Identifier}Get Vehicle Details
GET/details/{vehicleType}/{Identifier}Get Vehicle Details
package dtos

import (
	"time"
)

type VehicleAuditDetails struct {
	UserId       string `json:"userId"`
	Status       bool   `json:"status,omitempty"`
	Notes        string `json:"notes"`
	CreationDate string `json:"creationDate"`
}

type BackOrderVehicleDetailsBase struct {
	Vin                            string                `json:"vin"`
	CommissionNumber               string                `json:"commissionNumber"`
	Description                    string                `json:"description"`
	Model                          string                `json:"model"`
	FullModelYearCode              string                `json:"fullModelYearCode"`
	RetailerId                     int                   `json:"retailerId,omitempty"`
	ImageUrl                       string                `json:"imageUrl"`
	Colour                         string                `json:"colour"`
	ColourDescription              string                `json:"colourDescription"`
	BodyStyle                      string                `json:"bodyStyle"`
	FuelType                       string                `json:"fuelType"`
	Transmission                   string                `json:"transmission"`
	TransmissionType               string                `json:"transmissionType"`
	Package                        string                `json:"package"`
	Packages                       []string              `json:"packages"`
	Line                           string                `json:"line"`
	MappedLine                     string                `json:"mappedLine"`
	Upholstery                     string                `json:"upholstery"`
	UpholsteryDescription          string                `json:"upholsteryDescription"`
	UsageCode                      string                `json:"usageCode"`
	Account                        string                `json:"account"`
	Nst                            string                `json:"nst"`
	Baumuster                      string                `json:"baumuster"`
	ElectricRange                  *float64              `json:"electricRange,omitempty"`
	ElectricConsumption            *float64              `json:"electricConsumption,omitempty"`
	RetailPriceExVAT               float64               `json:"retailPrice_ExVAT,omitempty"`
	ActualPrice                    *float64              `json:"actualPrice,omitempty"`
	OtrPrice                       float64               `json:"otrPrice,omitempty"`
	P11D                           float64               `json:"p11D,omitempty"`
	VehicleType                    string                `json:"vehicleType"`
	Secured                        bool                  `json:"secured,omitempty"`
	PortArrivalDate                *time.Time            `json:"portArrivalDate,omitempty"`
	DisplayRetailer                string                `json:"displayRetailer"`
	Location                       string                `json:"location"`
	Bm7NST                         string                `json:"bm7NST"`
	IsAvailableOnline              bool                  `json:"isAvailableOnline,omitempty"`
	IsSpecialistCar                bool                  `json:"isSpecialistCar,omitempty"`
	IsSellable                     bool                  `json:"isSellable,omitempty"`
	InBackOrderAccount             bool                  `json:"inBackOrderAccount,omitempty"`
	VehicleAuditDetails            []VehicleAuditDetails `json:"vehicleAuditDetails"`
	IspVehicleCustomerDescriptions []string              `json:"ispVehicleCustomerDescriptions,omitempty"`
	UnderOffer                     bool                  `json:"underOffer,omitempty"`
	IsAllocatedToBackOrder         bool                  `json:"isAllocatedToBackOrder,omitempty"`
	EligibleForMaTransfer          bool                  `json:"eligibleForMaTransfer,omitempty"`
	ConfirmedProductionDate        *string               `json:"confirmedProductionDate,omitempty"`
	ForecastedArrivalDate          *string               `json:"forecastedArrivalDate,omitempty"`
}

type BackOrderVehicleDetails struct {
	BackOrderVehicleDetailsBase
	Engine *string `json:"engine,omitempty"`
}

type VehicleDetailsResponse struct {
	Vehicle BackOrderVehicleDetails `json:"vehicle"`
}

type VehicleDetailsRequest struct {
	Identifier  string `json:"identifier"`
	VehicleType string `json:"vehicleType"`
}

Go VehicleDetailsRequest 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.

GET /v1/details/{vehicleType}/{Identifier} HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	vehicle: 
	{
		engine: String,
		vin: String,
		commissionNumber: String,
		description: String,
		model: String,
		fullModelYearCode: String,
		retailerId: 0,
		imageUrl: String,
		colour: String,
		colourDescription: String,
		bodyStyle: String,
		fuelType: String,
		transmission: String,
		transmissionType: String,
		package: String,
		packages: 
		[
			String
		],
		line: String,
		mappedLine: String,
		upholstery: String,
		upholsteryDescription: String,
		usageCode: String,
		account: String,
		nst: String,
		baumuster: String,
		electricRange: 0,
		electricConsumption: 0,
		retailPrice_ExVAT: 0,
		actualPrice: 0,
		otrPrice: 0,
		p11D: 0,
		vehicleType: String,
		secured: False,
		portArrivalDate: 0001-01-01,
		displayRetailer: String,
		location: String,
		bm7NST: String,
		isAvailableOnline: False,
		isSpecialistCar: False,
		isSellable: False,
		inBackOrderAccount: False,
		vehicleAuditDetails: 
		[
			{
				userId: String,
				status: False,
				notes: String,
				creationDate: String
			}
		],
		ispVehicleCustomerDescriptions: 
		[
			String
		],
		underOffer: False,
		isAllocatedToBackOrder: False,
		eligibleForMaTransfer: False,
		confirmedProductionDate: String,
		forecastedArrivalDate: String
	}
}