This endpoint retrieves the available vehicle models based on the selected Vehicle Make.
{{base_url}}
/vas/insurance/vehicle-model
Parameter | Type | Details |
---|---|---|
vehicle_make | string | VehicleMakeCode from the vehicle make array in the insuranceData |
Request Example (guzzle)
<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', '{{base_url}}/vas/insurance/vehicle-model', [
'json' => [
'vehicle_make' => '335',
],
'headers' => [
'Authorization' => 'Bearer {{access_token}}',
'client-id' => 'sdaH23sE5Th4*******dDF4df',
'accept' => 'application/json',
'content-type' => 'application/json',
],
]);
echo $response->getBody();
**Response: SUCCESS (200 OK)**
{
"statusCode": 200,
"message": "Request successful"
"data": [
{
"VehicleModelCode": "2307",
"VehicleModelName": "Rt3 Backdraft Roadster",
"VehicleMakeCode": "335"
},
]
}
**Response: ERROR (403 FAILED)**
{
"message": {
"code": 403,
"error": [
"Requested with invalid token!"
]
},
"data": [],
"type": "error"
}