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
const std = @import("std");

pub const BaseAllAvailableVehiclesRequest = struct {
    vehicleType: ?[]const u8 = null,
    includeBackOrderAccounts: bool = false,
};

pub const BasicBackOrderVehicle = struct {
    commissionNumber: ?[]const u8 = null,
    description: ?[]const u8 = null,
    model: ?[]const u8 = null,
    colour: ?[]const u8 = null,
    fuelType: ?[]const u8 = null,
    transmission: ?[]const u8 = null,
    packages: ?[]const u8 = null,
    lines: ?[]const u8 = null,
    upholstery: ?[]const u8 = null,
    emissionCombined: ?[]const u8 = null,
    actualPrice: f64 = 0,
    usageCode: ?[]const u8 = null,
    secured: bool = false,
    account: ?[]const u8 = null,
    securedTime: ?[]const u8 = null,
    securedReason: ?[]const u8 = null,
    securedByGasId: ?[]const u8 = null,
    securedDate: ?[]const u8 = null,
    confirmedProductionDate: ?[]const u8 = null,
    forecastedArrivalDate: ?[]const u8 = null,
};

pub const BackOrderVehicle = struct {
    commissionNumber: ?[]const u8 = null,
    description: ?[]const u8 = null,
    model: ?[]const u8 = null,
    colour: ?[]const u8 = null,
    fuelType: ?[]const u8 = null,
    transmission: ?[]const u8 = null,
    packages: ?[]const u8 = null,
    lines: ?[]const u8 = null,
    upholstery: ?[]const u8 = null,
    emissionCombined: ?[]const u8 = null,
    actualPrice: f64 = 0,
    usageCode: ?[]const u8 = null,
    secured: bool = false,
    account: ?[]const u8 = null,
    securedTime: ?[]const u8 = null,
    securedReason: ?[]const u8 = null,
    securedByGasId: ?[]const u8 = null,
    securedDate: ?[]const u8 = null,
    confirmedProductionDate: ?[]const u8 = null,
    forecastedArrivalDate: ?[]const u8 = null,
    id: i32 = 0,
    vin: ?[]const u8 = null,
    vehicleType: ?[]const u8 = null,
    vid: ?[]const u8 = null,
    fin: ?[]const u8 = null,
    chassisNumber: ?[]const u8 = null,
    modelYear: ?[]const u8 = null,
    modelYearCode: ?[]const u8 = null,
    halfModelYearCode: ?[]const u8 = null,
    fullModelYearCode: ?[]const u8 = null,
    salesDescriptionLong: ?[]const u8 = null,
    vehicleClass: ?[]const u8 = null,
    retailPrice_ExVAT: f64 = 0,
    retailPrice_IncVAT: f64 = 0,
    otr: f64 = 0,
    bodyStyle: ?[]const u8 = null,
    productRange: ?[]const u8 = null,
    engine: ?[]const u8 = null,
    isAMG: bool = false,
    colourGroup: ?[]const u8 = null,
    upholsteryCode: ?[]const u8 = null,
    nst: ?[]const u8 = null,
    bm7NST: ?[]const u8 = null,
    acceleration: ?f64 = null,
    bootCapacity: ?i32 = null,
    topSpeed: ?f64 = null,
    driveConcept: ?[]const u8 = null,
    combustionPowerHp: ?f64 = null,
    electricPowerKw: ?f64 = null,
    electricPowerHp: ?f64 = null,
    combinedPowerKw: ?f64 = null,
    combinedPowerHP: ?f64 = null,
    electricRange: ?f64 = null,
    electricConsumption: ?f64 = null,
    emission: ?f64 = null,
    emissionDirective: ?[]const u8 = null,
    emissionExtraUrban: ?[]const u8 = null,
    emissionUrban: ?[]const u8 = null,
    energyEfficiencyClass: ?[]const u8 = null,
    wltpEmissionCombined: ?[]const u8 = null,
    wltpCombined: ?[]const u8 = null,
    wltpLow: ?[]const u8 = null,
    wltpMedium: ?[]const u8 = null,
    wltpHigh: ?[]const u8 = null,
    wltpExtraHigh: ?[]const u8 = null,
    portArrivalDate: ?[]const u8 = null,
    creationDate: ?[]const u8 = null,
    lastUpdated: ?[]const u8 = null,
    isDisplayStock: bool = false,
    displayStockAgent: ?[]const u8 = null,
    isSpecialistCar: bool = false,
    location: ?[]const u8 = null,
    cesarIdShipToParty: ?[]const u8 = null,
    isSellable: bool = false,
    underOffer: bool = false,
    baumuster: ?[]const u8 = null,
};

pub const StockManagementResponse = struct {
    totalVehicles: i32 = 0,
    vehicles: []BackOrderVehicle = &.{},
};

pub const AllAvailableVehiclesCsvRequest = struct {
    vehicleType: ?[]const u8 = null,
    includeBackOrderAccounts: bool = false,
};

Zig AllAvailableVehiclesCsvRequest DTOs

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

HTTP + OTHER

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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"totalVehicles":0}