Get Clinic details by ID
1 min
GET
/api/v1/clinic/{id}
Query Parameters
- includestringDescription
Responses
200
- object
- dataClinic
- idintegerExample
- namestringExample
- addressstringExample
- phonestringExample
- emailstringExample
- streetstringExample
- street_numberstringExample
- regionstringExample
- timezonestringExample
- zipstringExample
- countryCountry
- idintegerExample
- namestringExample
- iso_codestringExample
- codestringExample
- ownerVet
- idintegerExample
- first_nameintegerExample
- last_namestringExample
- full_namestringExample
- name_with_titlestringExample
- emailstringExample
- phonestringExample
- avatarstringExample
- stampstringExample
- license_numberstringExample
- job_titlestringExample
- deleted_atstring<date-time>
- activebooleanExample
- video_linkstringExample
- public_appointment_linkstringExample
- typestring<veterinarian | technician | groomer>
- two_factor_enabledbooleanExample
- has_chat_userbooleanExampleDescription
- hasGroupboolean
- roomsRoom[]
- idintegerExample
- clinic_idintegerExample
- namestringExample
- servicesService[]
- idintegerExample
- category_idintegerExample
- labelstringExample
- translation_slugstringExample
- remindersobject[]
- idintegerExample
- periodintegerExampleDescription
- period_typeintegerExampleDescription
- notification_typeintegerExampleDescription
- meetings_linkstringExample
- tokenstring
- cash_register_notesstring
curl
curl --request GET \
--url /api/v1/clinic/{id} \
--header 'accept: application/json'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("/api/v1/clinic/{id}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("/api/v1/clinic/{id}")
http = Net::HTTP.new(url.host, url.port);
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = http.request(request)
puts response.read_body
python
import requests
import json
url = "/api/v1/clinic/{id}"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Successful operation
{
"data": {
"id": 1,
"name": "Animal Hospital of All Pets",
"address": "Yigal Alon St 126, Tel Aviv-Yafo, 6744332, Israel",
"phone": "555-555 5555",
"email": "[email protected]",
"street": "Yigal Alon Street",
"street_number": 126,
"region": "Tel Aviv District",
"timezone": "Asia/Jerusalem",
"zip": 6744332,
"country": {
"id": 6,
"name": "United States",
"iso_code": "us",
"code": "usa"
},
"owner": {
"id": 1,
"first_name": "John",
"last_name": "Doe",
"full_name": "John Doe",
"name_with_title": "Dr. John Doe",
"email": "[email protected]",
"phone": "123456789",
"avatar": "https://vet.digitail.io/images/profilepic.jpg",
"stamp": "https://vet.digitail.io/images/signature.jpg",
"license_number": "123456789",
"job_title": "Dr.",
"deleted_at": "",
"active": true,
"video_link": "https://digitail.com/video",
"public_appointment_link": "https://digitail.com/clinics/clinic-slug/vet-slug",
"type": "",
"two_factor_enabled": true,
"has_chat_user": true
},
"hasGroup": false,
"rooms": [
{
"id": 1,
"clinic_id": 1,
"name": "Consultation Room 1"
}
],
"services": [
{
"id": 1,
"category_id": 1,
"label": "General Checkup",
"translation_slug": "services.checkups.general_checkup"
}
],
"reminders": [
{
"id": 1,
"period": 2,
"period_type": 2,
"notification_type": 1
}
],
"meetings_link": "https://meetings.example.com",
"token": "",
"cash_register_notes": ""
}
}