Skip to main content

Proposals

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

Get Propsals

Retrieves all proposals in a specific date range or session id

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/proposals?session_id={id}&start_date={YYYY-MM-DD}&end_date={YYYY-MM-DD}&next={next-cursor}&prev={prev-cursor}

Query Parameters

FieldTypeRequiredDescription
session_idstringYesUnique identifier for the session where proposal details are stored and tracked otherwise null
start_datestringNoThe start of the date range for filtering proposals, in YYYY-MM-DD format.
end_datestringNoThe end of the date range for filtering proposals, in YYYY-MM-DD format.
nextstringNoThe next cursor to paginate through the results.
prevstringNoThe previous cursor to paginate through the results.
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

{
"proposals": [
{
"proposal_id": "19uZNZEXFRXqzH7D",
"session_id": "18kfaYY6UvClEx35",
"name": "John Doe",
"phone": "973456786",
"email": "abc@gmail.com",
"insurer_name": "ICICI Lombard",
"insurer_id": "18kfaYY6UvClEx35",
"product_name": "Elevate",
"product_id": "18kfaYY6UvClEx35",
"variant_name": "Elevate",
"variant_id": "18kfaYY6UvClEx35",
"tenure": "1",
"net_premium": "7282.20",
"gross_premium": "8593.00",
"status": "ACCEPTED",
"form_responses": {}, // TODO
"insurer_proposal_id": "",
"cancelled_reason": "Customer BMI is too high",
"rejection_reason": "Customer's daily drinking habit is too high",
"quote_id": "18kfaYY6UvClEx35"
}
],
"end_cursor": "18q79YF6b8aprZse",
"start_cursor": "18qFYnYsTGJR5uDb",
"has_next": false,
"has_prev": true,
"count": 35
}

Response Fields

FieldTypeOptionalDescription
session_idstringYesSession ID of the proposal otherwise null
proposalsarrayNoArray of proposal objects
has_nextbooleanNoWhether there are more proposals available in next page
countnumberNoTotal number of proposals matching the criteria
metadataobjectYesAdditional metadata if any
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)

Proposal Fields

FieldTypeOptionalDescription
proposal_idstringNoUnique identifier for the proposal
namestringNoName of the proposer
phonestringNoPhone number of the proposer
emailstringNoEmail address of the proposer
insurer_namestringNoName of the insurance company
insurer_idstringNoUnique identifier for the insurance company
product_namestringNoName of the insurance product
product_idstringNoUnique identifier for the insurance product
variant_namestringNoName of the product variant
variant_idstringNoUnique identifier for the product variant
tenurenumberNoPolicy tenure in years
net_premiumstringNoNet premium amount in INR
gross_premiumstringNoTotal premium amount including taxes in INR
statusstringNoCurrent status of the proposal(see status table below)
insurer_proposal_idstringYesProposal ID assigned by the insurer if any otherwise null
quote_idstringNoUnique identifier for the quote
cancelled_reasonstringYesReason for cancellation if any otherwise null
rejection_reasonstringYesReason for rejection if any otherwise null

Status Values

ValuesDescription
INITIATEDProposal has been submitted to the OneAssure internal system
PENDINGProposal has passed the initial checks and is waiting for being submitted to the insurer
SUBMITTEDProposal has been submitted to the insurer
UNDERWRITINGProposal is under underwriting review with the insurer
CANCELLEDProposal has been cancelled by the OneAssure internal system due to failing pre-underwriting checks
ACCEPTEDProposal has been accepted by the insurer
REJECTEDProposal has been rejected by the insurer
OFFLINEProposal will be processed offline

Get Proposal By Id

Retrieves a proposal by its unique identifier

Request

GET /v1/business/health/proposals/:id

URL Parameters

FieldTypeRequiredDescription
idstringYesUnique identifier for the policy

Response

{
"proposal": {
"proposal_id": "19uZNZEXFRXqzH7D",
"session_id": "18kfaYY6UvClEx35",
"name": "John Doe",
"phone": "973456786",
"email": "abc@gmail.com",
"insurer_name": "ICICI Lombard",
"insurer_id": "18kfaYY6UvClEx35",
"product_name": "Elevate",
"product_id": "18kfaYY6UvClEx35",
"variant_name": "Elevate",
"variant_id": "18kfaYY6UvClEx35",
"tenure": "1",
"net_premium": "7282.20",
"gross_premium": "8593.00",
"status": "ACCEPTED",
"form_responses": {}, // TODO
"insurer_proposal_id": "",
"cancelled_reason": "Customer BMI is too high",
"rejection_reason": "Customer's daily drinking habit is too high",
"quote_id": "18kfaYY6UvClEx35"
}
}

Response Fields

FieldTypeOptionalDescription
policyobjectNoPolicy object

Proposal Fields

FieldTypeOptionalDescription
proposal_idstringNoUnique identifier for the proposal
namestringNoName of the proposer
phonestringNoPhone number of the proposer
emailstringNoEmail address of the proposer
insurer_namestringNoName of the insurance company
insurer_idstringNoUnique identifier for the insurance company
product_namestringNoName of the insurance product
product_idstringNoUnique identifier for the insurance product
variant_namestringNoName of the product variant
variant_idstringNoUnique identifier for the product variant
tenurenumberNoPolicy tenure in years
net_premiumstringNoNet premium amount in INR
gross_premiumstringNoTotal premium amount including taxes in INR
statusstringNoCurrent status of the proposal(see status table below)
insurer_proposal_idstringYesProposal ID assigned by the insurer if any otherwise null
quote_idstringNoUnique identifier for the quote
cancelled_reasonstringYesReason for cancellation if any otherwise null
rejection_reasonstringYesReason for rejection if any otherwise null

Status Values

ValuesDescription
INITIATEDProposal has been submitted to the OneAssure internal system
PENDINGProposal has passed the initial checks and is waiting for being submitted to the insurer
SUBMITTEDProposal has been submitted to the insurer
UNDERWRITINGProposal is under underwriting review with the insurer
CANCELLEDProposal has been cancelled by the OneAssure internal system due to failing pre-underwriting checks
ACCEPTEDProposal has been accepted by the insurer
REJECTEDProposal has been rejected by the insurer
OFFLINEProposal will be processed offline