Get appointments report
1 min
GET
https://developer.digitail.io/api/v1/reports/appointments
Query Parameters
- filter[vet_id]stringDescription
- filter[source]stringDescription
- filter[status]stringAllowedcreated_by_vetrequested_by_userrescheduled_by_vetrequested_reschedule_by_userconfirmedcanceled_by_usercanceled_by_vetauto_createdno_showpendingcompleted
- filter[date_between]string[]Description
- filter[visit_type_id]stringDescription
- filter[has_payment_deposits]booleanDescription
- sortstringDescription
Responses
200
- object
- dataobject[]
- idintegerExample
- datetime_start_utcstring<date-time>ExampleFormatdate-time
- datetime_end_utcstring<date-time>ExampleFormatdate-time
- statusstring<created_by_vet | requested_by_user | rescheduled_by_vet | requested_reschedule_by_user | confirmed | canceled_by_user | canceled_by_vet | auto_created | no_show | pending | completed>Allowedcreated_by_vetrequested_by_userrescheduled_by_vetrequested_reschedule_by_userconfirmedcanceled_by_usercanceled_by_vetauto_createdno_showpendingcompleted
- sourceintegerDescription
- petobject
- idintegerExample
- nicknamestringExample
- speciesitems
- breeditems
- pet_parentsobject[]
- idinteger
- namestring
- last_namestring
- phonestring
- addressstring
- address_2string
- emailstring
- chat_uidstring
- agestring
- archiveobjectDescription
- typestring<Deceased | Moved away | Change of owner | Other>ExampleAllowedDeceasedMoved awayChange of ownerOther
- archived_atstringExample
- reasonstringExample
- patientobject
- idinteger
- clinic_idinteger
- numberstring
- clinicobject
- idintegerExample
- namestring
- vetobject
- idintegerExample
- first_namestring
- last_namestring
- job_titlestring
- payment_depositsobject
- idinteger
- valuenumber<float>Formatfloat
- paid_valuenumber<float>Formatfloat
- statusstring<paid | pending | partially_paid>Allowedpaidpendingpartially_paid
- appointmentsitems[]
- payment_linksobject[]
- idinteger
- amountstring<float>Formatfloat
- urlstring
- guestboolean
- pet_namestring
- pet_parent_namestring
- pet_parent_emailstring
- pet_parent_phonestring
- revenuestring<float>Formatfloat
- utm_sourcestring
- servicesobject[]
- idinteger
- namestring
- last_confirmed_atstring<date-time>ExampleFormatdate-time
- confirmed_bystring<client | staff>ExampleAllowedclientstaff
- confirmation_sourcestring<phone | sms_reminder | email_reminder | pet_portal | public_calendar | crm>ExampleAllowedphonesms_reminderemail_reminderpet_portalpublic_calendarcrm
curl
curl --request GET \
--url https://developer.digitail.io/api/v1/reports/appointments \
--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("https://developer.digitail.io/api/v1/reports/appointments", 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("https://developer.digitail.io/api/v1/reports/appointments")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://developer.digitail.io/api/v1/reports/appointments"
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,
"datetime_start_utc": "2023-12-01T09:00:00.000000Z",
"datetime_end_utc": "2023-12-01T10:00:00.000000Z",
"status": "",
"source": 0,
"pet": {
"id": 1,
"nickname": "Ben",
"species": {},
"breed": {},
"pet_parents": [
{
"id": 0,
"name": "",
"last_name": "",
"phone": "",
"address": "",
"address_2": "",
"email": "",
"chat_uid": ""
}
],
"age": "",
"archive": {
"type": "Deceased",
"archived_at": "2026-01-12T00:00:00.000000Z",
"reason": "The patient was archived because..."
},
"patient": {
"id": 0,
"clinic_id": 0,
"number": ""
}
},
"clinic": {
"id": 1,
"name": ""
},
"vet": {
"id": 1,
"first_name": "",
"last_name": "",
"job_title": ""
},
"payment_deposits": {
"id": 0,
"value": "",
"paid_value": "",
"status": "",
"appointments": [
""
],
"payment_links": [
{
"id": 0,
"amount": "",
"url": ""
}
]
},
"guest": false,
"pet_name": "",
"pet_parent_name": "",
"pet_parent_email": "",
"pet_parent_phone": "",
"revenue": "",
"utm_source": "",
"services": [
{
"id": 0,
"name": ""
}
],
"last_confirmed_at": "2023-12-01T09:00:00.000000Z",
"confirmed_by": "client",
"confirmation_source": "sms_reminder"
}
]
}