Get Service Conf List
curl --request GET \
--url https://api.eka.care/schedule/service-conf/{entityId} \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/schedule/service-conf/{entityId}"
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}', 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}",
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}"
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}")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/schedule/service-conf/{entityId}")
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>"
}
],
"paymentsMeta": {
"is_elgibile_for_payments": true,
"error": "<string>"
}
}Service Configuration
Get Service Conf List
Overview
Lists the non-archived service configurations (service-conf) for an entity. entityId accepts either a doctor id or a clinic id.
GET
/
schedule
/
service-conf
/
{entityId}
Get Service Conf List
curl --request GET \
--url https://api.eka.care/schedule/service-conf/{entityId} \
--header 'auth: <auth>'import requests
url = "https://api.eka.care/schedule/service-conf/{entityId}"
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}', 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}",
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}"
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}")
.header("auth", "<auth>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.eka.care/schedule/service-conf/{entityId}")
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>"
}
],
"paymentsMeta": {
"is_elgibile_for_payments": true,
"error": "<string>"
}
}Was this page helpful?

