-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from om-ghimire/main
added insurance and Bluebook
- Loading branch information
Showing
14 changed files
with
892 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.