View Patient Estimate
1 min
GET
https://developer.digitail.io/api/v1/patients/{id}/estimates/{estimate}
Path Parameters
- estimateintegerrequiredDescription
Query Parameters
- includestringDescription
Responses
200
- object
- idintegerExample
- clinic_idintegerExample
- record_idintegerExample
- recordobjectDescription
- data
- patient_idintegerExample
- statusintegerExample
- titlestringExample
- public_notesstringExample
- internal_notesstringExample
- low_discount_typeinteger
- low_discountinteger
- high_discount_typeinteger
- high_discountinteger
- treatmentsobject[]
- idintegerExample
- product_idintegerExample
- low_quantityintegerExample
- high_quantityintegerExample
- low_quantity_unit_idinteger
- high_quantity_unit_idintegerExample
- statusintegerExample
- notes
- low_endnumberExample
- low_end_without_taxnumberExample
- high_endnumberExample
- high_end_without_taxnumberExample
- productdata
- servicesobject[]
- idintegerExample
- service_package_idintegerExample
- statusinteger
- low_quantityintegerExample
- high_quantityintegerExample
- low_endnumber
- low_end_without_taxnumber
- high_endnumberExample
- high_end_without_taxnumberExample
- low_end_totalnumber
- high_end_totalnumberExample
- notesstringExample
- productsobject[]
- idintegerExample
- product_idintegerExample
- low_quantitynumberExample
- high_quantitynumberExample
- low_quantity_unit_idinteger
- high_quantity_unit_idintegerExample
- low_endnumberExample
- low_end_without_taxnumberExample
- high_endnumberExample
- high_end_without_taxnumberExample
- statusinteger
- rejection_reasoninteger
- notesstring
- productdata
- serviceobject
- idintegerExample
- namestringExample
- categoryobject
- idintegerExample
- category_idstringExample
- labelstringExample
- pricestringExampleDescription
- price_with_vatnumber<float>ExampleDescriptionFormatfloat
- price_without_vatnumber<float>ExampleDescriptionFormatfloat
- discountinteger
- descriptionstringExample
- suggested_productsobject[]
- low_payment_estimationobject
- subtotalinteger
- vatinteger
- discountinteger
- totalinteger
- high_payment_estimationlow_payment_estimation
- created_atstring<date-time>ExampleFormatdate-time
- sale_idintegerExample
- moved_to_saleintegerExample
- printed_fileobject
- idintegerExample
- namestring
- titlestringExample
- real_namestringExample
- printable_file_idstringExample
- vet_idstringExample
- patient_idstringExample
- tokenstring
- notified_atstringExample
- signed_atstringExample
- confirmed_atstringExample
- has_signature_shortcodeboolean
- has_fillable_inputsboolean
- typestring<form | certificate>Allowedformcertificate
- created_atstringExample
- patientobject
- idinteger
- pet_idinteger
- petobject
- idintegerExample
- nicknamestringExample
- species_idstringExample
- breed_idstringExample
- observationsstring
- genderstringExample
- microchipstringExample
- crossbreedstringExample
- crossbreed_details_id
- colorstringExample
- distinctive_marksstringExample
- birthdaystringExample
- gender_string
- chip_numberstringExample
- microchip_location
- insurance_number
- passportstring
- profile_picturestringExample
- descriptionstringExample
- constitution
- conformation
- weightstringExample
- allergies
- nr_recs
- blood_type
- hormonal_statusinteger
- ownersobject[]
- idintegerExample
- namestringExample
- last_namestringExample
- full_namestringExample
- emailstringExample
- phonestringExampleDescription
- secondary_phonestringExampleDescription
- chatUid
- has_appinteger
- has_app_date
- enable_chat_without_appstringExample
- created_atstringExample
- addressstringExample
- address_2stringExample
- citystringExample
- birthdate
- observationsstring
- cnpstringExample
- chip_numberstringExample
- current_client_id
curl
curl --request GET \
--url https://developer.digitail.io/api/v1/patients/{id}/estimates/{estimate} \
--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/patients/{id}/estimates/{estimate}", 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/patients/{id}/estimates/{estimate}")
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/patients/{id}/estimates/{estimate}"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// successful operation
{
"id": 4,
"clinic_id": 2608,
"record_id": 357,
"record": {},
"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,
"low_end_without_tax": 0.16,
"high_end": 8.4,
"high_end_without_tax": 7,
"product": {}
}
],
"services": [
{
"id": 15,
"service_package_id": 43,
"status": 0,
"low_quantity": 1,
"high_quantity": 1,
"low_end": 0,
"low_end_without_tax": 0,
"high_end": 1,
"high_end_without_tax": 0.84,
"low_end_total": 0,
"high_end_total": 1,
"notes": "distinctio",
"products": [
{
"id": 12,
"product_id": 409,
"low_quantity": 1,
"high_quantity": 2,
"low_quantity_unit_id": 0,
"high_quantity_unit_id": 1,
"low_end": 0.19,
"low_end_without_tax": 0.16,
"high_end": 8.4,
"high_end_without_tax": 7,
"status": 0,
"rejection_reason": 0,
"notes": "",
"product": {}
}
],
"service": {
"id": 43,
"name": "Service package #et",
"category": {
"id": 544,
"category_id": "544",
"label": "General Checkup"
},
"price": "120.500",
"price_with_vat": 120.5,
"price_without_vat": 100.42,
"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": "[email protected]",
"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": ""
}
]
}
}
}
}