Pre-Auth Registration

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

POST /pre-auth-registration

Inputs

namerequiredintypealiasesdefaultdescription
insuranceyesquerystringinsInsurance slug (ma, razi, asia, ...).
policy_idyesbodyintpolicyIdPolicy identifier.
insured_person_policy_ver_noyesbodyintinsuredPersonPolicyVerNoInsured person policy version number.
insured_person_idyesbodyintinsuredPersonIdInsured person identifier.
illness_descnobodystringillnessDescIllness description.
reception_datenobodystringreceptionDateReception date in Jalali format (Y/m/d). Defaults to today.
doctor_nameyesbodystringdoctorNameDoctor name.
mc_specialtyyesbodystringmCSpecialty, mcSpecialtyMedical center specialty.
commentnobodystringcommentComment.
first_insurer_idyesbodyintfirstInsurerIdFirst insurer identifier.
is_for_accidentnobodyboolisForAccidentfalseAccident flag.
amountyesbodyfloatamountRequested amount.
illness_idyesbodyintillnessIdIllness identifier.
illness_type_idyesbodyintillnessTypeIdIllness 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
    }
}