Mercedes.VehicleManagement.API

<back to all web services

MotabilityVehiclesRequest

Vehicle
Requires Authentication
The following routes are available for this service:
GET/v1/{VehicleType}/Vehicle/MotabilityGet motability vehicle data
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
Imports Mercedes.OS.Vehicle.Shared.POCO

Namespace Global

    Namespace Mercedes.OS.Vehicle.Shared.POCO

        Public Partial Class Equipment
            Public Overridable Property Id As Integer
            Public Overridable Property Code As String
            Public Overridable Property Description As String
        End Class
    End Namespace

    Namespace Mercedes.VehicleManagement.API.ServiceModel

        Public Partial Class MotabilityVehiclesRequest
            Implements IGet
            Public Overridable Property VehicleType As String
        End Class
    End Namespace

    Namespace Mercedes.VehicleManagement.API.Shared.POCO

        Public Partial Class VehicleData
            Inherits VehicleDataBase
            Public Overridable Property Engine As String
        End Class

        Public Partial Class VehicleDataBase
            Public Overridable Property Vin As String
            Public Overridable Property Description As String
            Public Overridable Property Model As String
            Public Overridable Property Otr As String
            Public Overridable Property RetailPriceExVAT As String
            Public Overridable Property ActualPrice As String
            Public Overridable Property FuelType As String
            Public Overridable Property Transmission As String
            Public Overridable Property TransmissionType As String
            Public Overridable Property Colour As String
            Public Overridable Property ColourCode As String
            Public Overridable Property ColourDescription As String
            Public Overridable Property CommissionNumber As String
            Public Overridable Property OfferAvailable As Boolean
            Public Overridable Property CampaignDiscountOfferTotal As Integer
            Public Overridable Property CampaignDiscountOfferTotalCurrent As Integer
            Public Overridable Property CampaignDiscountOfferTotalPending As Integer
            Public Overridable Property CampaignServiceOfferTotal As Integer
            Public Overridable Property CampaignServiceOfferTotalCurrent As Integer
            Public Overridable Property CampaignServiceOfferTotalPending As Integer
            Public Overridable Property CampaignCustomOfferTotal As Integer
            Public Overridable Property CampaignPersonalisedOfferTotalCurrent As Integer
            Public Overridable Property CampaignPersonalisedOfferTotalPending As Integer
            Public Overridable Property CampaignPersonalisedOfferTotal As Integer
            Public Overridable Property CampaignCustomOfferTotalCurrent As Integer
            Public Overridable Property CampaignCustomOfferTotalPending As Integer
            Public Overridable Property CampaignOtherOfferTotal As Integer
            Public Overridable Property CampaignOtherOfferTotalCurrent As Integer
            Public Overridable Property CampaignOtherOfferTotalPending As Integer
            Public Overridable Property RetailerDiscountOfferTotal As Integer
            Public Overridable Property RetailerDiscountOfferTotalCurrent As Integer
            Public Overridable Property RetailerDiscountOfferTotalPending As Integer
            Public Overridable Property RetailerServiceOfferTotal As Integer
            Public Overridable Property RetailerServiceOfferTotalCurrent As Integer
            Public Overridable Property RetailerServiceOfferTotalPending As Integer
            Public Overridable Property RetailerCustomOfferTotal As Integer
            Public Overridable Property RetailerCustomOfferTotalCurrent As Integer
            Public Overridable Property RetailerCustomOfferTotalPending As Integer
            Public Overridable Property RetailerWarrantyOfferTotal As Integer
            Public Overridable Property RetailerWarrantyOfferTotalCurrent As Integer
            Public Overridable Property RetailerWarrantyOfferTotalPending As Integer
            Public Overridable Property RetailerOfferTotal As Integer
            Public Overridable Property RetailerOfferTotalCurrent As Integer
            Public Overridable Property RetailerOfferTotalPending As Integer
            Public Overridable Property CampaignOfferTotal As Integer
            Public Overridable Property CampaignOfferTotalCurrent As Integer
            Public Overridable Property CampaignOfferTotalPending As Integer
            Public Overridable Property CampaignAndOfferTotal As Integer
            Public Overridable Property CampaignAndOfferTotalCurrent As Integer
            Public Overridable Property CampaignAndOfferTotalPending As Integer
            Public Overridable Property OfferTotal As Integer
            Public Overridable Property OfferTotalCurrent As Integer
            Public Overridable Property OfferTotalPending As Integer
            Public Overridable Property Creation As String
            Public Overridable Property Modified As String
            Public Overridable Property ElectricRange As Integer
            Public Overridable Property ElectricConsumption As Integer
            Public Overridable Property PortArrivalDate As Date?
            Public Overridable Property DaysSincePortArrival As Integer?
            Public Overridable Property RetailPriceIncVAT As Decimal
            Public Overridable Property BodyStyle As String
            Public Overridable Property Upholstery As String
            Public Overridable Property UpholsteryCode As String
            Public Overridable Property UpholsteryType As String
            Public Overridable Property PackageNames As List(Of String) = New List(Of String)
            Public Overridable Property Line As String
            Public Overridable Property CurrentRetailerOfferPrice As Decimal
            Public Overridable Property RetailPrice As String
            Public Overridable Property VATQualifying As Boolean
            Public Overridable Property RetailerId As Integer
            Public Overridable Property GssnId As String
            Public Overridable Property NoImage As Boolean
            Public Overridable Property ImageUrl As String
            Public Overridable Property IsAvailableOnline As Boolean
            Public Overridable Property IsBackOrdered As Boolean
            Public Overridable Property CreationDate As String
            Public Overridable Property MaintenanceDate As String
            Public Overridable Property RegistrationNumber As String
            Public Overridable Property RegistrationDate As Date?
            Public Overridable Property Mileage As Integer?
            Public Overridable Property TradeInDate As Date?
            Public Overridable Property Source As String
            Public Overridable Property VehicleType As String
            Public Overridable Property OfferAmount As String
            Public Overridable Property OfferExpiry As String
            Public Overridable Property ActiveOffers As Integer() = New Integer(){}
            Public Overridable Property CampaignMessagesTotal As Integer
            Public Overridable Property UnderOffer As Boolean
            Public Overridable Property IsDisplayStock As Boolean
            Public Overridable Property DisplayRetailer As String
            Public Overridable Property DisplayRetailerGssnId As String
            Public Overridable Property Location As String
            Public Overridable Property Account As String
            Public Overridable Property AccountType As String
            Public Overridable Property UsageCode As String
            Public Overridable Property Bm7NST As String
            Public Overridable Property IsSellable As Boolean
            Public Overridable Property Secured As Boolean
            Public Overridable Property Specialist As Boolean
            Public Overridable Property IsMotabilityRetailer As Boolean
            Public Overridable Property UpholsteryDescription As String
            Public Overridable Property InBackOrderAccount As Boolean
            Public Overridable Property FullModelYearCode As String
            Public Overridable Property ProductionDate As Date?
            Public Overridable Property Baumuster As String
            Public Overridable Property IsMotability As Boolean
            Public Overridable Property PipAdvanceRentalGross As Decimal?
            Public Overridable Property WpmsAdvanceRentalGross As Decimal?
            Public Overridable Property IspVehicleCustomerDescriptions As List(Of String)
        End Class

        Public Partial Class VehicleIdentifierData
            Inherits VehicleData
            Public Overridable Property Retailer As String
            Public Overridable Property HasMotabilityError As Boolean
            Public Overridable Property Equipment As List(Of Equipment) = New List(Of Equipment)
        End Class

        Public Partial Class VehiclesByRetailerResponse
            Public Overridable Property Vehicles As List(Of VehicleIdentifierData) = New List(Of VehicleIdentifierData)
        End Class
    End Namespace
End Namespace

VB.NET MotabilityVehiclesRequest DTOs

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

HTTP + CSV

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

GET /v1/{VehicleType}/Vehicle/Motability HTTP/1.1 
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"vehicles":[{"retailer":"String","hasMotabilityError":false,"equipment":[{"id":0,"code":"String","description":"String"}],"engine":"String","vin":"String","description":"String","model":"String","otr":"String","retailPriceExVAT":"String","actualPrice":"String","fuelType":"String","transmission":"String","transmissionType":"String","colour":"String","colourCode":"String","colourDescription":"String","commissionNumber":"String","offerAvailable":false,"campaignDiscountOfferTotal":0,"campaignDiscountOfferTotalCurrent":0,"campaignDiscountOfferTotalPending":0,"campaignServiceOfferTotal":0,"campaignServiceOfferTotalCurrent":0,"campaignServiceOfferTotalPending":0,"campaignCustomOfferTotal":0,"campaignPersonalisedOfferTotalCurrent":0,"campaignPersonalisedOfferTotalPending":0,"campaignPersonalisedOfferTotal":0,"campaignCustomOfferTotalCurrent":0,"campaignCustomOfferTotalPending":0,"campaignOtherOfferTotal":0,"campaignOtherOfferTotalCurrent":0,"campaignOtherOfferTotalPending":0,"retailerDiscountOfferTotal":0,"retailerDiscountOfferTotalCurrent":0,"retailerDiscountOfferTotalPending":0,"retailerServiceOfferTotal":0,"retailerServiceOfferTotalCurrent":0,"retailerServiceOfferTotalPending":0,"retailerCustomOfferTotal":0,"retailerCustomOfferTotalCurrent":0,"retailerCustomOfferTotalPending":0,"retailerWarrantyOfferTotal":0,"retailerWarrantyOfferTotalCurrent":0,"retailerWarrantyOfferTotalPending":0,"retailerOfferTotal":0,"retailerOfferTotalCurrent":0,"retailerOfferTotalPending":0,"campaignOfferTotal":0,"campaignOfferTotalCurrent":0,"campaignOfferTotalPending":0,"campaignAndOfferTotal":0,"campaignAndOfferTotalCurrent":0,"campaignAndOfferTotalPending":0,"offerTotal":0,"offerTotalCurrent":0,"offerTotalPending":0,"creation":"String","modified":"String","electricRange":0,"electricConsumption":0,"portArrivalDate":"\/Date(-62135596800000-0000)\/","daysSincePortArrival":0,"retailPriceIncVAT":0,"bodyStyle":"String","upholstery":"String","upholsteryCode":"String","upholsteryType":"String","packageNames":["String"],"line":"String","currentRetailerOfferPrice":0,"retailPrice":"String","vatQualifying":false,"retailerId":0,"gssnId":"String","noImage":false,"imageUrl":"String","isAvailableOnline":false,"isBackOrdered":false,"creationDate":"String","maintenanceDate":"String","registrationNumber":"String","registrationDate":"\/Date(-62135596800000-0000)\/","mileage":0,"tradeInDate":"\/Date(-62135596800000-0000)\/","source":"String","vehicleType":"String","offerAmount":"String","offerExpiry":"String","activeOffers":[0],"campaignMessagesTotal":0,"underOffer":false,"isDisplayStock":false,"displayRetailer":"String","displayRetailerGssnId":"String","location":"String","account":"String","accountType":"String","usageCode":"String","bm7NST":"String","isSellable":false,"secured":false,"specialist":false,"isMotabilityRetailer":false,"upholsteryDescription":"String","inBackOrderAccount":false,"fullModelYearCode":"String","productionDate":"\/Date(-62135596800000-0000)\/","baumuster":"String","isMotability":false,"pipAdvanceRentalGross":0,"wpmsAdvanceRentalGross":0,"ispVehicleCustomerDescriptions":["String"]}]}