Pre-Auth Registration

Registers a pre-authorization request and returns normalized registration data.

POST /pre-auth-registration

Inputs

namerequiredintypealiasesdefaultdescription
insuranceyesquerystringinsInsurance slug (ma, razi, asia, ... , dana).
policy_idyesbodyintpolicyIdPolicy identifier.
insured_person_policy_ver_nonobodyintinsuredPersonPolicyVerNo1Insured person policy version number.
insured_person_idyesbodyintinsuredPersonIdInsured person identifier.
illness_descnobodystringillnessDescIllness description.
reception_datenobodystringreceptionDateReception date as Unix timestamp (preferred) or Jalali (Y/m/d). Defaults to today.
doctor_namenobodystringdoctorName''Doctor name (required for MAD, optional for Dana).
mc_specialtynobodystringmCSpecialty, mcSpecialty''Medical center specialty text (MAD flow).
doctor_codenobodystringdoctorCode, shomareNezamPezeshki, doctor_code''Doctor code (required for Dana).
takhasos_pezeshk_idnobodyinttakhasosPezeshkId, doctorSpecialtyId, takhasos_pezeshk_id0Doctor specialty ID from Dana Takhasos list (required for Dana).
commentnobodystringcommentComment.
first_insurer_idnobodyintfirstInsurerId0First insurer identifier.
is_for_accidentnobodyboolisForAccidentfalseAccident flag.
amountyesbodyfloatamountRequested amount.
illness_idyesbodyintillnessIdIllness identifier.
illness_type_idnobodyintillnessTypeId35Illness type identifier.
left_eye_dioptrenobodyfloatleftEyeDioptreLeft eye dioptre.
right_eye_dioptrenobodyfloatrightEyeDioptreRight eye dioptre.

Response Format

pathtypedescription
okboolTrue on success.
errorstring|nullError message when ok=false.
providerstringSelected provider key.
insurancestringInsurance slug.
meta.provider_statusint|nullProvider HTTP status.
data.pre_auth_idint|nullPre-auth identifier.
data.policy_idint|nullPolicy identifier.
data.insured_person_idint|nullInsured person identifier.
data.amountfloat|nullRequested amount.
data.franchisefloat|nullFranchise rate.
data.statusint|nullStatus code.

Examples

Success

Request

POST /pre-auth-registration

Response

{
    "ok": true,
    "provider": "mad",
    "insurance": "ma",
    "meta": {
        "provider_status": 200
    },
    "data": {
        "pre_auth_id": 90001,
        "policy_id": 10001,
        "insured_person_id": 123456,
        "amount": 1250000,
        "franchise": 20,
        "status": 102
    }
}

Success (Dana)

Request

POST /pre-auth-registration?insurance=dana

Response

{
    "ok": true,
    "provider": "dana",
    "insurance": "dana",
    "meta": {
        "provider_status": 200
    },
    "data": {
        "pre_auth_id": 57462348,
        "policy_id": 38889943,
        "insured_person_id": 37306159,
        "amount": 1000000,
        "franchise": 10,
        "status": null
    }
}