> For the complete documentation index, see [llms.txt](https://milonics.gitbook.io/api-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://milonics.gitbook.io/api-documentation/insurpass-api-reference/group-insurance/claims.md).

# Claims

## Initiate Group Life Policy Claims

## This endpoint is used to initiate group life insurance policy claim

<mark style="color:green;">`POST`</mark> `https://sandbox.insurpass.com/api/merchant/group-life/claim/create-group-life-policy-claim`

#### 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                |

#### Request Body

| Name                                                      | Type     | Description                                                                   |
| --------------------------------------------------------- | -------- | ----------------------------------------------------------------------------- |
| product\_id<mark style="color:red;">\*</mark>             | String   | The unique number that identifies the group life product you're purchasig - 5 |
| group\_life\_policy\_id<mark style="color:red;">\*</mark> | String   | The unique number that identifies policy id for group life policy. - 3        |
| policy\_number<mark style="color:red;">\*</mark>          | String   | Customer's policy number IN50565948                                           |
| nature\_of\_claims<mark style="color:red;">\*</mark>      | String   | The nature of the claims being made - Medical expense                         |
| incident\_date<mark style="color:red;">\*</mark>          | yy-mm-dd | The date the incident took place. - 2021-11-20                                |
| incident\_location<mark style="color:red;">\*</mark>      | String   | The location where the incident took place. - Ajah                            |
| document<mark style="color:red;">\*</mark>                | String   | Document with prove of incident. - base64image                                |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
   "success": true,
   "response_message": "Group life policy claim initiated successfully",
   "response_code": 200,
   "data": {
       "id": 28,
       "user_id": 12,
       "product_id": 2,
       "merchant_id": 1,
       "group_life_policy_id": 1,
       "policy_number": "IN50565948",
       "nature_of_claims": "Medical expense",
       "incident_date": "2021-11-20T00:00:00.000000Z",
       "incident_location": "Ajah",
       "document": "document_BdeLVkpu5hRIonrr4qPz2zrHRC4u1EgN.jpeg",
       "status": null, 
       "deleted_at": null,
       "created_at": "2021-12-06T12:47:32.000000Z",
       "updated_at": "2021-12-06T12:47:32.000000Z"
   }
}

```

{% endtab %}
{% endtabs %}

## Get all Group Life Policy Claims

## This endpoint returns merchant group life policy claims

<mark style="color:blue;">`GET`</mark> `https://sandbox.insurpass.com/api/merchant/group-life/claim/get-merchant-claims·`

#### 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": "Group life policy claim fetched successfully",
   "response_code": 200,
   "data": {
       "current_page": 1,
       "data": [
           {
               "id": 24,
               "user_id": 12,
               "product_id": 2,
               "merchant_id": 1,
               "policy_id": 15,
               "policy_number": "IN50565948",
               "nature_of_claims": "Medical expense",
               "incident_date": "2021-11-20T00:00:00.000000Z",
               "incident_location": "Ajah",
               "document": "document_15.application/octet-stream",
               "status": true,
               "deleted_at": null,
               "created_at": "2021-12-03T10:04:57.000000Z",
               "updated_at": "2021-12-03T10:04:57.000000Z",
               "user": {
                   "id": 12,
                   "first_name": "John",
                   "middle_name": null,
                   "surname": "Doe",
                   "phone_no": "08135540787",
                   "email": "johndoed21393@gmail.com",
                   "address": null,
                   "gender": "Male",
                   "date_of_birth": "2021-02-12T00:00:00.000000Z",
                   "password": null,
                   "policy_no": "1234567",
                   "have_beneficiaries": false,
                   "enable": true,
                   "next_of_kin_full_name": null,
                   "merchant_user_id": null,
                   "user_type": "user",
                   "created_at": "2021-11-26T15:48:01.000000Z",
                   "updated_at": "2021-11-26T15:48:01.000000Z",
                                                   },
               "merchant": {
                   "id": 1,
                   "company_name": "Soretones Enterprises",
                   "email": "emmanuel.torty@insurpass.com",
                   "phone_no": "08030892639",
                   "address": "16 Muyilkuku Close, Baruwa, Ipaja, Lagos, Nigeria.",
                   "category_id": 2,
                    "username": "bimacred",
                   "enable": true,
                   "created_at": "2021-11-23T17:20:38.000000Z",
                   "updated_at": "2021-11-23T17:20:38.000000Z",
                                 }
           },

```

{% endtab %}
{% endtabs %}

## Group Life Policy Claim Details

## This endpoint return merchant group life policy claim details.

<mark style="color:blue;">`GET`</mark> `https://sandbox.insurpass.com/api/merchant/group-life/claim/group-life-policy-claim-details/IN50565948`

#### 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": "Group life policy claim fetched successfully",
   "response_code": 200,
   "data": {
       "current_page": 1,
       "data": [
           {
               "id": 24,
               "user_id": 12,
               "product_id": 2,
               "merchant_id": 1,
               "policy_id": 15,
               "policy_number": "IN50565948",
               "nature_of_claims": "Medical expense",
               "incident_date": "2021-11-20T00:00:00.000000Z",
               "incident_location": "Ajah",
               "document": "document_15.application/octet-stream",
               "status": true,
               "deleted_at": null,
               "created_at": "2021-12-03T10:04:57.000000Z",
               "updated_at": "2021-12-03T10:04:57.000000Z",
               "user": {
                   "id": 12,
                   "first_name": "John",
                   "middle_name": null,
                   "surname": "Doe",
                   "phone_no": "08135540787",
                   "email": "johndoed21393@gmail.com",
                   "address": null,
                   "gender": "Male",
                   "date_of_birth": "2021-02-12T00:00:00.000000Z",
                   "password": null,
                   "policy_no": "1234567",
                   "have_beneficiaries": false,
                   "enable": true,
                   "next_of_kin_full_name": null,
                   "merchant_user_id": null,
                   "user_type": "user",
                   "created_at": "2021-11-26T15:48:01.000000Z",
                   "updated_at": "2021-11-26T15:48:01.000000Z",
                                                   },
               "merchant": {
                   "id": 1,
                   "company_name": "Soretones Enterprises",
                   "email": "emmanuel.torty@insurpass.com",
                   "phone_no": "08030892639",
                   "address": "16 Muyilkuku Close, Baruwa, Ipaja, Lagos, Nigeria.",
                   "category_id": 2,
                    "username": "bimacred",
                   "enable": true,
                   "created_at": "2021-11-23T17:20:38.000000Z",
                   "updated_at": "2021-11-23T17:20:38.000000Z",
                                 }
           },

```

{% endtab %}
{% endtabs %}
