This endpoint retrieves the available lga based on the selected state.
{{base_url}}
/vas/insurance/lga
Parameter | Type | Details |
---|---|---|
state_code | string | StateCode of the State selected |
Request Example (guzzle)
<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$response = $client->request('POST', '{{base_url}}/vas/insurance/lga', [
'json' => [
'state_code' => '20',
],
'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": [
{
"LGACode": "364",
"LGAName": "Ajingi",
"StateCode": "20",
},
{
"LGACode": "365",
"LGAName": "Albasu",
"StateCode": "20",
},
]
}
**Response: ERROR (403 FAILED)**
{
"message": {
"code": 403,
"error": [
"Requested with invalid token!"
]
},
"data": [],
"type": "error"
}