Animal Health Data Store - V1 API Documentation
AHDS Store API (1.0)
https://docs.heydonto.com/_mock/apis/animal-health/openapi/
http://localhost:8083/
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/insurance
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/insurance
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/insurance?page=0&pageSize=10&sortBy=createdAt&sortOrder=asc&policyNumber=string&animalId=123e4567-e89b-12d3-a456-426614174000&contactId=123e4567-e89b-12d3-a456-426614174000&isActive=true' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/insurance/{insuranceId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/insurance/{insuranceId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/insurance/{insuranceId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Insurance found
Canonical unique identifier for the insurance record.
Reference to the insured animal.
Reference to the policy holder contact.
Date the policy becomes effective.
Timestamp when the insurance record was created.
Timestamp when the insurance record was last updated.
{ "insuranceId": "123e4567-e89b-12d3-a456-426614174000", "policyNumber": "example", "provider": { "code": "12345", "system": "http://example.com/codesystem", "display": "Example Display Name" }, "animalId": "123e4567-e89b-12d3-a456-426614174000", "contactId": "123e4567-e89b-12d3-a456-426614174000", "coverageType": { "code": "12345", "system": "http://example.com/codesystem", "display": "Example Display Name" }, "effectiveDate": "2025-01-01T00:00:00Z", "expiryDate": "2025-01-01T00:00:00Z", "isActive": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "extensions": {} }
Reference to the policy holder contact.
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/insurance/{insuranceId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/insurance/{insuranceId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/insurance/{insuranceId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"policyNumber": "example",
"provider": {
"code": "12345",
"system": "http://example.com/codesystem",
"display": "Example Display Name"
},
"animalId": "123e4567-e89b-12d3-a456-426614174000",
"contactId": "123e4567-e89b-12d3-a456-426614174000",
"coverageType": {
"code": "12345",
"system": "http://example.com/codesystem",
"display": "Example Display Name"
},
"effectiveDate": "2025-01-01",
"expiryDate": "2025-01-01",
"isActive": true,
"extensions": {}
}'Insurance updated successfully
Canonical unique identifier for the insurance record.
Reference to the insured animal.
Reference to the policy holder contact.
Date the policy becomes effective.
Timestamp when the insurance record was created.
Timestamp when the insurance record was last updated.
{ "insuranceId": "123e4567-e89b-12d3-a456-426614174000", "policyNumber": "example", "provider": { "code": "12345", "system": "http://example.com/codesystem", "display": "Example Display Name" }, "animalId": "123e4567-e89b-12d3-a456-426614174000", "contactId": "123e4567-e89b-12d3-a456-426614174000", "coverageType": { "code": "12345", "system": "http://example.com/codesystem", "display": "Example Display Name" }, "effectiveDate": "2025-01-01T00:00:00Z", "expiryDate": "2025-01-01T00:00:00Z", "isActive": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "extensions": {} }