Digitail API
Visit Types
List all Visit Types
1 min
code examples curl location 'https //developer digitail io/api/v1/visit types' \\ \ 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/visit types", 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/visit types" 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/visit types', 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" 0, "clinic id" 0, "clinic group id" 0, "template id" 0, "name" "", "description" "", "category" "", "duration" 0, "is visible" false, "is notifiable" false, "color" "", "order" 0, "deposit for online booking" "", "created at" "2024 11 27t10 06 56 000000z", "printable files" \[ { "id" 0, "title" "" } ], "service packages" \[ { "id" 0, "name" "", "description" "", "unit price" "", "price" "", "price include tax" false, "tax" "" } ], "vets" \[ { "id" 0, "first name" "", "last name" "", "avatar" "", "job title" "" } ], "instances" \[ "" ], "task templates" \[ { "id" 0, "name" "" } ] } ], "links" \[ { "url" "\« previous" } ], "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 authorization token is missing or invalid // 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