Insured Person Info

Returns normalized insured person profile for supported providers.

GET /insured-person-info

Inputs

namerequiredintypealiasesdefaultdescription
insuranceyesquerystringinsInsurance slug (ma, razi, asia, ... , dana).
cmnidyesquerystringcmnId, cmn_idInsured computer code (cmnId). For Dana this can also be the national code.
policy_idyesqueryintpolicyIdPolicy identifier.
health_policy_insured_person_idyesqueryinthealthPolicyInsuredPersonId, policy_link_id, policyLinkIdHealth policy insured person ID.
illness_idnoqueryintillnessId101Illness identifier.

Response Format

pathtypedescription
okboolTrue on success.
errorstring|nullError message when ok=false.
providerstringSelected provider key.
insurancestringInsurance slug.
meta.provider_statusint|nullProvider HTTP status.
meta.franshiz_rateint|nullFranshiz rate from provider.
meta.remain_amountint|nullAccessible remain amount from provider.
meta.base_insurance.idint|nullDana base insurance ID when available.
meta.base_insurance.labelstring|nullDana base insurance label when available.
meta.insurance_amountint|nullDana insurance amount (remaining ceiling) when available.
meta.base_coverage_amountint|nullDana base coverage amount when available.
meta.family_coverage_amountint|nullDana family coverage amount when available.
meta.kart_talaei_amountint|nullDana Kart Talaei amount when available.
data.cmn_idint|nullComputer code (cmnId).
data.birth_yearint|nullBirth year (Jalali).
data.gender.slugstring|nullGender slug.
data.gender.labelstring|nullGender label.
data.identity_nostring|nullIdentity number.
data.national_codestring|nullNational code.
data.first_namestring|nullFirst name.
data.last_namestring|nullLast name.
data.is_iranianbool|nullIranian citizenship flag.
data.passport_nostring|nullPassport number.
data.naturalized_codestring|nullNaturalized code.

Examples

Success

Request

GET /insured-person-info?insurance=asia&cmnid=123456&policy_id=5001&health_policy_insured_person_id=3001

Response

{
    "ok": true,
    "provider": "mad",
    "insurance": "asia",
    "meta": {
        "provider_status": 200,
        "franshiz_rate": 10,
        "remain_amount": 5000000
    },
    "data": {
        "cmn_id": 123456,
        "birth_year": 1400,
        "gender": {
            "slug": "male",
            "label": "Male"
        },
        "identity_no": "1234567890",
        "national_code": "1234567890",
        "first_name": "Example",
        "last_name": "Person",
        "is_iranian": true,
        "passport_no": null,
        "naturalized_code": null
    }
}

Success (Dana)

Request

GET /insured-person-info?insurance=dana&cmnid=1234567890&policy_id=7001&health_policy_insured_person_id=8101&illness_id=2699

Response

{
    "ok": true,
    "provider": "dana",
    "insurance": "dana",
    "meta": {
        "provider_status": 200,
        "franshiz_rate": 10,
        "remain_amount": 9956288691,
        "base_insurance": {
            "id": 780,
            "label": "Social Security"
        },
        "insurance_amount": 9956288691,
        "base_coverage_amount": 99999999999,
        "family_coverage_amount": 0,
        "kart_talaei_amount": 0
    },
    "data": {
        "cmn_id": 11078530,
        "birth_year": 1379,
        "gender": {
            "slug": "male",
            "label": "Male"
        },
        "identity_no": "1234567890",
        "national_code": "1234567890",
        "first_name": "Example",
        "last_name": "Person",
        "is_iranian": true,
        "passport_no": null,
        "naturalized_code": null
    }
}