Mercedes.Agency.Orchestration.API

<back to all web services

GetMotabilityVehiclesRequest

Vehicle
Requires Authentication
The following routes are available for this service:
GET/v1/vehicle/MotabilityVehiclesGet motability eligible vehiclesGet motability eligible vehicles
package dtos

type GetMotabilityVehiclesRequest struct {
}

type VehicleStockManagementResponse[T any] struct {
	TotalVehicles int `json:"totalVehicles,omitempty"`
	Vehicles      []T `json:"vehicles"`
}

type Package struct {
	Id          int     `json:"id,omitempty"`
	Description *string `json:"description,omitempty"`
}

type MotabilityVehicle struct {
	CommissionNumber       string    `json:"commissionNumber"`
	Vin                    string    `json:"vin"`
	Vtn                    *string   `json:"vtn,omitempty"`
	Description            string    `json:"description"`
	Model                  string    `json:"model"`
	BM7NST                 string    `json:"bM7NST"`
	ModelYearCode          string    `json:"modelYearCode"`
	HalfModelYearCode      string    `json:"halfModelYearCode"`
	FullModelYearCode      string    `json:"fullModelYearCode"`
	Fuel                   string    `json:"fuel"`
	PrimaryPaintColourCode string    `json:"primaryPaintColourCode"`
	Colour                 string    `json:"colour"`
	PrimaryUpholsteryCode  string    `json:"primaryUpholsteryCode"`
	Upholstery             string    `json:"upholstery"`
	Packages               []Package `json:"packages"`
	Account                string    `json:"account"`
	Location               string    `json:"location"`
	IsDisplayStock         bool      `json:"isDisplayStock,omitempty"`
	DisplayStockAgent      string    `json:"displayStockAgent"`
	IsSellable             bool      `json:"isSellable,omitempty"`
}

type MotabilityStockResponse[T any] struct {
	VehicleStockManagementResponse[MotabilityVehicle]
}

Go GetMotabilityVehiclesRequest 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

HTTP + JSON

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

GET /v1/vehicle/MotabilityVehicles HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"TotalVehicles":0,"Vehicles":[{"CommissionNumber":"String","Vin":"String","Vtn":"String","Description":"String","Model":"String","BM7NST":"String","ModelYearCode":"String","HalfModelYearCode":"String","FullModelYearCode":"String.String","Fuel":"String","PrimaryPaintColourCode":"String","Colour":"String","PrimaryUpholsteryCode":"String","Upholstery":"String","Account":"String","Location":"String","IsDisplayStock":false,"DisplayStockAgent":"String","IsSellable":false}]}