Skip to main content

Policies

Deprecated

This API is deprecated and not available for new integrations. Contact the OneAssure team if you have questions about existing usage.

Policy endpoints are used to retrieve policy details

Get Policies

Retrieves all policies in a specific date range or session id

Request

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

Query Parameters

FieldTypeRequiredDescription
session_idstringNoUnique identifier for the session where policy details are stored and tracked
start_datestringNoThe start of the date range for filtering policies, in YYYY-MM-DD format.
end_datestringNoThe end of the date range for filtering policies, 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

{
"policies": [
{
"session_id": "18kfaYY6UvClEx35",
"policy_id": "18kfaYY6UvClEx35",
"insurer_policy_number": "31-24-0134728-00",
"status": "ISSUED",
"issuance_date": "2024-10-08",
"expiry_date": "2025-10-07",
"sum_insured": "1000000",
"policy_type": "FRESH",
"tenure": 1,
"gross_premium": "10417.00",
"insurer_id": "18kfaYY6UvClEx35",
"insurer_name": "ICICI Lombard",
"insurer_logo": "https://cdn.oasr.in/oa-site/cms-uploads/media/thumbnail_ABHI_logo_d425a45a55.jpg",
"product_id": "18kfaYY6UvClEx35",
"product_name": "ICICI Lombard Health Insurance",
"variant_id": "18kfaYY6UvClEx35",
"variant_name": "ICICI Lombard Health Insurance",
"previous_policy_id": "18kfaYY6UvClEx35",
"proposer_details": {
"address_line_1": "123, 1st Lane",
"address_line_2": "3rd Main Street",
"city": "Bangalore",
"state": "Karnataka",
"country": "India",
"pincode": "560008",
"dob": "1990-01-01",
"email": "john.doe@example.com",
"name": "John Doe",
"phone": "9848488484",
"bank_id": "18kfaYY6UvClEx35",
"bank_account_number": "1234567890",
"bank_name": "ICICI Bank",
"branch_id": "18kfaYY6UvClEx35",
"branch_name": "Bangalore Branch",
"ifsc_code": "ICIC0000001"
},
"insured_members": [
{
"member_id": "18kfaYY6UvClEx35",
"dob": "1990-01-01",
"gender": "Male",
"name": "John Doe",
"pre_existing_diseases": ["Hypertension"],
"relationship": "SELF"
}
],
"nominees": [
{
"nominee_id": "18kfaYY6UvClEx35",
"nominee_name": "John Doe",
"nominee_phone": "9848488484",
"relationship": "Spouse"
}
],
"riders": [
{
"id": "18ceBvygbS2tjQlE",
"name": "Cancer Booster"
}
],
"proposal_id": "18kfaYY6UvClEx35",
"quote_id": "18kfaYY6UvClEx35"
}
],

"end_cursor": "18q79YF6b8aprZse",
"start_cursor": "18qFYnYsTGJR5uDb",
"has_prev": false,
"has_next": true,
"total_count": 35
}

Response Fields

FieldTypeOptionalDescription
session_idstringYesSession ID of the policy otherwise null
policiesarrayNoArray of policy objects
has_nextbooleanNoWhether there are more policies available in next page
has_prevbooleanNoWhether there are more policies available in previous page
countnumberNoTotal number of policies
end_cursorstringNoCursor pointing to the end of current page results
start_cursorstringNoCursor pointing to the start of current page results

Policy Object Fields

FieldTypeOptionalDescription
session_idstringYesSession ID of the policy otherwise null
insurer_logostringNoURL to the insurer's logo
insurer_idstringNoUnique identifier for the insurer
insurer_namestringNoName of the insurance company
policy_numberstringNoUnique policy number
product_idstringNoUnique identifier for the insurance product
product_namestringNoName of the insurance product
statusstringNoCurrent status of the policy
variant_idstringNoUnique identifier for the product variant
variant_namestringNoName of the product variant
insured_membersarrayNoDetails of insured members (see Insured Members table below)
nomineesarrayNoDetails of nominees (see Nominee Fields table below)
ridersarrayNoList of selected riders (see Rider Fields table below)
previous_policy_idstringYesID of the previous policy if any otherwise null
expiry_datestringNoPolicy expiry date in YYYY-MM-DD format
issuance_datestringNoPolicy issuance date in YYYY-MM-DD format
insurer_policy_numberstringNoPolicy number from the insurer
policy_typestringNoType of policy (e.g., "FRESH")
sum_insuredstringNoTotal sum insured amount in INR
tenurenumberNoPolicy tenure in years
gross_premiumstringNoTotal premium amount in INR
proposal_idstringYesUnique identifier for the proposal if any otherwise null
quote_idstringYesUnique identifier for the quote if any otherwise null

Proposer Details Fields

FieldTypeOptionalDescription
addressobjectNoAddress object (see Address Fields table below)
dobstringNoDate of birth in YYYY-MM-DD format
emailstringYesEmail address of the proposer otherwise null
namestringNoFull name of the proposer
phonestringNoPhone number of the proposer
bank_detailsobjectYesBank details object (see Bank Details Fields table below)

Address Fields

FieldTypeOptionalDescription
address_line_1stringNoComplete address of the proposer
address_line_2stringYesAdditional address line of the proposer
pincodestringNo6-digit postal code
citystringNoCity of the proposer
statestringNoState of the proposer
countrystringNoCountry of the proposer

Bank Details Fields

FieldTypeOptionalDescription
bank_idstringNoUnique identifier for the bank
bank_account_numberstringNoBank account number
bank_namestringNoName of the bank
branch_idstringNoUnique identifier for the branch
branch_namestringNoName of the branch
ifsc_codestringNoIFSC code of the bank branch

Insured Members Fields

FieldTypeOptionalDescription
member_idstringNoUnique identifier for the member
dobstringNoDate of birth in YYYY-MM-DD format
genderstringNoGender of the insured member
namestringNoFull name of the member
pre_existing_diseasesarrayYesList of pre-existing diseases if any
relationshipstringNoRelationship with the proposer

Nominee Fields

FieldTypeOptionalDescription
nominee_idstringNoUnique identifier for the nominee
nominee_namestringNoFull name of the nominee
nominee_phonestringYesPhone number of the nominee otherwise null
relationshipstringNoRelationship with the insured member

Rider Fields

FieldTypeOptionalDescription
idstringNoUnique identifier for the rider
namestringNoName of the rider

Get Policy By Id

Retrieves a policy by its unique identifier

Request

GET /v1/business/health/policies/:id

URL Parameters

FieldTypeRequiredDescription
idstringYesUnique identifier for the policy
note

The id paramter can either be the Oneassure policy id or the insurer policy number.

Response

{
"policy": {
"session_id": "18kfaYY6UvClEx35",
"policy_id": "18kfaYY6UvClEx35",
"insurer_policy_number": "31-24-0134728-00",
"status": "ISSUED",
"issuance_date": "2024-10-08",
"expiry_date": "2025-10-07",
"sum_insured": "1000000",
"policy_type": "FRESH",
"tenure": 1,
"gross_premium": "10417.00",
"insurer_id": "18kfaYY6UvClEx35",
"insurer_name": "ICICI Lombard",
"insurer_logo": "https://cdn.oasr.in/oa-site/cms-uploads/media/thumbnail_ABHI_logo_d425a45a55.jpg",
"product_id": "18kfaYY6UvClEx35",
"product_name": "ICICI Lombard Health Insurance",
"variant_id": "18kfaYY6UvClEx35",
"variant_name": "ICICI Lombard Health Insurance",
"previous_policy_id": "18kfaYY6UvClEx35",
"proposer_details": {
"address_line_1": "123, 1st Lane",
"address_line_2": "3rd Main Street",
"dob": "1990-01-01",
"email": "john.doe@example.com",
"name": "John Doe",
"phone": "9848488484",
"pincode": "560008",
"bank_id": "18kfaYY6UvClEx35",
"bank_account_number": "1234567890",
"bank_name": "ICICI Bank",
"branch_id": "18kfaYY6UvClEx35",
"branch_name": "Bangalore Branch",
"ifsc_code": "ICIC0000001",
"city": "Bangalore",
"state": "Karnataka",
"country": "India"
},
"insured_members": [
{
"member_id": "18kfaYY6UvClEx35",
"dob": "1990-01-01",
"gender": "Male",
"name": "John Doe",
"pre_existing_diseases": ["Hypertension"],
"relationship": "SELF"
}
],
"nominees": [
{
"nominee_id": "18kfaYY6UvClEx35",
"nominee_name": "John Doe",
"nominee_phone": "9848488484",
"relationship": "Spouse"
}
],
"riders": [
{
"id": "18ceBvygbS2tjQlE",
"name": "Cancer Booster"
}
],
"proposal_id": "18kfaYY6UvClEx35",
"quote_id": "18kfaYY6UvClEx35"
}
}

Response Fields

FieldTypeOptionalDescription
policyobjectNoPolicy object

Policy Object Fields

FieldTypeOptionalDescription
session_idstringYesSession ID of the policy otherwise null
insurer_logostringNoURL to the insurer's logo
insurer_idstringNoUnique identifier for the insurer
insurer_namestringNoName of the insurance company
policy_numberstringNoUnique policy number
product_idstringNoUnique identifier for the insurance product
product_namestringNoName of the insurance product
statusstringNoCurrent status of the policy
variant_idstringNoUnique identifier for the product variant
variant_namestringNoName of the product variant
insured_membersarrayNoDetails of insured members (see Insured Members table below)
nomineesarrayNoDetails of nominees (see Nominee Fields table below)
ridersarrayNoList of selected riders (see Rider Fields table below)
previous_policy_idstringYesID of the previous policy if any otherwise null
expiry_datestringNoPolicy expiry date in YYYY-MM-DD format
issuance_datestringNoPolicy issuance date in YYYY-MM-DD format
insurer_policy_numberstringNoPolicy number from the insurer
policy_typestringNoType of policy (e.g., "FRESH")
sum_insuredstringNoTotal sum insured amount in INR
tenurenumberNoPolicy tenure in years
gross_premiumstringNoTotal premium amount in INR
proposal_idstringYesUnique identifier for the proposal if any otherwise null
quote_idstringYesUnique identifier for the quote if any otherwise null

Proposer Details Fields

FieldTypeOptionalDescription
address_line_1stringNoComplete address of the proposer
address_line_2stringYesAdditional address line of the proposer
dobstringNoDate of birth in YYYY-MM-DD format
emailstringYesEmail address of the proposer otherwise null
namestringNoFull name of the proposer
phonestringNoPhone number of the proposer
pincodestringNo6-digit postal code
bank_idstringYesUnique identifier for the bank otherwise null
bank_account_numberstringYesBank account number otherwise null
bank_namestringYesName of the bank otherwise null
branch_idstringYesUnique identifier for the branch otherwise null
branch_namestringYesName of the branch otherwise null
ifsc_codestringYesIFSC code of the bank branch otherwise null

Insured Members Fields

FieldTypeOptionalDescription
member_idstringNoUnique identifier for the member
dobstringNoDate of birth in YYYY-MM-DD format
genderstringNoGender of the insured member
namestringNoFull name of the member
pre_existing_diseasesarrayYesList of pre-existing diseases if any
relationshipstringNoRelationship with the proposer

Nominee Fields

FieldTypeOptionalDescription
nominee_idstringNoUnique identifier for the nominee
nominee_namestringNoFull name of the nominee
nominee_phonestringYesPhone number of the nominee otherwise null
relationshipstringNoRelationship with the insured member

Rider Fields

FieldTypeOptionalDescription
idstringNoUnique identifier for the rider
namestringNoName of the rider