# Third Party Motor Insurance

The following endpoints will allow a merchant to subscribe their customer to the Third Party Motor  insurance plan as well as request claims.

## List All Third Party Motor Products

## This endpoint returns a list of all the Third Party Motor insurance products

<mark style="color:blue;">`GET`</mark> `https://sandbox.insurpass.com/api/merchant/third_party_products`

#### Headers

| Name                                            | Type   | Description                      |
| ----------------------------------------------- | ------ | -------------------------------- |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer {$secret-key}/{$api-key}  |
| Content-Type<mark style="color:red;">\*</mark>  | String | application/json                 |

{% tabs %}
{% tab title="200: OK " %}
```javascript
{
    "success": true,
    "response_message": "Third Party policy products were retrieved successfully",
    "response_code": "",
    "data": [
        {
            "id": 8,
            "name": "Third Party Motor Insurance(Commercial Bus/Staff Bus)",
            "details": "<div><strong>Third-Party Motor Insurance Plan (Commercial Bus/Staff Bus)</strong></div><div><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\"><br></span></div><div><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">Third-Party Motor Insurance Plan covers the insured's (policyholder)&nbsp;</span><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">legal liabilities for death and bodily injuries to third&nbsp;</span><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">parties and third-party property damage.</span></div><div><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\"><br></span></div><div><em><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">Note: Motor insurance is one of the compulsory insurance classes that anyone who owns or uses a motor vehicle on the public highway must have.</span></em><br><strong>​<br></strong></div><div><strong>Price</strong></div><div>#7,500 per year</div><div><br></div><div><strong><span style=\"text-align: var(--bs-body-text-align);\">What Is Covered?</span></strong></div><p></p><ul><li><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">Property Damage limit is 1 million naira.</span></li><li><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">Bodily Injury is unlimited.</span></li></ul><p></p>",
            "beneficiaries": false,
            "max_beneficiaries": 1,
            "provider_id": 2,
            "logo_url": "logo.png",
            "enable": true,
            "created_at": "2022-04-06T14:01:52.000000Z",
            "updated_at": "2022-04-09T09:58:16.000000Z",
            "service_id": 6,
            "product_class_id": 0
        },
        {
            "id": 9,
            "name": "Third Party Motor (Truck)",
            "details": "<div><strong>Third-Party Motor Insurance Plan (Truck)</strong></div><div><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\"><br></span></div><div><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">Third-Party Motor Insurance Plan covers the insured's (policyholder)&nbsp;</span><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">legal liabilities for death and bodily injuries to third&nbsp;</span><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">parties and third-party property damage.</span></div><div><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\"><br></span></div><div><em><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">Note: Motor insurance is one of the compulsory insurance classes that anyone who owns or uses a motor vehicle on the public highway must have.</span></em><br><strong>​<br></strong></div><div><strong>Price</strong></div><div>#25,000 per year</div><div><br></div><div><strong><span style=\"text-align: var(--bs-body-text-align);\">What Is Covered?</span></strong></div><p></p><ul><li><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">Property Damage limit is 1 million naira.</span></li><li><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">Bodily Injury is unlimited.</span></li></ul><p></p>",
            "beneficiaries": false,
            "max_beneficiaries": 1,
            "provider_id": 2,
            "logo_url": "logo.png",
            "enable": true,
            "created_at": "2022-04-06T14:01:52.000000Z",
            "updated_at": "2022-04-09T10:02:43.000000Z",
            "service_id": 6,
            "product_class_id": 0
        },
        {
            "id": 10,
            "name": "Third Party Motor (Bikes and Tricycles)",
            "details": "<div><strong>Third-Party Motor Insurance Plan (Bikes and Tricycles)</strong></div><div><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\"><br></span></div><div><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">Third-Party Motor Insurance Plan covers the insured's (policyholder)&nbsp;</span><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">legal liabilities for death and bodily injuries to third&nbsp;</span><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">parties and third-party property damage.</span></div><div><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\"><br></span></div><div><em><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">Note: Motor insurance is one of the compulsory insurance classes that anyone who owns or uses a motor vehicle on the public highway must have.</span></em><br><strong>​<br></strong></div><div><strong>Price</strong></div><div>#1,500 per year</div><div><br></div><div><strong><span style=\"text-align: var(--bs-body-text-align);\">What Is Covered?</span></strong></div><p></p><ul><li><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">Property Damage limit is 1 million naira.</span></li><li><span style=\"font-weight: var(--bs-body-font-weight); text-align: var(--bs-body-text-align);\">Bodily Injury is unlimited.</span></li></ul><p></p>",
            "beneficiaries": true,
            "max_beneficiaries": 1,
            "provider_id": 2,
            "logo_url": "logo.png",
            "enable": true,
            "created_at": "2022-04-06T14:01:52.000000Z",
            "updated_at": "2022-04-09T10:05:24.000000Z",
            "service_id": 6,
            "product_class_id": 0
        }
    ]
}
```
{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="PHP" %}
{% code overflow="wrap" lineNumbers="true" %}
```php
<?php

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => 'https://sandbox.insurpass.com/api/merchant/third_party_products',
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => '',
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 0,
  CURLOPT_FOLLOWLOCATION => true,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => 'GET',
  CURLOPT_HTTPHEADER => array(
    'Authorization: Bearer {{SECRETKEY}}'
  ),
));

$response = curl_exec($curl);

curl_close($curl);
echo $response;
```
{% endcode %}
{% endtab %}

{% tab title="NODE JS" %}
{% code overflow="wrap" lineNumbers="true" %}
```javascript
var axios = require('axios');
var data = '';

var config = {
  method: 'get',
  url: 'https://sandbox.insurpass.com/api/merchant/third_party_products',
  headers: { 
    'Authorization': 'Bearer {{SECRETKEY}}'
  },
  data: data
};

axios(config)
.then(function (response) {
  console.log(JSON.stringify(response.data));
})
.catch(function (error) {
  console.log(error);
});
```
{% endcode %}
{% endtab %}

{% tab title="CURL" %}
{% code overflow="wrap" %}
```clike
curl --location --request GET https://sandbox.insurpass.com/api/merchant/third_party_products' \
--header 'Authorization: Bearer {{SECRETKEY}}' \
--header 'Accept: application/json' \
--data-raw ''
```
{% endcode %}
{% endtab %}
{% endtabs %}
