GET | /v1/vehicle/MotabilityVehicles | Get motability eligible vehicles |
---|
export class GetMotabilityVehiclesRequest
{
public constructor(init?: Partial<GetMotabilityVehiclesRequest>) { (Object as any).assign(this, init); }
}
export class Package
{
public Id: number;
public Description?: string;
public constructor(init?: Partial<Package>) { (Object as any).assign(this, init); }
}
export class MotabilityVehicle implements IPackages, IMotabilityFilterFields
{
public CommissionNumber: string;
public Vin: string;
public Vtn?: string;
public Description: string;
public Model: string;
public BM7NST: string;
public ModelYearCode: string;
public HalfModelYearCode: string;
public FullModelYearCode: string;
public Fuel: string;
public PrimaryPaintColourCode: string;
public Colour: string;
public PrimaryUpholsteryCode: string;
public Upholstery: string;
public Packages: Package[];
public Account: string;
public Location: string;
public IsDisplayStock: boolean;
public DisplayStockAgent: string;
public IsSellable: boolean;
public constructor(init?: Partial<MotabilityVehicle>) { (Object as any).assign(this, init); }
}
export class MotabilityStockResponse<T>
{
public TotalVehicles: number;
public Vehicles: MotabilityVehicle[] = [];
public constructor(init?: Partial<MotabilityStockResponse<T>>) { (Object as any).assign(this, init); }
}
TypeScript GetMotabilityVehiclesRequest 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.
GET /v1/vehicle/MotabilityVehicles HTTP/1.1 Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl 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}]}