Mercedes.Agency.Orchestration.API

<back to all web services

UpdateBackOrderVehicleImportsRequest

BackOrder
Requires Authentication
The following routes are available for this service:
POST/v1/backorder/vehicleimports
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Mercedes.Agency.Orchestration.API.ServiceModel.Vehicles
Imports Mercedes.Agency.API.Shared.POCO
Imports Mercedes.Agency.API.Shared.Enums
Imports Mercedes.OS.Vehicle.Shared.POCO

Namespace Global

    Namespace Mercedes.Agency.API.Shared.POCO

        Public Partial Class Price
            Public Overridable Property Id As String
            Public Overridable Property Description As String
            Public Overridable Property Net As Decimal
            Public Overridable Property VAT As Decimal
            Public Overridable Property Gross As Decimal
            Public Overridable Property Product As OfferPriceProductType
        End Class

        Public Partial Class Retailer
            Public Overridable Property Id As Integer
            Public Overridable Property GssnId As String
            Public Overridable Property Description As String
            Public Overridable Property Street As String
            Public Overridable Property City As String
            Public Overridable Property Postcode As String
            Public Overridable Property GoogleMapPostcode As String
            Public Overridable Property Phone As String
            Public Overridable Property Fax As String
            Public Overridable Property Email As String
            Public Overridable Property Website As String
            Public Overridable Property RetailerGroupId As String
            Public Overridable Property RetailerGroupName As String
            Public Overridable Property IsOnline As Boolean
            Public Overridable Property IsNewCarRetailer As Boolean
            Public Overridable Property IsUsedCarRetailer As Boolean
            Public Overridable Property IsCentralRetailer As Boolean
            Public Overridable Property ChatEnabled As Boolean
            Public Overridable Property TradeInEnabled As Boolean
            Public Overridable Property smart As Boolean
            Public Overridable Property DisplayPhoneNumberNew As String
            Public Overridable Property DisplayPhoneNumberUsed As String
            Public Overridable Property Latitude As Decimal
            Public Overridable Property Longitude As Decimal
            Public Overridable Property smartDescription As String
            Public Overridable Property smartWebsite As String
            Public Overridable Property smartPhone As String
            Public Overridable Property LegacyId As String
            Public Overridable Property Agent As Boolean
            Public Overridable Property MarketAreaId As Integer
            Public Overridable Property DigitalLoungeParentGssnId As String
            Public Overridable Property SendLeadsToDigitalLoungeParent As Boolean
            Public Overridable Property OpeningTimes As RetailerOpeningTimes
        End Class

        Public Partial Class RetailerOpeningTime
            Public Overridable Property Day As String
            Public Overridable Property OpenFrom As String
            Public Overridable Property OpenTo As String
            Public Overridable Property Special As String
        End Class

        Public Partial Class RetailerOpeningTimes
            Public Overridable Property [New] As List(Of RetailerOpeningTime) = New List(Of RetailerOpeningTime)
            Public Overridable Property Used As List(Of RetailerOpeningTime) = New List(Of RetailerOpeningTime)
        End Class

        Public Partial Class Vehicle
            Public Overridable Property Vin As String
        End Class

        Public Partial Class VehicleAttribute
            Public Overridable Property Description As String
            Public Overridable Property Value As String
        End Class

        Public Partial Class VehicleBaseDetail
            Inherits Vehicle
            Implements ICommissionNumber
            Public Overridable Property Description As String
            Public Overridable Property CommissionNumber As String Implements ICommissionNumber.CommissionNumber
            Public Overridable Property PortArrivalDate As String
            Public Overridable Property OfferExpiryDate As String
            Public Overridable Property Fuel As String
            Public Overridable Property Transmission As String
            Public Overridable Property TransmissionType As String
            Public Overridable Property Colour As String
            Public Overridable Property ColourDescription As String
            Public Overridable Property ImageUrl As String
            Public Overridable Property Specialist As Boolean
            Public Overridable Property VehicleCriteriaMatch As VehicleCriteriaMatch
            Public Overridable Property ColourGroup As String
            Public Overridable Property Model As String
            Public Overridable Property BodyStyle As String
            Public Overridable Property Brand As String
            Public Overridable Property Engine As String
            Public Overridable Property EngineDescription As String
            Public Overridable Property Line As String
            Public Overridable Property Upholstery As String
            Public Overridable Property UpholsteryDescription As String
            Public Overridable Property Packages As List(Of String) = New List(Of String)
            Public Overridable Property P11D As Decimal
            Public Overridable Property Prices As List(Of Price) = New List(Of Price)
            Public Overridable Property VehicleClass As String
            Public Overridable Property ProductRange As String
            Public Overridable Property VehicleType As String
            Public Overridable Property Emission As Decimal?
            Public Overridable Property Baumuster As String
            Public Overridable Property IsSellable As Boolean
            Public Overridable Property Bm7NST As String
            Public Overridable Property ElectricRange As Decimal?
            Public Overridable Property ElectricConsumption As Decimal?
            Public Overridable Property IsDisplayStock As Boolean
            Public Overridable Property DisplayRetailer_Id As Integer?
            Public Overridable Property DisplayRetailer As String
            Public Overridable Property DisplayRetailerGssnId As String
            Public Overridable Property Retailer As Retailer
            Public Overridable Property Age As Integer?
            Public Overridable Property ModelYearCode As String
            Public Overridable Property HalfModelYearCode As String
            Public Overridable Property FullModelYearCode As String
            Public Overridable Property ProductionDate As String
            Public Overridable Property ChassisNumber As String
            Public Overridable Property EligibleForIntegratedServiceCare As Boolean
        End Class

        Public Partial Class VehicleConsumption
            Public Overridable Property Id As Integer
            Public Overridable Property Lkm As Decimal
            Public Overridable Property Mpg As Decimal
        End Class

        Public Partial Class VehicleCriteriaMatch
            Public Overridable Property Fuel As Boolean
            Public Overridable Property Transmission As Boolean
            Public Overridable Property Colour As Boolean
            Public Overridable Property Upholstery As Boolean
            Public Overridable Property Line As Boolean
            Public Overridable Property Engine As Boolean
            Public Overridable Property BodyStyle As Boolean
            Public Overridable Property Packages As Boolean
        End Class

        Public Partial Class VehicleDetail
            Inherits VehicleBaseDetail
            Public Overridable Property RetailPrice_ExVAT As String
            Public Overridable Property OTR As String
            Public Overridable Property ActualPrice As String
            Public Overridable Property TotalOfferValue As String
            Public Overridable Property IsHOBackOrderAccountVehicle As Boolean
            Public Overridable Property ConsumptionCombined As VehicleConsumption
            Public Overridable Property ConsumptionExtraUrban As VehicleConsumption
            Public Overridable Property ConsumptionUrban As VehicleConsumption
            Public Overridable Property WltpFuelConsumptionCombined As VehicleConsumption
            Public Overridable Property WltpFuelConsumptionExtraHigh As VehicleConsumption
            Public Overridable Property WltpFuelConsumptionHigh As VehicleConsumption
            Public Overridable Property WltpFuelConsumptionLow As VehicleConsumption
            Public Overridable Property WltpFuelConsumptionMedium As VehicleConsumption
            Public Overridable Property EquipmentCategories As List(Of VehicleEquipmentCategory)
            Public Overridable Property VehicleEnergyEfficiencyClass As VehicleEmissionClass
            Public Overridable Property VehicleData As List(Of VehicleAttribute)
            Public Overridable Property IntegratedProducts As List(Of VehicleIntegratedServiceCareOption) = New List(Of VehicleIntegratedServiceCareOption)
            Public Overridable Property IspVehicleCustomerDescriptions As List(Of String)
            Public Overridable Property ColourCode As String
            Public Overridable Property UpholsteryCode As String
        End Class

        Public Partial Class VehicleEmissionClass
            Public Overridable Property Colour As String
            Public Overridable Property Rating As String
        End Class

        Public Partial Class VehicleEquipmentCategory
            Public Overridable Property Order As Integer
            Public Overridable Property Code As String
            Public Overridable Property Description As String
            Public Overridable Property Equipment As List(Of Equipmentv2)
        End Class

        Public Partial Class VehicleImport
            Inherits Vehicle
            Public Overridable Property CommissionNumber As String
            Public Overridable Property Sellable As Boolean
            Public Overridable Property Vehicle As VehicleDetail
        End Class

        Public Partial Class VehicleIntegratedServiceCareOption
            Public Overridable Property OptionCode As String
            Public Overridable Property BM7NST As String
            Public Overridable Property FullModelYear As String
            Public Overridable Property IntegratedProductType As String
            Public Overridable Property CustomerDescription As String
            Public Overridable Property OneAgentProductType As String
        End Class
    End Namespace

    Namespace Mercedes.Agency.Orchestration.API.ServiceModel.Vehicles

        <ApiResponse(Description:="Success", StatusCode:=200)>
        <ApiResponse(Description:="BadRequest", StatusCode:=400)>
        Public Partial Class UpdateBackOrderVehicleImportsRequest
            Implements IPost
            Public Overridable Property VehicleImports As List(Of VehicleImport) = New List(Of VehicleImport)
        End Class

        Public Partial Class UpdateBackOrderVehicleImportsResponse
        End Class
    End Namespace

    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

        Public Partial Class Equipmentv2
            Inherits Equipment
            Public Overridable Property Importance As Integer
            Public Overridable Property IsAdditional As Boolean
        End Class
    End Namespace
End Namespace

VB.NET UpdateBackOrderVehicleImportsRequest 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.

POST /v1/backorder/vehicleimports HTTP/1.1 
Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	VehicleImports: 
	[
		{
			CommissionNumber: String,
			Sellable: False,
			Vehicle: 
			{
				RetailPrice_ExVAT: String,
				OTR: String,
				ActualPrice: String,
				TotalOfferValue: String,
				IsHOBackOrderAccountVehicle: False,
				ConsumptionCombined: 
				{
					Id: 0,
					Lkm: 0,
					Mpg: 0
				},
				ConsumptionExtraUrban: 
				{
					Id: 0,
					Lkm: 0,
					Mpg: 0
				},
				ConsumptionUrban: 
				{
					Id: 0,
					Lkm: 0,
					Mpg: 0
				},
				WltpFuelConsumptionCombined: 
				{
					Id: 0,
					Lkm: 0,
					Mpg: 0
				},
				WltpFuelConsumptionExtraHigh: 
				{
					Id: 0,
					Lkm: 0,
					Mpg: 0
				},
				WltpFuelConsumptionHigh: 
				{
					Id: 0,
					Lkm: 0,
					Mpg: 0
				},
				WltpFuelConsumptionLow: 
				{
					Id: 0,
					Lkm: 0,
					Mpg: 0
				},
				WltpFuelConsumptionMedium: 
				{
					Id: 0,
					Lkm: 0,
					Mpg: 0
				},
				EquipmentCategories: 
				[
					{
						Order: 0,
						Code: String,
						Description: String,
						Equipment: 
						[
							{
								Importance: 0,
								IsAdditional: False,
								Id: 0,
								Code: String,
								Description: String
							}
						]
					}
				],
				VehicleEnergyEfficiencyClass: 
				{
					Colour: String,
					Rating: String
				},
				VehicleData: 
				[
					{
						Description: String,
						Value: String
					}
				],
				IntegratedProducts: 
				[
					{
						OptionCode: String,
						BM7NST: String,
						FullModelYear: String,
						IntegratedProductType: String,
						CustomerDescription: String,
						OneAgentProductType: String
					}
				],
				IspVehicleCustomerDescriptions: 
				[
					String
				],
				ColourCode: String,
				UpholsteryCode: String,
				Description: String,
				CommissionNumber: String,
				PortArrivalDate: String,
				OfferExpiryDate: String,
				Fuel: String,
				Transmission: String,
				TransmissionType: String,
				Colour: String,
				ColourDescription: String,
				ImageUrl: String,
				Specialist: False,
				VehicleCriteriaMatch: 
				{
					Fuel: False,
					Transmission: False,
					Colour: False,
					Upholstery: False,
					Line: False,
					Engine: False,
					BodyStyle: False,
					Packages: False
				},
				ColourGroup: String,
				Model: String,
				BodyStyle: String,
				Brand: String,
				Engine: String,
				EngineDescription: String,
				Line: String,
				Upholstery: String,
				UpholsteryDescription: String,
				Packages: 
				[
					String
				],
				P11D: 0,
				Prices: 
				[
					{
						Id: String,
						Description: String,
						Net: 0,
						VAT: 0,
						Gross: 0,
						Product: LIST_PRICE
					}
				],
				VehicleClass: String,
				ProductRange: String,
				VehicleType: String,
				Emission: 0,
				Baumuster: String,
				IsSellable: False,
				Bm7NST: String,
				ElectricRange: 0,
				ElectricConsumption: 0,
				IsDisplayStock: False,
				DisplayRetailer_Id: 0,
				DisplayRetailer: String,
				DisplayRetailerGssnId: String,
				Retailer: 
				{
					Id: 0,
					GssnId: String,
					Description: String,
					Street: String,
					City: String,
					Postcode: String,
					GoogleMapPostcode: String,
					Phone: String,
					Fax: String,
					Email: String,
					Website: String,
					RetailerGroupId: String,
					RetailerGroupName: String,
					IsOnline: False,
					IsNewCarRetailer: False,
					IsUsedCarRetailer: False,
					IsCentralRetailer: False,
					ChatEnabled: False,
					TradeInEnabled: False,
					smart: False,
					DisplayPhoneNumberNew: String,
					DisplayPhoneNumberUsed: String,
					Latitude: 0,
					Longitude: 0,
					smartDescription: String,
					smartWebsite: String,
					smartPhone: String,
					LegacyId: String,
					Agent: False,
					MarketAreaId: 0,
					DigitalLoungeParentGssnId: String,
					SendLeadsToDigitalLoungeParent: False,
					OpeningTimes: 
					{
						New: 
						[
							{
								Day: String,
								OpenFrom: String,
								OpenTo: String,
								Special: String
							}
						],
						Used: 
						[
							{
								Day: String,
								OpenFrom: String,
								OpenTo: String,
								Special: String
							}
						]
					}
				},
				Age: 0,
				ModelYearCode: String,
				HalfModelYearCode: String,
				FullModelYearCode: String,
				ProductionDate: String,
				ChassisNumber: String,
				EligibleForIntegratedServiceCare: False,
				Vin: String
			},
			Vin: String
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	
}