Pre-Auth List

Returns normalized pre-authorization records for a customer and insurance slug.

GET /pre-auth-list

Inputs

namerequiredintypealiasesdefaultdescription
insuranceyesquerystringinsInsurance slug (ma, razi, asia, ...).
confirm_fromyesqueryintfromConfirm date start as unix timestamp (seconds).
confirm_toyesqueryinttoConfirm date end as unix timestamp (seconds).
skipnoqueryint0Pagination offset.
topnoqueryint20Pagination size.

Response Format

pathtypedescription
okboolTrue on success.
errorstring|nullError message when ok=false.
providerstringSelected provider key.
insurancestringInsurance slug.
meta.provider_statusint|nullProvider HTTP status.
meta.countintReturned item count.
meta.totalint|nullProvider total count when available.
data[]objectNormalized pre-auth records.
data[].pre_auth_idint|nullPre-auth identifier.
data[].indexint|nullItem index in provider result.
data[].status.slugstring|nullPre-auth status slug.
data[].status.labelstring|nullPre-auth status label.
data[].confirm_dateint|nullConfirm date as unix timestamp.
data[].policy.idint|nullPolicy identifier.
data[].insured_person.full_namestring|nullInsured person full name.
data[].illness.type_slugstring|nullIllness type slug.
data[].illness.slugstring|nullIllness slug.
data[].amounts.amountfloat|nullRequested amount.
data[].flags.cancel_enabledbool|nullCancel action enabled.

Examples

Success

Request

GET /pre-auth-list?insurance=ma&confirm_from=1700000000&confirm_to=1700086400&skip=0&top=20

Response

{
    "ok": true,
    "provider": "mad",
    "insurance": "ma",
    "meta": {
        "provider_status": 200,
        "count": 1,
        "total": 1
    },
    "data": [
        {
            "pre_auth_id": 9001,
            "index": 1,
            "status": {
                "slug": "approved",
                "label": "Approved"
            },
            "confirm_date": 1700086400,
            "policy": {
                "id": 5001,
                "number": 18,
                "full_number": "12345678\/00\/000018"
            },
            "insured_person": {
                "id": 3001,
                "full_name": "Example Person",
                "national_code": "1234567890",
                "passport_no": null,
                "naturalized_code": null
            },
            "illness": {
                "type_slug": "outpatient",
                "type_label": "Outpatient",
                "slug": "lab_tests",
                "label": "Lab Tests",
                "description": "Kidney"
            },
            "customer": {
                "id": 1001,
                "full_name": "Example Customer"
            },
            "amounts": {
                "amount": 1234500,
                "paid": 0,
                "estimate": 1234500
            },
            "op_unit_name": "Example Unit",
            "deductible_rate": 10,
            "flags": {
                "has_details": false,
                "submitted_with_child": false,
                "edit_release_enabled": false,
                "print_enabled": true,
                "print_expertise_sheet_enabled": false,
                "release_enabled": false,
                "submission_for_approval_enabled": true,
                "cancel_enabled": true
            },
            "cancellation_desc": null
        }
    ]
}