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
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.Shared.POCO.V3

Namespace Global

    Namespace Mercedes.VehicleManagement.API.Shared.POCO.V3

        Public Partial Class AllAvailableVehiclesCsvRequest
            Inherits BaseAllAvailableVehiclesRequest
            Implements IGet
        End Class

        Public Partial Class BackOrderVehicle
            Inherits BasicBackOrderVehicle
            Public Overridable Property Id As Integer
            Public Overridable Property Vin As String
            Public Overridable Property VehicleType As String
            Public Overridable Property Vid As String
            Public Overridable Property Fin As String
            Public Overridable Property ChassisNumber As String
            Public Overridable Property ModelYear As String
            Public Overridable Property ModelYearCode As String
            Public Overridable Property HalfModelYearCode As String
            Public Overridable Property FullModelYearCode As String
            Public Overridable Property SalesDescriptionLong As String
            Public Overridable Property VehicleClass As String
            Public Overridable Property RetailPrice_ExVAT As Decimal
            Public Overridable Property RetailPrice_IncVAT As Decimal
            Public Overridable Property OTR As Decimal
            Public Overridable Property BodyStyle As String
            Public Overridable Property ProductRange As String
            Public Overridable Property Engine As String
            Public Overridable Property IsAMG As Boolean
            Public Overridable Property ColourGroup As String
            Public Overridable Property UpholsteryCode As String
            Public Overridable Property NST As String
            Public Overridable Property Bm7NST As String
            Public Overridable Property Acceleration As Decimal?
            Public Overridable Property BootCapacity As Integer?
            Public Overridable Property TopSpeed As Decimal?
            Public Overridable Property DriveConcept As String
            Public Overridable Property CombustionPowerHp As Decimal?
            Public Overridable Property ElectricPowerKw As Decimal?
            Public Overridable Property ElectricPowerHp As Decimal?
            Public Overridable Property CombinedPowerKw As Decimal?
            Public Overridable Property CombinedPowerHP As Decimal?
            Public Overridable Property ElectricRange As Decimal?
            Public Overridable Property ElectricConsumption As Decimal?
            Public Overridable Property Emission As Decimal?
            Public Overridable Property EmissionDirective As String
            Public Overridable Property EmissionExtraUrban As String
            Public Overridable Property EmissionUrban As String
            Public Overridable Property EnergyEfficiencyClass As String
            Public Overridable Property WLTPEmissionCombined As String
            Public Overridable Property WLTPCombined As String
            Public Overridable Property WLTPLow As String
            Public Overridable Property WLTPMedium As String
            Public Overridable Property WLTPHigh As String
            Public Overridable Property WLTPExtraHigh As String
            Public Overridable Property ProductionDate As Date?
            Public Overridable Property PortArrivalDate As Date?
            Public Overridable Property CreationDate As Date
            Public Overridable Property LastUpdated As Date?
            Public Overridable Property IsDisplayStock As Boolean
            Public Overridable Property DisplayStockAgent As String
            Public Overridable Property IsSpecialistCar As Boolean
            Public Overridable Property Location As String
            Public Overridable Property CesarIdShipToParty As String
            Public Overridable Property IsSellable As Boolean
            Public Overridable Property UnderOffer As Boolean
            Public Overridable Property Baumuster As String
        End Class

        Public Partial Class BaseAllAvailableVehiclesRequest
            Public Overridable Property VehicleType As String
            Public Overridable Property IncludeBackOrderAccounts As Boolean
        End Class

        Public Partial Class BasicBackOrderVehicle
            Public Overridable Property CommissionNumber As String
            Public Overridable Property Description As String
            Public Overridable Property Model As String
            Public Overridable Property Colour As String
            Public Overridable Property FuelType As String
            Public Overridable Property Transmission As String
            Public Overridable Property Packages As String
            Public Overridable Property Lines As String
            Public Overridable Property Upholstery As String
            Public Overridable Property EmissionCombined As String
            Public Overridable Property ActualPrice As Decimal
            Public Overridable Property UsageCode As String
            Public Overridable Property Secured As Boolean
            Public Overridable Property Account As String
            Public Overridable Property SecuredTime As String
            Public Overridable Property SecuredReason As String
            Public Overridable Property SecuredByGasId As String
            Public Overridable Property SecuredDate As Date?
        End Class

        Public Partial Class StockManagementResponse
            Public Overridable Property TotalVehicles As Integer
            Public Overridable Property Vehicles As IEnumerable(Of BackOrderVehicle)
        End Class
    End Namespace
End Namespace

VB.NET AllAvailableVehiclesCsvRequest 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/AllAvailableVehiclesCsv/{vehicleType}/{includeBackOrderAccounts} 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

{"totalVehicles":0,"vehicles":null}