| GET | /v1/details/{vehicleType}/{Identifier} | Get Vehicle Details | |
|---|---|---|---|
| GET | /details/{vehicleType}/{Identifier} | Get Vehicle Details |
const std = @import("std");
pub const VehicleAuditDetails = struct {
userId: ?[]const u8 = null,
status: bool = false,
notes: ?[]const u8 = null,
creationDate: ?[]const u8 = null,
};
pub const BackOrderVehicleDetailsBase = struct {
vin: ?[]const u8 = null,
commissionNumber: ?[]const u8 = null,
description: ?[]const u8 = null,
model: ?[]const u8 = null,
fullModelYearCode: ?[]const u8 = null,
retailerId: i32 = 0,
imageUrl: ?[]const u8 = null,
colour: ?[]const u8 = null,
colourDescription: ?[]const u8 = null,
bodyStyle: ?[]const u8 = null,
fuelType: ?[]const u8 = null,
transmission: ?[]const u8 = null,
transmissionType: ?[]const u8 = null,
package: ?[]const u8 = null,
packages: [][]const u8 = &.{},
line: ?[]const u8 = null,
mappedLine: ?[]const u8 = null,
upholstery: ?[]const u8 = null,
upholsteryDescription: ?[]const u8 = null,
usageCode: ?[]const u8 = null,
account: ?[]const u8 = null,
nst: ?[]const u8 = null,
baumuster: ?[]const u8 = null,
electricRange: ?f64 = null,
electricConsumption: ?f64 = null,
retailPrice_ExVAT: f64 = 0,
actualPrice: ?f64 = null,
otrPrice: f64 = 0,
p11D: f64 = 0,
vehicleType: ?[]const u8 = null,
secured: bool = false,
portArrivalDate: ?[]const u8 = null,
displayRetailer: ?[]const u8 = null,
location: ?[]const u8 = null,
bm7NST: ?[]const u8 = null,
isAvailableOnline: bool = false,
isSpecialistCar: bool = false,
isSellable: bool = false,
inBackOrderAccount: bool = false,
vehicleAuditDetails: []VehicleAuditDetails = &.{},
ispVehicleCustomerDescriptions: ?[][]const u8 = null,
underOffer: bool = false,
isAllocatedToBackOrder: bool = false,
eligibleForMaTransfer: bool = false,
confirmedProductionDate: ?[]const u8 = null,
forecastedArrivalDate: ?[]const u8 = null,
};
pub const BackOrderVehicleDetails = struct {
vin: ?[]const u8 = null,
commissionNumber: ?[]const u8 = null,
description: ?[]const u8 = null,
model: ?[]const u8 = null,
fullModelYearCode: ?[]const u8 = null,
retailerId: i32 = 0,
imageUrl: ?[]const u8 = null,
colour: ?[]const u8 = null,
colourDescription: ?[]const u8 = null,
bodyStyle: ?[]const u8 = null,
fuelType: ?[]const u8 = null,
transmission: ?[]const u8 = null,
transmissionType: ?[]const u8 = null,
package: ?[]const u8 = null,
packages: [][]const u8 = &.{},
line: ?[]const u8 = null,
mappedLine: ?[]const u8 = null,
upholstery: ?[]const u8 = null,
upholsteryDescription: ?[]const u8 = null,
usageCode: ?[]const u8 = null,
account: ?[]const u8 = null,
nst: ?[]const u8 = null,
baumuster: ?[]const u8 = null,
electricRange: ?f64 = null,
electricConsumption: ?f64 = null,
retailPrice_ExVAT: f64 = 0,
actualPrice: ?f64 = null,
otrPrice: f64 = 0,
p11D: f64 = 0,
vehicleType: ?[]const u8 = null,
secured: bool = false,
portArrivalDate: ?[]const u8 = null,
displayRetailer: ?[]const u8 = null,
location: ?[]const u8 = null,
bm7NST: ?[]const u8 = null,
isAvailableOnline: bool = false,
isSpecialistCar: bool = false,
isSellable: bool = false,
inBackOrderAccount: bool = false,
vehicleAuditDetails: []VehicleAuditDetails = &.{},
ispVehicleCustomerDescriptions: ?[][]const u8 = null,
underOffer: bool = false,
isAllocatedToBackOrder: bool = false,
eligibleForMaTransfer: bool = false,
confirmedProductionDate: ?[]const u8 = null,
forecastedArrivalDate: ?[]const u8 = null,
engine: ?[]const u8 = null,
};
pub const VehicleDetailsResponse = struct {
vehicle: ?BackOrderVehicleDetails = null,
};
pub const VehicleDetailsRequest = struct {
identifier: ?[]const u8 = null,
vehicleType: ?[]const u8 = null,
};
Zig VehicleDetailsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/details/{vehicleType}/{Identifier} HTTP/1.1
Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"vehicle":{"engine":"String","vin":"String","commissionNumber":"String","description":"String","model":"String","fullModelYearCode":"String","retailerId":0,"imageUrl":"String","colour":"String","colourDescription":"String","bodyStyle":"String","fuelType":"String","transmission":"String","transmissionType":"String","package":"String","packages":["String"],"line":"String","mappedLine":"String","upholstery":"String","upholsteryDescription":"String","usageCode":"String","account":"String","nst":"String","baumuster":"String","electricRange":0,"electricConsumption":0,"retailPrice_ExVAT":0,"actualPrice":0,"otrPrice":0,"p11D":0,"vehicleType":"String","secured":false,"portArrivalDate":"\/Date(-62135596800000-0000)\/","displayRetailer":"String","location":"String","bm7NST":"String","isAvailableOnline":false,"isSpecialistCar":false,"isSellable":false,"inBackOrderAccount":false,"vehicleAuditDetails":[{"userId":"String","status":false,"notes":"String","creationDate":"String"}],"ispVehicleCustomerDescriptions":["String"],"underOffer":false,"isAllocatedToBackOrder":false,"eligibleForMaTransfer":false,"confirmedProductionDate":"String","forecastedArrivalDate":"String"}}