Insured Person Info

Returns normalized insured person profile by cmnid (computer code).

GET /insured-person-info

Inputs

namerequiredintypealiasesdefaultdescription
insuranceyesquerystringinsInsurance slug (ma, razi, asia, ...).
cmnidyesqueryintcmnId, cmn_idInsured person computer code (cmnId).
policy_idyesqueryintpolicyIdPolicy identifier.
health_policy_insured_person_idyesqueryinthealthPolicyInsuredPersonId, policy_link_id, policyLinkIdHealth policy insured person ID (policy link ID).
illness_idnoqueryintillnessId101Illness identifier.
reception_datenoquerystringreceptionDateReception date in Jalali format (Y/m/d). Defaults to today.

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.
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

Response

{
    "ok": true,
    "provider": "mad",
    "insurance": "asia",
    "meta": {
        "provider_status": 200
    },
    "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
    }
}