Digitail API
Reminder Protocol Usages

Get a list of reminder protocol usage for a pet

1min
code examples curl location globoff 'https //developer digitail io/api/v1/reminder protocol usages?filter\[clinic id]=integer\&filter\[pet id]=integer' \\ \ header 'accept application/json' \\ \ header 'content type application/json'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/reminder protocol usages?filter\[clinic id]=integer\&filter\[pet id]=integer", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));import requests import json url = "https //developer digitail io/api/v1/reminder protocol usages?filter\[clinic id]=integer\&filter\[pet id]=integer" payload = {} headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("get", url, headers=headers, data=payload) print(response text) \<?php $curl = curl init(); curl setopt array($curl, array( curlopt url => 'https //developer digitail io/api/v1/reminder protocol usages?filter\[clinic id]=integer\&filter\[pet id]=integer', curlopt returntransfer => true, curlopt encoding => '', curlopt maxredirs => 10, curlopt timeout => 0, curlopt followlocation => true, curlopt http version => curl http version 1 1, curlopt customrequest => 'get', curlopt httpheader => array( 'accept application/json', 'content type application/json' ), )); $response = curl exec($curl); curl close($curl); echo $response; responses // successful operation { "data" \[ { "id" 1, "clinic id" 1, "reminder protocol template id" 1, "record id" 1, "pet id" 1, "vet id" 1, "treatment type id" 1, "due date" "2022 09 28t00 00 00 000z", "administration date" "2022 09 28t00 00 00 000z", "clinic" { "id" 1, "name" "animal hospital of all pets", "address" "yigal alon st 126, tel aviv yafo, 6744332, israel", "phone" "555 555 5555", "email" "clinic\@example com", "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", "language" { "id" 6, "name" "english (us)", "short name" "en us", "code" "en us" } }, "owner" { "id" 1, "first name" "john", "last name" "doe", "full name" "john doe", "name with title" "dr john doe", "email" "vet\@example com", "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, "colleague order" 1, "is visible on calendar" false, "employees" \[ { "clinic id" 0, "vet role id" 0, "is available for appointments" false, "is visible on calendar" false, "type" "" } ] }, "vets" \[ { "id" 1, "first name" "john", "last name" "doe", "full name" "john doe", "name with title" "dr john doe", "email" "vet\@example com", "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, "colleague order" 1, "is visible on calendar" false, "employees" \[ { "clinic id" 0, "vet role id" 0, "is available for appointments" false, "is visible on calendar" false, "type" "" } ] } ], "hasgroup" false, "group id" 0, "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", "label en" "general checkup", "service details" { "clinic id" 1, "service id" 1, "duration" 30, "visible" true, "color" "#ff0000", "order" 30, "printable files" \[ { "id" 0, "title" "" } ], "service packages" \[ { "id" 0, "name" "" } ] }, "task templates" \[ { "id" 0, "name" "" } ] } ], "reminders" \[ { "id" 1, "period" 2, "period type" 2, "notification type" 1 } ], "meetings link" "https //meetings example com", "token" "", "cash register notes" "", "sms enabled" 0, "appointment sms" 0, "appointment email" 0, "reminder appointment sms" 0, "reminder appointment email" 0, "reminder health plan sms" 0, "reminder health plan email" 0, "first availability not before" 0, "has intake" 0 }, "due date utc" "2022 09 28t00 00 00 000z", "administration date utc" "2022 09 28t00 00 00 000z", "overwritten by" 1, "is active" true, "pet" { "id" 0, "nickname" "", "species" { "id" 0, "label" "" }, "breed" { "id" 0, "label" "", "species id" 0 }, "birthday" "", "gender" "", "hormonal status" 0, "profile picture" "" }, "protocol template" { "id" 1, "name" "reminder protocol template", "clinic id" 1, "is enabled" 1, "product categories" \[ { "id" 74, "product category id" 153, "name" "stupefiante", "products" \[ { "id" 36, "name" "vaccine" } ], "created at" "2023 07 11t15 24 15 000z" } ], "service categories" \[ { "id" 62, "service category id" 1, "name" "consultaţie generală", "services" \[ { "id" 1, "name" "service with products in stock" } ], "created at" "2023 07 11t07 41 16 000z" } ], "template overwrites" \[ { "id" 0, "name" "" } ], "template overwritten by" \[ { "id" 0, "name" "" } ], "intervals" \[ { "id" 0, "duration" 0, "unit" "", "time to in days" 0 } ], "created at" "2023 06 27t15 12 43 000000z", "updated at" "2023 06 27t15 12 43 000000z" }, "protocol usage items" \[ { "id" 1, "reminder protocol id" 1, "reminder protocol usage itemable id" 1, "reminder protocol usage itemable type" "app\\\\\\\models\\\\\\\treatment", "reminder protocol usage itemable" { "name" "product #9911", "batch number" "test batch 1123", "manufacturer" "test manufacturer", "rabic tag number" "rabic #12121", "expiration date" "2023 11 22t00 00 00 000z", "printed files" \[ { "id" 1, "name" "test certificate", "title" "test title", "real name" "test real name pdf", "printable file id" 1, "vet id" 6, "patient id" 2, "created at" "2023 09 14t11 26 45 000000z" } ] } } ] } ], "links" {}, "meta" {} }// the request was invalid or contained data that was not allowed { "message" "requested filter(s) `filter1` are not allowed allowed filter(s) are date, query, " }// the user is not authorized to perform the requested operation // the user has sent too many requests in a given amount of time ("rate limiting") max 200 requests per minute