| GET | /v1/vehicle/MotabilityVehicles | Get motability eligible vehicles | Get motability eligible vehicles |
|---|
const std = @import("std");
pub const GetMotabilityVehiclesRequest = struct {};
pub fn VehicleStockManagementResponse(comptime T: type) type {
return struct {
total_vehicles: i32 = 0,
vehicles: []T = &.{},
};
}
pub const Package = struct {
id: i32 = 0,
description: ?[]const u8 = null,
};
pub const MotabilityVehicle = struct {
commission_number: ?[]const u8 = null,
vin: ?[]const u8 = null,
vtn: ?[]const u8 = null,
description: ?[]const u8 = null,
model: ?[]const u8 = null,
b_m7_n_s_t: ?[]const u8 = null,
model_year_code: ?[]const u8 = null,
half_model_year_code: ?[]const u8 = null,
full_model_year_code: ?[]const u8 = null,
fuel: ?[]const u8 = null,
primary_paint_colour_code: ?[]const u8 = null,
colour: ?[]const u8 = null,
primary_upholstery_code: ?[]const u8 = null,
upholstery: ?[]const u8 = null,
packages: []Package = &.{},
account: ?[]const u8 = null,
location: ?[]const u8 = null,
is_display_stock: bool = false,
display_stock_agent: ?[]const u8 = null,
is_sellable: bool = false,
};
pub fn MotabilityStockResponse(comptime T: type) type {
_ = T;
return struct {
total_vehicles: i32 = 0,
vehicles: []MotabilityVehicle = &.{},
};
}
Zig GetMotabilityVehiclesRequest 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/vehicle/MotabilityVehicles HTTP/1.1 Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"TotalVehicles":0,"Vehicles":[{"CommissionNumber":"String","Vin":"String","Vtn":"String","Description":"String","Model":"String","BM7NST":"String","ModelYearCode":"String","HalfModelYearCode":"String","FullModelYearCode":"String.String","Fuel":"String","PrimaryPaintColourCode":"String","Colour":"String","PrimaryUpholsteryCode":"String","Upholstery":"String","Account":"String","Location":"String","IsDisplayStock":false,"DisplayStockAgent":"String","IsSellable":false}]}