Skip to content

AHDS Store API (1.0)

Animal Health Data Store - V1 API Documentation

Overview
Languages
Servers
Mock server

https://docs.heydonto.com/_mock/apis/animal-health/openapi/

Local Development

http://localhost:8083/

Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations

Request

Returns a single Insurance by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

insuranceIdstringrequired

Insurance unique identifier (UUID)

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>'

Responses

Insurance found

Bodyapplication/json
insuranceIdstringrequired

Canonical unique identifier for the insurance record.

Example: "123e4567-e89b-12d3-a456-426614174000"
policyNumberstringrequired

Insurance policy number.

Example: "example"
providerobjectrequired
provider.​codestringrequired

Code value

Example: "12345"
provider.​systemstringrequired

Code system URI

Example: "http://example.com/codesystem"
provider.​displaystring

Human-readable display

Example: "Example Display Name"
animalIdstringrequired

Reference to the insured animal.

Example: "123e4567-e89b-12d3-a456-426614174000"
contactIdstringrequired

Reference to the policy holder contact.

Example: "123e4567-e89b-12d3-a456-426614174000"
coverageTypeobjectrequired
coverageType.​codestringrequired

Code value

Example: "12345"
coverageType.​systemstringrequired

Code system URI

Example: "http://example.com/codesystem"
coverageType.​displaystring

Human-readable display

Example: "Example Display Name"
effectiveDatestring(date-time)required

Date the policy becomes effective.

Example: "2025-01-01T00:00:00Z"
expiryDatestring(date-time)required

Date the policy expires.

Example: "2025-01-01T00:00:00Z"
isActivebooleanrequired

Whether the policy is currently active.

Example: true
createdAtstring(date-time)required

Timestamp when the insurance record was created.

Example: "2025-01-01T00:00:00.000Z"
updatedAtstring(date-time)required

Timestamp when the insurance record was last updated.

Example: "2025-01-01T00:00:00.000Z"
extensionsobjectrequired

Vendor- or practice-specific extensions.

Response
application/json
{ "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": {} }

Request

Partially updates an existing Insurance. Only provided fields will be updated.

Security
bearer
Path
siteIdnumberrequired

Site identifier

insuranceIdstringrequired

Insurance unique identifier (UUID)

Bodyapplication/jsonrequired
policyNumberstring

Insurance policy number.

Example: "example"
providerobject
animalIdstring

Reference to the insured animal.

Example: "123e4567-e89b-12d3-a456-426614174000"
contactIdstring

Reference to the policy holder contact.

Example: "123e4567-e89b-12d3-a456-426614174000"
coverageTypeobject
effectiveDatestring

Date the policy becomes effective.

Example: "2025-01-01"
expiryDatestring

Date the policy expires.

Example: "2025-01-01"
isActiveboolean

Whether the policy is currently active.

Example: true
extensionsobject

Vendor- or practice-specific extensions.

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": {}
  }'

Responses

Insurance updated successfully

Bodyapplication/json
insuranceIdstringrequired

Canonical unique identifier for the insurance record.

Example: "123e4567-e89b-12d3-a456-426614174000"
policyNumberstringrequired

Insurance policy number.

Example: "example"
providerobjectrequired
provider.​codestringrequired

Code value

Example: "12345"
provider.​systemstringrequired

Code system URI

Example: "http://example.com/codesystem"
provider.​displaystring

Human-readable display

Example: "Example Display Name"
animalIdstringrequired

Reference to the insured animal.

Example: "123e4567-e89b-12d3-a456-426614174000"
contactIdstringrequired

Reference to the policy holder contact.

Example: "123e4567-e89b-12d3-a456-426614174000"
coverageTypeobjectrequired
coverageType.​codestringrequired

Code value

Example: "12345"
coverageType.​systemstringrequired

Code system URI

Example: "http://example.com/codesystem"
coverageType.​displaystring

Human-readable display

Example: "Example Display Name"
effectiveDatestring(date-time)required

Date the policy becomes effective.

Example: "2025-01-01T00:00:00Z"
expiryDatestring(date-time)required

Date the policy expires.

Example: "2025-01-01T00:00:00Z"
isActivebooleanrequired

Whether the policy is currently active.

Example: true
createdAtstring(date-time)required

Timestamp when the insurance record was created.

Example: "2025-01-01T00:00:00.000Z"
updatedAtstring(date-time)required

Timestamp when the insurance record was last updated.

Example: "2025-01-01T00:00:00.000Z"
extensionsobjectrequired

Vendor- or practice-specific extensions.

Response
application/json
{ "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": {} }

Request

Fully replaces an existing Insurance. All fields must be provided.

Security
bearer
Path
siteIdnumberrequired

Site identifier

insuranceIdstringrequired

Insurance unique identifier (UUID)

Bodyapplication/jsonrequired
policyNumberstringrequired

Insurance policy number.

Example: "example"
providerobjectrequired
provider.​codestringrequired

Code value

Example: "12345"
provider.​systemstringrequired

Code system URI

Example: "http://example.com/codesystem"
provider.​displaystring

Human-readable display

Example: "Example Display Name"
animalIdstringrequired

Reference to the insured animal.

Example: "123e4567-e89b-12d3-a456-426614174000"
contactIdstringrequired

Reference to the policy holder contact.

Example: "123e4567-e89b-12d3-a456-426614174000"
coverageTypeobjectrequired
coverageType.​codestringrequired

Code value

Example: "12345"
coverageType.​systemstringrequired

Code system URI

Example: "http://example.com/codesystem"
coverageType.​displaystring

Human-readable display

Example: "Example Display Name"
effectiveDatestringrequired

Date the policy becomes effective.

Example: "2025-01-01"
expiryDatestringrequired

Date the policy expires.

Example: "2025-01-01"
isActivebooleanrequired

Whether the policy is currently active.

Example: true
extensionsobjectrequired

Vendor- or practice-specific extensions.

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": "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": {}
  }'

Responses

Insurance replaced successfully

Bodyapplication/json
insuranceIdstringrequired

Canonical unique identifier for the insurance record.

Example: "123e4567-e89b-12d3-a456-426614174000"
policyNumberstringrequired

Insurance policy number.

Example: "example"
providerobjectrequired
provider.​codestringrequired

Code value

Example: "12345"
provider.​systemstringrequired

Code system URI

Example: "http://example.com/codesystem"
provider.​displaystring

Human-readable display

Example: "Example Display Name"
animalIdstringrequired

Reference to the insured animal.

Example: "123e4567-e89b-12d3-a456-426614174000"
contactIdstringrequired

Reference to the policy holder contact.

Example: "123e4567-e89b-12d3-a456-426614174000"
coverageTypeobjectrequired
coverageType.​codestringrequired

Code value

Example: "12345"
coverageType.​systemstringrequired

Code system URI

Example: "http://example.com/codesystem"
coverageType.​displaystring

Human-readable display

Example: "Example Display Name"
effectiveDatestring(date-time)required

Date the policy becomes effective.

Example: "2025-01-01T00:00:00Z"
expiryDatestring(date-time)required

Date the policy expires.

Example: "2025-01-01T00:00:00Z"
isActivebooleanrequired

Whether the policy is currently active.

Example: true
createdAtstring(date-time)required

Timestamp when the insurance record was created.

Example: "2025-01-01T00:00:00.000Z"
updatedAtstring(date-time)required

Timestamp when the insurance record was last updated.

Example: "2025-01-01T00:00:00.000Z"
extensionsobjectrequired

Vendor- or practice-specific extensions.

Response
application/json
{ "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": {} }
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations