Skip to content
MD Live logoMD Live logoMD Live Developer API

Insurances

To add or update an insurance payer to a patient, make a request to:

POST {server_url}/api/v1/patients/{patient_id}/insurances

This request must include a valid User JWT token, please see our documentation.

Parameter Default
Content-type application/json
Accept application/json
Authorization Bearer {jwttoken}
Parameter Required Description
patient_id true MD Live ID for patient
Parameter Type Required Description
insurance object true Object containing insurance information
↳  insurance_detail object true Object containing patient’s insurance details
↳↳  insurance_payer_id integer true MD Live ID of the insurance payer
↳↳  member_id string true Patient’s Insurance Member ID
↳↳  is_dependent boolean true Patient’s coverage type
↳  primary_insurance_details object false (true if dependent) Object containing primary insurance details
↳↳  first_name string false (true if dependent) Primary member’s first name
↳↳  last_name string false (true if dependent) Primary member’s last name
↳↳  gender string false (true if dependent) Primary member’s gender
↳↳  dob string false (true if dependent) Primary member’s birthdate
↳↳  member_id string false (true if dependent) Primary member’s Insurance Member ID
Terminal window
curl -X POST {server_url}/api/v1/patients/{patient_id}/insurances
-H "Content-type: application/json"
-H "Authorization: Bearer {jwt_token}"
-H "Accept: application/json"
-d '{
"insurance": {
"insurance_details": {
"insurance_payer_id": 27,
"member_id": "MDL684088116",
"is_dependent": false
},
"primary_insurance_details": {
"relationship": "",
"first_name": "",
"last_name": "",
"gender": "",
"dob": "",
"member_id": ""
}
}
}'

When the patient is eligible for telemedicine visits, the above command returns JSON structured like this:

{
"insurance": {
"eligibility_errors": [],
"eligible": true,
"id": 2,
"insurance_payer_id": 27,
"is_dependent": false,
"member_id": "MDL684088116",
"primary_insurance": null
}
}

When the patient is ineligible for telemedicine visits, the above command returns JSON structured like this:

{
"insurance": {
"eligibility_errors": [
{
"code": "incorrect_subscriber_id",
"message": "Invalid/Missing Subscriber/Insured ID"
}
],
"eligible": false,
"id": 2,
"insurance_payer_id": 27,
"is_dependent": false,
"member_id": "MDL684088116",
"primary_insurance": null
}
}