POST | /vehicledetails/ |
---|
export class ReturnStatus
{
public ReturnCode: string;
public Message: string;
public constructor(init?: Partial<ReturnStatus>) { (Object as any).assign(this, init); }
}
export class VehicleDetailsResponse
{
public Status: ReturnStatus;
public KeeperName: string;
public DriverName: string;
public AfterSaleName: string;
public RegistrationDate?: string;
public AcquisitionDate?: string;
public FuelType: string;
public LastKnownMileage: number;
public SellingRetailer: string;
public ServicingRetailer: string;
public Colour: string;
public BodyType: string;
public Model: string;
public RegistrationNumber: string;
public ChassisNumber: string;
public Return: number;
public constructor(init?: Partial<VehicleDetailsResponse>) { (Object as any).assign(this, init); }
}
export class VehicleDetails
{
public CIAMId: string;
public ChassisNumber: string;
public constructor(init?: Partial<VehicleDetails>) { (Object as any).assign(this, init); }
}
TypeScript VehicleDetails DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /vehicledetails/ HTTP/1.1
Host: webservices.mbukdatabase.co.uk
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
CIAMId: String,
ChassisNumber: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { Status: { ReturnCode: String, Message: String }, KeeperName: String, DriverName: String, AfterSaleName: String, RegistrationDate: 0001-01-01, AcquisitionDate: 0001-01-01, FuelType: String, LastKnownMileage: 0, SellingRetailer: String, ServicingRetailer: String, Colour: String, BodyType: String, Model: String, RegistrationNumber: String, ChassisNumber: String, Return: 0 }