Get all insurance service provider.
{{base_url}}
/vas/insurance
Request Example (guzzle)
<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', '{{base_url}}/vas/tv', [
'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": [
{
"insuranceType": [
"ui-insure" => "Third Party Motor Insurance"],
"colors": [
{
"ColourCode": "20",
"ColourName": "Ash"
},
{
"ColourCode": "1004",
"ColourName": "Black"
}],
"engineCapacity": [
{
"CapacityCode": "1",
"CapacityName": "0.1 - 1.59"
},
{
"CapacityCode": "2",
"CapacityName": "1.6 - 2.0"
}],
"states": [
{
"StateCode": "1",
"StateName": "Abia"
},
{
"StateCode": "2",
"StateName": "Adamawa"
}],
"vehicle_makes": [
{
"VehicleMakeCode": "335",
"VehicleMakeName": "Ac Cobra"
},
{
"VehicleMakeCode": "1",
"VehicleMakeName": "Acura"
}]
},
]
}
**Response: ERROR (403 FAILED)**
{
"message": {
"code": 403,
"error": [
"Requested with invalid token!"
]
},
"data": [],
"type": "error"
}