Mercedes.VehicleManagement.API

<back to all web services

AllAvailableVehiclesCsvRequest

Vehicle
Requires Authentication
The following routes are available for this service:
GET/v1/AllAvailableVehiclesCsv/{vehicleType}/{includeBackOrderAccounts}Get all available vehicles
package dtos

import (
	"time"
)

type BaseAllAvailableVehiclesRequest struct {
	VehicleType              string `json:"vehicleType"`
	IncludeBackOrderAccounts bool   `json:"includeBackOrderAccounts,omitempty"`
}

type BasicBackOrderVehicle struct {
	CommissionNumber        string     `json:"commissionNumber"`
	Description             string     `json:"description"`
	Model                   string     `json:"model"`
	Colour                  string     `json:"colour"`
	FuelType                string     `json:"fuelType"`
	Transmission            string     `json:"transmission"`
	Packages                string     `json:"packages"`
	Lines                   string     `json:"lines"`
	Upholstery              string     `json:"upholstery"`
	EmissionCombined        string     `json:"emissionCombined"`
	ActualPrice             float64    `json:"actualPrice,omitempty"`
	UsageCode               string     `json:"usageCode"`
	Secured                 bool       `json:"secured,omitempty"`
	Account                 string     `json:"account"`
	SecuredTime             *string    `json:"securedTime,omitempty"`
	SecuredReason           *string    `json:"securedReason,omitempty"`
	SecuredByGasId          *string    `json:"securedByGasId,omitempty"`
	SecuredDate             *time.Time `json:"securedDate,omitempty"`
	ConfirmedProductionDate *time.Time `json:"confirmedProductionDate,omitempty"`
	ForecastedArrivalDate   *time.Time `json:"forecastedArrivalDate,omitempty"`
}

type BackOrderVehicle struct {
	BasicBackOrderVehicle
	Id                    int        `json:"id,omitempty"`
	Vin                   string     `json:"vin"`
	VehicleType           string     `json:"vehicleType"`
	Vid                   string     `json:"vid"`
	Fin                   string     `json:"fin"`
	ChassisNumber         string     `json:"chassisNumber"`
	ModelYear             string     `json:"modelYear"`
	ModelYearCode         string     `json:"modelYearCode"`
	HalfModelYearCode     string     `json:"halfModelYearCode"`
	FullModelYearCode     string     `json:"fullModelYearCode"`
	SalesDescriptionLong  string     `json:"salesDescriptionLong"`
	VehicleClass          string     `json:"vehicleClass"`
	RetailPriceExVAT      float64    `json:"retailPrice_ExVAT,omitempty"`
	RetailPriceIncVAT     float64    `json:"retailPrice_IncVAT,omitempty"`
	Otr                   float64    `json:"otr,omitempty"`
	BodyStyle             string     `json:"bodyStyle"`
	ProductRange          string     `json:"productRange"`
	Engine                string     `json:"engine"`
	IsAMG                 bool       `json:"isAMG,omitempty"`
	ColourGroup           string     `json:"colourGroup"`
	UpholsteryCode        string     `json:"upholsteryCode"`
	Nst                   string     `json:"nst"`
	Bm7NST                string     `json:"bm7NST"`
	Acceleration          *float64   `json:"acceleration,omitempty"`
	BootCapacity          *int       `json:"bootCapacity,omitempty"`
	TopSpeed              *float64   `json:"topSpeed,omitempty"`
	DriveConcept          string     `json:"driveConcept"`
	CombustionPowerHp     *float64   `json:"combustionPowerHp,omitempty"`
	ElectricPowerKw       *float64   `json:"electricPowerKw,omitempty"`
	ElectricPowerHp       *float64   `json:"electricPowerHp,omitempty"`
	CombinedPowerKw       *float64   `json:"combinedPowerKw,omitempty"`
	CombinedPowerHP       *float64   `json:"combinedPowerHP,omitempty"`
	ElectricRange         *float64   `json:"electricRange,omitempty"`
	ElectricConsumption   *float64   `json:"electricConsumption,omitempty"`
	Emission              *float64   `json:"emission,omitempty"`
	EmissionDirective     string     `json:"emissionDirective"`
	EmissionExtraUrban    string     `json:"emissionExtraUrban"`
	EmissionUrban         string     `json:"emissionUrban"`
	EnergyEfficiencyClass string     `json:"energyEfficiencyClass"`
	WltpEmissionCombined  string     `json:"wltpEmissionCombined"`
	WltpCombined          string     `json:"wltpCombined"`
	WltpLow               string     `json:"wltpLow"`
	WltpMedium            string     `json:"wltpMedium"`
	WltpHigh              string     `json:"wltpHigh"`
	WltpExtraHigh         string     `json:"wltpExtraHigh"`
	PortArrivalDate       *time.Time `json:"portArrivalDate,omitempty"`
	CreationDate          time.Time  `json:"creationDate,omitempty"`
	LastUpdated           *time.Time `json:"lastUpdated,omitempty"`
	IsDisplayStock        bool       `json:"isDisplayStock,omitempty"`
	DisplayStockAgent     string     `json:"displayStockAgent"`
	IsSpecialistCar       bool       `json:"isSpecialistCar,omitempty"`
	Location              string     `json:"location"`
	CesarIdShipToParty    string     `json:"cesarIdShipToParty"`
	IsSellable            bool       `json:"isSellable,omitempty"`
	UnderOffer            bool       `json:"underOffer,omitempty"`
	Baumuster             string     `json:"baumuster"`
}

type StockManagementResponse struct {
	TotalVehicles int                `json:"totalVehicles,omitempty"`
	Vehicles      []BackOrderVehicle `json:"vehicles"`
}

type AllAvailableVehiclesCsvRequest struct {
	BaseAllAvailableVehiclesRequest
}

Go AllAvailableVehiclesCsvRequest DTOs

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

HTTP + OTHER

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

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

{"totalVehicles":0}