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

export class UpdateBackOrderVehicleImportsResponse
{

    public constructor(init?: Partial<UpdateBackOrderVehicleImportsResponse>) { (Object as any).assign(this, init); }
}

export class Vehicle
{
    public Vin?: string;

    public constructor(init?: Partial<Vehicle>) { (Object as any).assign(this, init); }
}

export class VehicleCriteriaMatch
{
    public Fuel: boolean;
    public Transmission: boolean;
    public Colour: boolean;
    public Upholstery: boolean;
    public Line: boolean;
    public Engine: boolean;
    public BodyStyle: boolean;
    public Packages: boolean;

    public constructor(init?: Partial<VehicleCriteriaMatch>) { (Object as any).assign(this, init); }
}

export enum OfferPriceProductType
{
    LIST_PRICE = 'LIST_PRICE',
    NUMBER_PLATE_FEE = 'NUMBER_PLATE_FEE',
    DELIVERY_CHARGE = 'DELIVERY_CHARGE',
    FUEL_CHARGE = 'FUEL_CHARGE',
    MANUFACTURER_OFFER = 'MANUFACTURER_OFFER',
    PERSONALISED_MONEYOFFER = 'PERSONALISED_MONEYOFFER',
    PERSONALISED_NONMONEYOFFER = 'PERSONALISED_NONMONEYOFFER',
    PERSONALISED_NONMONEYOFFER_NEG = 'PERSONALISED_NONMONEYOFFER_NEG',
    SERVICE = 'SERVICE',
    SERVICE_NEG = 'SERVICE_NEG',
    GOVERNMENT_GRANT = 'GOVERNMENT_GRANT',
    OUTRIGHT_PURCHASE_DISCOUNT = 'OUTRIGHT_PURCHASE_DISCOUNT',
    VIP_OFFER = 'VIP_OFFER',
    WALLBOX_OFFER = 'WALLBOX_OFFER',
    WALLBOX_OFFER_NEG = 'WALLBOX_OFFER_NEG',
    ROAD_FUND_LICENCE = 'ROAD_FUND_LICENCE',
    FIRST_REGISTRATION_FEE = 'FIRST_REGISTRATION_FEE',
    NOT_FOUND = 'NOT_FOUND',
    ACCESSORY_OFFER = 'ACCESSORY_OFFER',
    ACCESSORY_OFFER_NEG = 'ACCESSORY_OFFER_NEG',
    MOTABILITY_DISCOUNT = 'MOTABILITY_DISCOUNT',
}

export class Price
{
    public Id: string;
    public Description: string;
    public Net: number;
    public VAT: number;
    public Gross: number;
    public Product: OfferPriceProductType;

    public constructor(init?: Partial<Price>) { (Object as any).assign(this, init); }
}

export class RetailerOpeningTime
{
    public Day: string;
    public OpenFrom: string;
    public OpenTo: string;
    public Special: string;

    public constructor(init?: Partial<RetailerOpeningTime>) { (Object as any).assign(this, init); }
}

export class RetailerOpeningTimes
{
    public New: RetailerOpeningTime[] = [];
    public Used: RetailerOpeningTime[] = [];

    public constructor(init?: Partial<RetailerOpeningTimes>) { (Object as any).assign(this, init); }
}

export class Retailer
{
    public Id: number;
    public GssnId: string;
    public Description: string;
    public Street: string;
    public City: string;
    public Postcode: string;
    public GoogleMapPostcode: string;
    public Phone: string;
    public Fax: string;
    public Email: string;
    public Website: string;
    public RetailerGroupId: string;
    public RetailerGroupName: string;
    public IsOnline: boolean;
    public IsNewCarRetailer: boolean;
    public IsUsedCarRetailer: boolean;
    public IsCentralRetailer: boolean;
    public ChatEnabled: boolean;
    public TradeInEnabled: boolean;
    public smart: boolean;
    public DisplayPhoneNumberNew: string;
    public DisplayPhoneNumberUsed: string;
    public Latitude: number;
    public Longitude: number;
    public smartDescription: string;
    public smartWebsite: string;
    public smartPhone: string;
    public LegacyId: string;
    public Agent: boolean;
    public MarketAreaId: number;
    public DigitalLoungeParentGssnId?: string;
    public SendLeadsToDigitalLoungeParent: boolean;
    public OpeningTimes?: RetailerOpeningTimes;

    public constructor(init?: Partial<Retailer>) { (Object as any).assign(this, init); }
}

export class VehicleBaseDetail extends Vehicle implements ICommissionNumber
{
    public Description: string;
    public CommissionNumber: string;
    public PortArrivalDate: string;
    public OfferExpiryDate: string;
    public Fuel: string;
    public Transmission: string;
    public TransmissionType: string;
    public Colour: string;
    public ColourDescription: string;
    public ImageUrl: string;
    public Specialist: boolean;
    public VehicleCriteriaMatch?: VehicleCriteriaMatch;
    public ColourGroup: string;
    public Model: string;
    public BodyStyle: string;
    public Brand: string;
    public Engine: string;
    public EngineDescription: string;
    public Line: string;
    public Upholstery: string;
    public UpholsteryDescription: string;
    public Packages: string[] = [];
    public P11D: number;
    public Prices: Price[] = [];
    public VehicleClass: string;
    public ProductRange: string;
    public VehicleType: string;
    public Emission?: number;
    public Baumuster: string;
    public IsSellable: boolean;
    public Bm7NST: string;
    public ElectricRange?: number;
    public ElectricConsumption?: number;
    public IsDisplayStock: boolean;
    public DisplayRetailer_Id?: number;
    public DisplayRetailer: string;
    public DisplayRetailerGssnId: string;
    public Retailer: Retailer;
    public Age?: number;
    public ModelYearCode: string;
    public HalfModelYearCode: string;
    public FullModelYearCode: string;
    public ProductionDate: string;
    public ChassisNumber?: string;
    public EligibleForIntegratedServiceCare: boolean;

    public constructor(init?: Partial<VehicleBaseDetail>) { super(init); (Object as any).assign(this, init); }
}

export class VehicleConsumption
{
    public Id: number;
    public Lkm: number;
    public Mpg: number;

    public constructor(init?: Partial<VehicleConsumption>) { (Object as any).assign(this, init); }
}

export class Equipment
{
    public Id: number;
    public Code?: string;
    public Description?: string;

    public constructor(init?: Partial<Equipment>) { (Object as any).assign(this, init); }
}

export class Equipmentv2 extends Equipment
{
    public Importance: number;
    public IsAdditional: boolean;

    public constructor(init?: Partial<Equipmentv2>) { super(init); (Object as any).assign(this, init); }
}

export class VehicleEquipmentCategory
{
    public Order: number;
    public Code?: string;
    public Description?: string;
    public Equipment?: Equipmentv2[];

    public constructor(init?: Partial<VehicleEquipmentCategory>) { (Object as any).assign(this, init); }
}

export class VehicleEmissionClass
{
    public Colour?: string;
    public Rating?: string;

    public constructor(init?: Partial<VehicleEmissionClass>) { (Object as any).assign(this, init); }
}

export class VehicleAttribute
{
    public Description?: string;
    public Value?: string;

    public constructor(init?: Partial<VehicleAttribute>) { (Object as any).assign(this, init); }
}

export class VehicleIntegratedServiceCareOption
{
    public OptionCode?: string;
    public BM7NST?: string;
    public FullModelYear?: string;
    public IntegratedProductType?: string;
    public CustomerDescription?: string;
    public OneAgentProductType?: string;

    public constructor(init?: Partial<VehicleIntegratedServiceCareOption>) { (Object as any).assign(this, init); }
}

export class VehicleDetail extends VehicleBaseDetail
{
    public RetailPrice_ExVAT: string;
    public OTR: string;
    public ActualPrice: string;
    public TotalOfferValue: string;
    public IsHOBackOrderAccountVehicle: boolean;
    public ConsumptionCombined?: VehicleConsumption;
    public ConsumptionExtraUrban?: VehicleConsumption;
    public ConsumptionUrban?: VehicleConsumption;
    public WltpFuelConsumptionCombined?: VehicleConsumption;
    public WltpFuelConsumptionExtraHigh?: VehicleConsumption;
    public WltpFuelConsumptionHigh?: VehicleConsumption;
    public WltpFuelConsumptionLow?: VehicleConsumption;
    public WltpFuelConsumptionMedium?: VehicleConsumption;
    public EquipmentCategories?: VehicleEquipmentCategory[];
    public VehicleEnergyEfficiencyClass?: VehicleEmissionClass;
    public VehicleData?: VehicleAttribute[];
    public IntegratedProducts: VehicleIntegratedServiceCareOption[] = [];
    public IspVehicleCustomerDescriptions?: string[];
    public ColourCode: string;
    public UpholsteryCode: string;

    public constructor(init?: Partial<VehicleDetail>) { super(init); (Object as any).assign(this, init); }
}

export class VehicleImport extends Vehicle
{
    public CommissionNumber: string;
    public Sellable: boolean;
    public Vehicle: VehicleDetail;

    public constructor(init?: Partial<VehicleImport>) { super(init); (Object as any).assign(this, init); }
}

// @ApiResponse(Description="Success", StatusCode=200)
// @ApiResponse(Description="BadRequest", StatusCode=400)
export class UpdateBackOrderVehicleImportsRequest implements IPost
{
    public VehicleImports: VehicleImport[] = [];

    public constructor(init?: Partial<UpdateBackOrderVehicleImportsRequest>) { (Object as any).assign(this, init); }
}

TypeScript 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

{
	
}