GET | /v1/vehicle/MotabilityVehicles | Get motability eligible vehicles |
---|
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*
open class GetMotabilityVehiclesRequest
{
}
open class MotabilityStockResponse<T>
{
open var TotalVehicles:Int? = null
open var Vehicles:ArrayList<MotabilityVehicle> = ArrayList<MotabilityVehicle>()
}
open class MotabilityVehicle : IPackages, IMotabilityFilterFields
{
open var CommissionNumber:String? = null
override var Vin:String? = null
open var Vtn:String? = null
open var Description:String? = null
open var Model:String? = null
override var BM7NST:String? = null
override var ModelYearCode:String? = null
override var HalfModelYearCode:String? = null
open var FullModelYearCode:String? = null
open var Fuel:String? = null
override var PrimaryPaintColourCode:String? = null
open var Colour:String? = null
override var PrimaryUpholsteryCode:String? = null
open var Upholstery:String? = null
override var Packages:ArrayList<Package>? = null
open var Account:String? = null
open var Location:String? = null
open var IsDisplayStock:Boolean? = null
open var DisplayStockAgent:String? = null
open var IsSellable:Boolean? = null
}
open class Package
{
open var Id:Int? = null
open var Description:String? = null
}
Kotlin 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}]}