API Reference
...
Pets
List all Estimates for Patient
1 min
code examples curl location globoff 'https //developer digitail io/api/v1/patients/{id}/estimates' \\ \ 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/patients/{id}/estimates", 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/patients/{id}/estimates" 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/patients/{id}/estimates', 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" 4, "clinic id" 2608, "record id" 357, "patient id" 411, "status" 1, "title" "test title", "public notes" "optio eos quisquam necessitatibus nihil omnis est earum modi rerum delectus aut ipsam sapiente eveniet aperiam ex est ", "internal notes" "tempore eaque ut nihil repellendus beatae harum et molestias et dolores quos velit omnis quos ex modi tenetur sint incidunt omnis cum ad nihil voluptas sint ", "low discount type" 0, "low discount" 0, "high discount type" 0, "high discount" 0, "treatments" \[ { "id" 16, "product id" 409, "low quantity" 1, "high quantity" 5, "low quantity unit id" 0, "high quantity unit id" 1, "status" 2, "notes" "", "low end" 0 19, "high end" 8 4, "product" {} } ], "services" \[ { "id" 15, "service package id" 43, "status" 0, "low quantity" 1, "high quantity" 1, "low end" 0, "high end" 1, "low end total" 0, "high end total" 1, "notes" "distinctio", "products" \[ {} ], "service" { "id" 43, "name" "service package #et", "category" { "id" 544, "category id" "544", "label" "general checkup" }, "price" "120 500", "discount" 0, "description" "maiores ut necessitatibus", "suggested products" \[ {} ] } } ], "low payment estimation" { "subtotal" 0, "vat" 0, "discount" 0, "total" 0 }, "high payment estimation" {}, "created at" "2023 06 16t10 47 31 000000z", "sale id" 1, "moved to sale" 1, "printed file" { "id" 9, "name" "", "title" "rabies certificate for daisy", "real name" "rabies certificate for daisy pdf", "printable file id" "1086", "vet id" "1568", "patient id" "316635", "token" "", "notified at" "2021 11 19t13 40 23 000000z", "signed at" "2021 11 19t13 40 23 000000z", "confirmed at" "2021 11 19t13 40 23 000000z", "has signature shortcode" false, "has fillable inputs" false, "type" "", "created at" "2021 11 19t13 40 23 000000z", "patient" { "id" 0, "pet id" 0, "pet" { "id" 429, "nickname" "larry", "species id" "857", "breed id" "429", "observations" "", "gender" "female", "microchip" "311010324", "crossbreed" "0", "crossbreed details id" "", "color" "chocolate", "distinctive marks" "maiores", "birthday" "1979 12 30", "gender string" "", "chip number" "311010324", "microchip location" "", "insurance number" "", "passport" "", "profile picture" "https //dev 1 public digitail s3 eu central 1 amazonaws com/mofe/uploads/ovq90hygj86f08whre8w", "description" "nr6eminzn89n8brevbtv", "constitution" "", "conformation" "", "weight" "21", "allergies" "", "nr recs" "", "blood type" "", "hormonal status" 0, "owners" \[ { "id" 705, "name" "emily", "last name" "oberbrunner", "full name" "emily oberbrunner", "email" "parent\@pet tail", "phone" "+16175551212", "secondary phone" "+16175551212", "chatuid" "", "has app" 0, "has app date" "", "enable chat without app" "0", "created at" "2023 04 18 11 53 29", "address" "71936 dimitri station apt 627\nnew britney, nj 77974 6353", "address 2" "apt 422", "city" "east terrenceton", "birthdate" "", "observations" "", "cnp" "471221487970", "chip number" "619664", "current client id" "" } ] } } } } ] }// 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, " }