Skip to main content

Quotes

You can retrieve all quotes in a specific date range using this API. This endpoint provides comprehensive details about the quotes generated.

Get Quotes

Retrieves all quotes in a specific date range.

note

A single session ID can be associated with multiple quotes as users compare different insurance options. For each quote and variant combination, only one proposal can be active at a time (meaning not in REJECTED or CANCELLED status).

Request

GET /v1/business/health/quotes?session_id={id}&start_date={YYYY-MM-DD}&end_date={YYYY-MM-DD}&next={next-cursor}&prev={prev-cursor}

Fields

FieldTypeRequiredDescription
session_idstringYesUnique identifier for the session where quote details are stored and tracked otherwise null
start_datestringNoThe start of the date range for filtering quotes, in YYYY-MM-DD format.
end_datestringNoThe end of the date range for filtering quotes, in YYYY-MM-DD format.
nextstringNoThe next cursor to paginate through the results(send the end_cursor from the response).
prevstringNoThe previous cursor to paginate through the results(send the start_cursor from the response).
note

The start_date and end_date parameters must be within a 7-day range. Requests with a date range greater than 7 days will return an error.

start_date and end_date and session_id cannot be used together at the same time.

Response

{
"quotes": [
{
"session_id": "18kdaYY6WvClEx34",
"quote_id": "18kfaYY6UvClEx35",
"sum_insured": "1000000",
"pincode": "560071",
"deductible": "0",
"total_variants": 23,
"completed_variants": 12,
"member_details": [
{
"relation": "self",
"age": 30
},
{
"relation": "daughter",
"age": 10
},
{
"relation": "daughter",
"age": 10
}
],
"plan_type": "BASE",
"customer_name": "John Doe",
"customer_phone": "9848488484",
"customer_gender": "Male",
"customer_email": "john.doe@example.com",
"recommendations": [
{
"recommendation_id": "18TzMT7LGohy13QG",
"company_id": "18TzMT7LGohy13QG",
"company_name": "ICICI Lombard",
"company_logo": "https://cdn.oasr.in/oa-site/cms-uploads/media/icici_lombard_logo_b73c659d45.jpeg",
"company_description": "ICICI Lombard",
"company_network_hospital_count": 7547,
"company_claim_settlement_ratio": 99,
"product_id": "18TzWesACxcf3fNW",
"product_name": "Elevate",
"variant_id": "18TzcpfwTP0HHPI8",
"variant_name": "Elevate",
"premium_details": [
{
"tenure": 1,
"premium": "11295"
},
{
"tenure": 2,
"premium": "21460"
},
{
"tenure": 3,
"premium": "31402"
}
],
"recommended": true
}
]
}
],
"end_cursor": "18q79YF6b8aprZse",
"start_cursor": "18qFYnYsTGJR5uDb",
"has_next": false,
"has_prev": true,
"count": 35
}

Response Fields

FieldTypeOptionalDescription
session_idstringYesSession ID of the quote otherwise null
quotesarrayNoArray of quote objects
has_nextbooleanNoWhether there are more quotes available in next page
has_prevbooleanNoWhether there are more quotes available in previous page
countnumberNoTotal number of quotes matching the criteria
end_cursorstringNoCursor pointing to the end of current page results(send the end_cursor from the response)
start_cursorstringNoCursor pointing to the start of current page results(send the start_cursor from the response)

Quote Object Fields

FieldTypeOptionalDescription
session_idstringYesUnique identifier for the session where quote details are stored and tracked otherwise null
quote_idstringNoUnique identifier for the quote
sum_insuredstringNoTotal sum insured amount in INR
pincodestringNo6-digit postal code
deductiblestringNoDeductible amount in INR
total_variantsnumberNoTotal number of variants available
completed_variantsnumberNoNumber of variants processed
member_detailsarrayNoDetails of insured members (see Member Details table below)
plan_typestringNoType of insurance plan(see Plan table below)
customer_namestringNoName of the customer
customer_phonestringNoPhone number of the customer
customer_genderstringNoGender of the customer
customer_emailstringNoEmail address of the customer
recommendationsarrayNoArray of recommended insurance products (see Recommendations table below)

Plan Type Values

ValuesDescription
BASEBase plan
SUPER_TOP_UPSuper top up plan

Member Details Fields

FieldTypeOptionalDescription
relationstringNoRelationship with the proposer
agenumberNoAge of the member

Recommendations Fields

FieldTypeOptionalDescription
recommendation_idstringNoUnique identifier for the recommendation
company_idstringNoUnique identifier for the insurance company
company_namestringNoName of the insurance company
company_logostringNoURL to the company's logo
company_descriptionstringNoBrief description of the company
company_network_hospital_countnumberNoNumber of network hospitals
company_claim_settlement_rationumberNoClaim settlement ratio percentage
product_idstringNoUnique identifier for the insurance product
product_namestringNoName of the insurance product
variant_idstringNoUnique identifier for the product variant
variant_namestringNoName of the product variant
premium_detailsarrayNoArray of premium details (see Premium Details table below)
recommendedbooleanNoWhether this is a recommended product

Premium Details Fields

FieldTypeOptionalDescription
tenurenumberNoPolicy tenure in years
premiumstringNoPremium amount in INR for the tenure

Get Quote By Id

Retrieves a quote by its unique identifier.

Request

GET /v1/business/health/quotes/:id

URL Parameters

FieldTypeRequiredDescription
idstringYesUnique identifier for the quote

Response

{
"quote": {
"session_id": "18kdaYY6WvClEx34",
"quote_id": "18kfaYY6UvClEx35",
"sum_insured": "1000000",
"pincode": "560071",
"deductible": "0",
"total_variants": 23,
"completed_variants": 12,
"member_details": [
{
"relation": "self",
"age": 30
},
{
"relation": "daughter",
"age": 10
},
{
"relation": "daughter",
"age": 10
}
],
"plan_type": "BASE",
"customer_name": "John Doe",
"customer_phone": "9848488484",
"customer_gender": "Male",
"customer_email": "john.doe@example.com",
"recommendations": [
{
"recommendation_id": "18TzMT7LGohy13QG",
"company_id": "18TzMT7LGohy13QG",
"company_name": "ICICI Lombard",
"company_logo": "https://cdn.oasr.in/oa-site/cms-uploads/media/icici_lombard_logo_b73c659d45.jpeg",
"company_description": "ICICI Lombard",
"company_network_hospital_count": 7547,
"company_claim_settlement_ratio": 99,
"product_id": "18TzWesACxcf3fNW",
"product_name": "Elevate",
"variant_id": "18TzcpfwTP0HHPI8",
"variant_name": "Elevate",
"premium_details": [
{
"tenure": 1,
"premium": "11295"
},
{
"tenure": 2,
"premium": "21460"
},
{
"tenure": 3,
"premium": "31402"
}
],
"recommended": true
}
]
}
}

Response Fields

FieldTypeOptionalDescription
quoteobjectNoQuote object

Quote Object Fields

FieldTypeOptionalDescription
session_idstringYesUnique identifier for the session where quote details are stored and tracked otherwise null
quote_idstringNoUnique identifier for the quote
sum_insuredstringNoTotal sum insured amount in INR
pincodestringNo6-digit postal code
deductiblestringNoDeductible amount in INR
total_variantsnumberNoTotal number of variants available
completed_variantsnumberNoNumber of variants processed
member_detailsarrayNoDetails of insured members (see Member Details table below)
plan_typestringNoType of insurance plan(see Plan table below)
customer_namestringNoName of the customer
customer_phonestringNoPhone number of the customer
customer_genderstringNoGender of the customer
customer_emailstringNoEmail address of the customer
recommendationsarrayNoArray of recommended insurance products (see Recommendations table below)

Plan Type Values

ValuesDescription
BASEBase plan
SUPER_TOP_UPSuper top up plan

Member Details Fields

FieldTypeOptionalDescription
relationstringNoRelationship with the proposer
agenumberNoAge of the member

Recommendations Fields

FieldTypeOptionalDescription
recommendation_idstringNoUnique identifier for the recommendation
company_idstringNoUnique identifier for the insurance company
company_namestringNoName of the insurance company
company_logostringNoURL to the company's logo
company_descriptionstringNoBrief description of the company
company_network_hospital_countnumberNoNumber of network hospitals
company_claim_settlement_rationumberNoClaim settlement ratio percentage
product_idstringNoUnique identifier for the insurance product
product_namestringNoName of the insurance product
variant_idstringNoUnique identifier for the product variant
variant_namestringNoName of the product variant
premium_detailsarrayNoArray of premium details (see Premium Details table below)
recommendedbooleanNoWhether this is a recommended product

Premium Details Fields

FieldTypeOptionalDescription
tenurenumberNoPolicy tenure in years
premiumstringNoPremium amount in INR for the tenure