Animal Health Data Store - V1 API Documentation
AHDS Store API (1.0)
https://docs.heydonto.com/_mock/apis/animal-health/openapi/
http://localhost:8083/
Canonical unique identifier for the insurance record.
Reference to the policy holder contact.
- 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 POST \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/insurance' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"insuranceId": "123e4567-e89b-12d3-a456-426614174000",
"policyNumber": "string",
"provider": {
"code": "string",
"system": "string",
"display": "string"
},
"animalId": "123e4567-e89b-12d3-a456-426614174000",
"contactId": "123e4567-e89b-12d3-a456-426614174000",
"coverageType": {
"code": "string",
"system": "string",
"display": "string"
},
"effectiveDate": "2025-01-01",
"expiryDate": "2025-01-01",
"isActive": true,
"extensions": {}
}'Insurance created 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": "string", "provider": { "code": "string", "system": "string", "display": "string" }, "animalId": "123e4567-e89b-12d3-a456-426614174000", "contactId": "123e4567-e89b-12d3-a456-426614174000", "coverageType": { "code": "string", "system": "string", "display": "string" }, "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": {} }
- 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": "string", "provider": { "code": "string", "system": "string", "display": "string" }, "animalId": "123e4567-e89b-12d3-a456-426614174000", "contactId": "123e4567-e89b-12d3-a456-426614174000", "coverageType": { "code": "string", "system": "string", "display": "string" }, "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": "string",
"provider": {
"code": "string",
"system": "string",
"display": "string"
},
"animalId": "123e4567-e89b-12d3-a456-426614174000",
"contactId": "123e4567-e89b-12d3-a456-426614174000",
"coverageType": {
"code": "string",
"system": "string",
"display": "string"
},
"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": "string", "provider": { "code": "string", "system": "string", "display": "string" }, "animalId": "123e4567-e89b-12d3-a456-426614174000", "contactId": "123e4567-e89b-12d3-a456-426614174000", "coverageType": { "code": "string", "system": "string", "display": "string" }, "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 insured animal.
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 PUT \
'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": "string",
"provider": {
"code": "string",
"system": "string",
"display": "string"
},
"animalId": "123e4567-e89b-12d3-a456-426614174000",
"contactId": "123e4567-e89b-12d3-a456-426614174000",
"coverageType": {
"code": "string",
"system": "string",
"display": "string"
},
"effectiveDate": "2025-01-01",
"expiryDate": "2025-01-01",
"isActive": true,
"extensions": {}
}'Insurance replaced 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": "string", "provider": { "code": "string", "system": "string", "display": "string" }, "animalId": "123e4567-e89b-12d3-a456-426614174000", "contactId": "123e4567-e89b-12d3-a456-426614174000", "coverageType": { "code": "string", "system": "string", "display": "string" }, "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": {} }
- 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 DELETE \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/insurance/{insuranceId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'