POST | /v1/OnlineShowroomCsv/Stock | Search for Online Showroom Stock | Calls Vehicle Data API online showroom stock endpoint and searches for vehicles given a list of retailers. The results are used to populate the Online Showroom Stock full detail CSV export in OneAdmin |
---|
"use strict";
export class CsvVehicle {
/** @param {{Vehicle_Type?:string,vid?:string,vin?:string,fin?:string,Comm?:string,Chassis_Number?:string,Model_Year?:string,Model_Year_Code?:string,Half_Model_Year_Code?:string,Full_Model_Year_Code?:string,Description?:string,Vehicle_Class?:string,Body_Style?:string,model?:string,colour?:string,Colour_Group?:string,Fuel_Type?:string,transmission?:string,packages?:string,lines?:string,Product_Range?:string,engine?:string,isAMG?:boolean,upholstery?:string,nst?:string,baumuster?:string,bm7NST?:string,acceleration?:number,Boot_Capacity?:number,Top_Speed?:number,Drive_Concept?:string,Combustion_Power_HP?:number,Electric_Power_KW?:number,Electric_Power_HP?:number,Combined_Power_KW?:number,Combined_Power_HP?:number,Electric_Range?:number,Electric_Consumption?:number,Emission_Combined?:string,Emission_Directive?:string,Emission_Extra_Urban?:string,Emission_Urban?:string,emission?:number,Test_Standard?:string,Energy_Efficiency_Class?:string,WLTP_Combined?:string,WLTP_Low?:string,WLTP_Medium?:string,WLTP_High?:string,WLTP_Extra_High?:string,WLTP_CO2_Emissions?:string,Production_Date?:string,Port_Arrival_Date?:string,Creation_Date?:string,Maintenance_Date?:string,Net_Price?:number,Retail_Price?:number,OTR_Price?:number,Actual_Price?:number,Usage_Code?:string,secured?:string,account?:string,isDisplayStock?:string,Display_Agent?:string,isSpecialistCar?:string,cesarIdShipToParty?:string,isSellable?:string,Under_Offer?:string,Secured_Date?:string,Secured_Reason?:string,Secured_By_Gas_Id?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
Vehicle_Type;
/** @type {string} */
vid;
/** @type {string} */
vin;
/** @type {string} */
fin;
/** @type {string} */
Comm;
/** @type {string} */
Chassis_Number;
/** @type {string} */
Model_Year;
/** @type {string} */
Model_Year_Code;
/** @type {string} */
Half_Model_Year_Code;
/** @type {string} */
Full_Model_Year_Code;
/** @type {string} */
Description;
/** @type {string} */
Vehicle_Class;
/** @type {string} */
Body_Style;
/** @type {string} */
model;
/** @type {string} */
colour;
/** @type {string} */
Colour_Group;
/** @type {string} */
Fuel_Type;
/** @type {string} */
transmission;
/** @type {string} */
packages;
/** @type {string} */
lines;
/** @type {string} */
Product_Range;
/** @type {string} */
engine;
/** @type {boolean} */
isAMG;
/** @type {string} */
upholstery;
/** @type {string} */
nst;
/** @type {string} */
baumuster;
/** @type {string} */
bm7NST;
/** @type {?number} */
acceleration;
/** @type {?number} */
Boot_Capacity;
/** @type {?number} */
Top_Speed;
/** @type {string} */
Drive_Concept;
/** @type {?number} */
Combustion_Power_HP;
/** @type {?number} */
Electric_Power_KW;
/** @type {?number} */
Electric_Power_HP;
/** @type {?number} */
Combined_Power_KW;
/** @type {?number} */
Combined_Power_HP;
/** @type {?number} */
Electric_Range;
/** @type {?number} */
Electric_Consumption;
/** @type {string} */
Emission_Combined;
/** @type {string} */
Emission_Directive;
/** @type {string} */
Emission_Extra_Urban;
/** @type {string} */
Emission_Urban;
/** @type {?number} */
emission;
/** @type {string} */
Test_Standard;
/** @type {string} */
Energy_Efficiency_Class;
/** @type {string} */
WLTP_Combined;
/** @type {string} */
WLTP_Low;
/** @type {string} */
WLTP_Medium;
/** @type {string} */
WLTP_High;
/** @type {string} */
WLTP_Extra_High;
/** @type {string} */
WLTP_CO2_Emissions;
/** @type {?string} */
Production_Date;
/** @type {?string} */
Port_Arrival_Date;
/** @type {string} */
Creation_Date;
/** @type {?string} */
Maintenance_Date;
/** @type {number} */
Net_Price;
/** @type {number} */
Retail_Price;
/** @type {number} */
OTR_Price;
/** @type {number} */
Actual_Price;
/** @type {string} */
Usage_Code;
/** @type {string} */
secured;
/** @type {string} */
account;
/** @type {string} */
isDisplayStock;
/** @type {string} */
Display_Agent;
/** @type {string} */
isSpecialistCar;
/** @type {string} */
cesarIdShipToParty;
/** @type {string} */
isSellable;
/** @type {string} */
Under_Offer;
/** @type {?string} */
Secured_Date;
/** @type {?string} */
Secured_Reason;
/** @type {?string} */
Secured_By_Gas_Id;
}
export class InternalAvailableStockResponse {
/** @param {{totalVehicles?:number,vehicles?:CsvVehicle[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
totalVehicles;
/** @type {CsvVehicle[]} */
vehicles;
}
export class OnlineShowroomStockCsvRequest {
/** @param {{gssns?:string[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string[]} */
gssns = [];
}
JavaScript OnlineShowroomStockCsvRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /v1/OnlineShowroomCsv/Stock HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"gssns":["String"]}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"totalVehicles":0}