curl --request POST \
--url https://api.eka.care/dr/v1/appointment \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '{
"partner_appointment_id": "098765434567890",
"partner_clinic_id": "642783",
"partner_doctor_id": "8423994",
"partner_patient_id": "6742984",
"appointment_details": {
"start_time": 1730189586,
"end_time": 1730189586,
"mode": "INCLINIC",
"custom_attributes": {
"label": [
"vitals_submitted"
],
"tags": [
"paid",
"in_consult"
]
},
"video_connect": {
"vendor": "other",
"url": "https://xyz.com"
}
},
"patient_details": {
"designation": "Mr.",
"first_name": "Test",
"middle_name": "",
"last_name": "Patient",
"mobile": "+919999999999",
"gender": "M",
"dob": "1987-01-06",
"address": {
"city": "Bangalore",
"pincode": 560049
},
"partner_patient_id": "6742984"
},
"partner_meta": {
"encounter_id": "123"
},
"display_meta": {
"key1": "value1"
}
}'
{
"appointment_id": "{{appointment_id}}"
}
This API is used to book an appointment slot for a patient based on the available slots retrieved from the get appointment slots
API.
curl --request POST \
--url https://api.eka.care/dr/v1/appointment \
--header 'Content-Type: application/json' \
--header 'auth: <auth>' \
--data '{
"partner_appointment_id": "098765434567890",
"partner_clinic_id": "642783",
"partner_doctor_id": "8423994",
"partner_patient_id": "6742984",
"appointment_details": {
"start_time": 1730189586,
"end_time": 1730189586,
"mode": "INCLINIC",
"custom_attributes": {
"label": [
"vitals_submitted"
],
"tags": [
"paid",
"in_consult"
]
},
"video_connect": {
"vendor": "other",
"url": "https://xyz.com"
}
},
"patient_details": {
"designation": "Mr.",
"first_name": "Test",
"middle_name": "",
"last_name": "Patient",
"mobile": "+919999999999",
"gender": "M",
"dob": "1987-01-06",
"address": {
"city": "Bangalore",
"pincode": 560049
},
"partner_patient_id": "6742984"
},
"partner_meta": {
"encounter_id": "123"
},
"display_meta": {
"key1": "value1"
}
}'
{
"appointment_id": "{{appointment_id}}"
}
"auth"
The request body should contain either partner-specific fields or non-partner-specific fields for clinic and doctor identification.
OK
The response is of type object
.
Was this page helpful?