Skip to content

Commit

Permalink
Merge pull request #16 from om-ghimire/main
Browse files Browse the repository at this point in the history
added insurance and Bluebook
  • Loading branch information
omG-himire authored Sep 19, 2024
2 parents 265ef39 + 19593bf commit 0d1497f
Show file tree
Hide file tree
Showing 14 changed files with 892 additions and 14 deletions.
86 changes: 86 additions & 0 deletions content/Insurance/Arhant Insurance/life.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Arhant Life Insurance

## Overview

The Arhant Life Insurance API allows users to fetch details about their life insurance policies and process payments. This multi-step API supports various life insurance products under Arhant, including Asian Life Insurance and Ime Life Insurance.

### **Type: Multi Step API**

**Below is the list of Life Insurances under Arhant and their service_slug:**

1. ##### **Asian Life Insurance : asian-life-insurance**
2. ##### **Ime Life Insurance : ime-life-insurance**

---

### 1. **Detail Fetch API**

**Request URL:** `{{url}}/api/servicegroup/details/arhant-life-insurance/`

**Request Method:** POST

**Service Params:**

<pre><code class="json">
{
"token": "token",
"policy_no": "51080000258", // User input
"dob_year": "1984", // User input
"insurance_slug": "service_slug",
"reference": "unique-reference"
}
</code></pre>

**Response:**

<pre><code class="json">
{
"request_id": "51080000258-1984",
"amount": 4803,
"properties": {
"policy_no": "51080000258",
"customer_name": "Chandra Kala Ghimire",
"address": "Fidim-4",
"product_name": "Endowment",
"premium": "4803",
"late_fee": "0",
"waive_amount": "0",
"previous_excess_short": "0.00"
},
"session_id": 8867,
"status": true
}
</code></pre>

---

### 2. **Payment API**

**Request URL:** `{{base_url}}/api/servicegroup/commit/arhant-life-insurance/`

**Request Method:** POST

**Service Params:**

<pre><code class="json">
{
"token": "token",
"session_id": "137",
"amount": "amount"
}
</code></pre>

**Response:**

<pre><code class="json">
{
"status": true,
"state": "Success",
"message": "Successfully Completed Transaction",
"extra_data": {},
"detail": "Success",
"credits_consumed": 4803,
"credits_available": 999999998060930.6,
"id": 62849
}
</code></pre>
4 changes: 1 addition & 3 deletions content/Insurance/Arhant Insurance/non_life.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
2. ##### **United Insurance**
- **Service Slug:** `united-ajod-insurance`

**API for Retrieving Proforma Details**

**Endpoint:** Retrieve Proforma Details: {{base_url}}/api/servicegroup/details/arhant-non-life-insurance/
**API for Retrieving Proforma Details** ``{{base_url}}/api/servicegroup/details/arhant-non-life-insurance/``

**Method:** POST

Expand Down
84 changes: 84 additions & 0 deletions content/Insurance/Citizen/citizen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Citizen Life Insurance

## Overview

The Citizen Life Insurance API allows users to retrieve details about their insurance policies and process payments. This multi-step API provides access to policy information and facilitates secure transactions for premium payments.

## **Type: Multi Step API**

### 1. **Detail Fetch**

**Request URL:** `{{base_url}}/api/servicegroup/details/citizen-life-insurance/`

**Request Method:** POST

**Service Params:**

<pre><code class="json">
{
"token": "token",
"reference": "Unique_Identifier",
"policy_no": "101000315",
"dob": "1976-09-22"
}
</code></pre>

**Response:**

<pre><code class="json">
{
"premium_amount": 100.0,
"customer_name": "test test1",
"address": "Malakheti",
"total_amount": 180.0,
"policy_no": "701000000052",
"product_name": "Endowment Cum Whole Life Plan - Amulya",
"fine_amount": 80.0,
"next_due_date": "2020-04-24",
"pay_mode": "Yearly",
"session_id": 994,
"status": true
}
</code></pre>

---

### 2. **Payment API**

**Request URL:** `{{base_url}}/api/servicegroup/commit/citizen-life-insurance/`

**Request Method:** POST

**Service Params:**

<pre><code class="json">
{
"reference": "Unique_identifier",
"token": "token",
"session_id": "994",
"amount": "180"
}
</code></pre>

**Response:**

<pre><code class="json">
{
"status": true,
"state": "Success",
"message": "Successfully Completed Transaction",
"extra_data": {
"assured_name": "test test1",
"fine_amount": 80.0,
"premium_amount": 100.0,
"next_due_date": "2021-04-24",
"policy_no": "701000000052",
"total_amount": 180.0,
"invoice_number": "RP30137"
},
"detail": "Successful Payment",
"credits_consumed": 180.0,
"credits_available": 9995400876.57663,
"id": 68751
}
</code></pre>
84 changes: 84 additions & 0 deletions content/Insurance/Nepal/nepal_Life_Insurace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Nepal Life Insurance

### **User Detail Fetch API**

**Request URL:** `{{base_url}}/api/servicegroup/details/nepal-life-insurance/`

**Request Method:** POST

**Service Params:**

<pre><code class="json">
{
"token": "{{TOKEN}}",
"reference": "unique reference id",
"policy_no": "401059698",
"dob": "2008-03-20"
}
</code></pre>

**Response:**

<pre><code class="json">
{
"customer_name": "TUSARA SINGH THAKURI",
"policy_no": "401059698",
"due_date": "2020-12-20",
"premium_amount": 2500.0,
"amount": 2500.0,
"fine_amount": 0.0,
"rebate_amount": 0.0,
"session_id": 102,
"status": true
}
</code></pre>

**Error Response:**

<pre><code class="json">
{
"status": false,
"error_code": "4000",
"message": "Can't fulfill request",
"error": "client_error",
"details": "Policy does not exist or not active.",
"error_data": {},
"state": "Error"
}
</code></pre>

---

### **Payment API**

**Request URL:** `{{base_url}}/api/servicegroup/commit/nepal-life-insurance/`

**Request Method:** POST

**Service Params:**

<pre><code class="json">
{
"token": "{{TOKEN}}",
"reference": "unique reference id",
"amount": 2500,
"session_id": 2121345
}
</code></pre>

**Response:**

<pre><code class="json">
{
"status": true,
"state": "Success",
"message": "Successfully Completed Transaction",
"extra_data": {
"policy_no": "401059698"
},
"detail": "Success",
"credits_consumed": 2500.0,
"credits_available": 105844058.084999,
"id": 10959
}
</code></pre>
76 changes: 76 additions & 0 deletions content/Insurance/Reliable_life.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
# Reliable Life Insurance

## Overview

The Reliable Life Insurance API facilitates a multi-step process for fetching policy details and processing payments. It enables users to retrieve information about their insurance policies and make payments for premiums.

## **Type: Multi Step API**

### 1. **Detail Fetch**

**Request URL:** `{{base_url}}/api/servicegroup/details/reliable-life-insurance/`

**Request Method:** POST

**Service Params:**

<pre><code class="json">
{
"token": "token",
"reference": "Unique_Identifier",
"policy_no": "101000000008",
"dob": "2018-09-26"
}
</code></pre>

**Response:**

<pre><code class="json">
{
"premium_amount": 100.0,
"customer_name": "test test1",
"address": "Malakheti",
"total_amount": 180.0,
"policy_no": "701000000052",
"product_name": "Endowment Cum Whole Life Plan - Amulya",
"fine_amount": 80.0,
"next_due_date": "2020-04-24",
"pay_mode": "Yearly",
"session_id": 1013,
"status": true
}
</code></pre>

---

### 2. **Payment API**

**Request URL:** `{{base_url}}/api/servicegroup/commit/reliable-life-insurance/`

**Request Method:** POST

**Service Params:**

<pre><code class="json">
{
"reference": "Unique_identifier",
"token": "token",
"session_id": "1013",
"amount": "180"
}
</code></pre>

**Response:**

<pre><code class="json">
{
"id": 70282,
"status": true,
"state": "Queued",
"detail": "Transaction Queued",
"message": "Your operation is in queue.",
"credits_consumed": 180.0,
"credits_available": 742509.83,
"extra_data": {}
}
</code></pre>
Loading

0 comments on commit 0d1497f

Please sign in to comment.