Get Service Conf Details
curl --request GET \
--url https://api.eka.care/schedule/service-conf/{entityId}/{conf_id} \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/schedule/service-conf/{entityId}/{conf_id}"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/schedule/service-conf/{entityId}/{conf_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eka.care/schedule/service-conf/{entityId}/{conf_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"auth: <auth>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eka.care/schedule/service-conf/{entityId}/{conf_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("auth", "<auth>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eka.care/schedule/service-conf/{entityId}/{conf_id}")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/schedule/service-conf/{entityId}/{conf_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"owner_id": "<string>",
"business_id": "<string>",
"conf_id": "<string>",
"service_id": 123,
"duration": 123,
"price": 123,
"eka_fee": 123,
"conv_fee": 123,
"currency": "INR",
"post_pay": true,
"pre_pay": true,
"archive": true,
"service_name": "<string>",
"book_ahead_days": 123,
"allow_patient_booking": true,
"nickname": "<string>",
"followup_validity": 123,
"appointment_type": "<string>",
"mode": [
"in-clinic"
],
"book_before_mins": 123,
"discount": 123,
"c_at": "<string>"
}
}{
"success": false
}Service Configuration
Get Service Conf Details
Overview
Fetches a single service configuration by id. entityId accepts either a doctor id or a clinic id. Unlike the list endpoint, this does not filter out archived records.
GET
/
schedule
/
service-conf
/
{entityId}
/
{conf_id}
Get Service Conf Details
curl --request GET \
--url https://api.eka.care/schedule/service-conf/{entityId}/{conf_id} \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/schedule/service-conf/{entityId}/{conf_id}"
headers = {"auth": "<auth>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {auth: '<auth>'}};
fetch('https://api.eka.care/schedule/service-conf/{entityId}/{conf_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.eka.care/schedule/service-conf/{entityId}/{conf_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"auth: <auth>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.eka.care/schedule/service-conf/{entityId}/{conf_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("auth", "<auth>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.eka.care/schedule/service-conf/{entityId}/{conf_id}")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/schedule/service-conf/{entityId}/{conf_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["auth"] = '<auth>'
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"owner_id": "<string>",
"business_id": "<string>",
"conf_id": "<string>",
"service_id": 123,
"duration": 123,
"price": 123,
"eka_fee": 123,
"conv_fee": 123,
"currency": "INR",
"post_pay": true,
"pre_pay": true,
"archive": true,
"service_name": "<string>",
"book_ahead_days": 123,
"allow_patient_booking": true,
"nickname": "<string>",
"followup_validity": 123,
"appointment_type": "<string>",
"mode": [
"in-clinic"
],
"book_before_mins": 123,
"discount": 123,
"c_at": "<string>"
}
}{
"success": false
}Was this page helpful?

