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

Request

Creates a new Facility record. A physical location where veterinary services are provided (clinic, hospital, mobile unit).

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
facilityIdstringrequired

Canonical unique identifier for the facility.

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

Human-readable name of the facility.

facilityTypeobject
addressobject

Physical address of the facility.

phonestring

Primary contact phone number.

emailstring

Primary contact email.

isActiveboolean

Whether the facility is currently operational.

extensionsobject

Vendor- or practice-specific extensions.

curl -i -X POST \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/facility' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "facilityId": "123e4567-e89b-12d3-a456-426614174000",
    "name": "string",
    "facilityType": {
      "code": "string",
      "system": "string",
      "display": "string"
    },
    "address": {},
    "phone": "string",
    "email": "string",
    "isActive": true,
    "extensions": {}
  }'

Responses

Facility created successfully

Bodyapplication/json
facilityIdstringrequired

Canonical unique identifier for the facility.

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

Human-readable name of the facility.

facilityTypeobjectrequired
facilityType.​codestringrequired

Code value

facilityType.​systemstringrequired

Code system URI

facilityType.​displaystring

Human-readable display

addressobjectrequired

Physical address of the facility.

phonestringrequired

Primary contact phone number.

emailstringrequired

Primary contact email.

isActivebooleanrequired

Whether the facility is currently operational.

createdAtstring(date-time)required

Timestamp when the facility record was created.

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

Timestamp when the facility record was last updated.

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

Vendor- or practice-specific extensions.

Response
application/json
{ "facilityId": "123e4567-e89b-12d3-a456-426614174000", "name": "string", "facilityType": { "code": "string", "system": "string", "display": "string" }, "address": {}, "phone": "string", "email": "string", "isActive": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "extensions": {} }

Request

Returns a paginated list of Facilities for the specified site. Supports filtering and sorting.

Security
bearer
Path
siteIdnumberrequired

Site identifier

Query
pagenumber>= 0

Page number (0-indexed)

Default 0
pageSizenumber[ 1 .. 100 ]

Number of items per page

Default 10
sortBystring

Field to sort by

Enum"createdAt""updatedAt""name""phone""email"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
namestring

Human-readable name of the facility.

phonestring

Primary contact phone number.

emailstring

Primary contact email.

isActiveboolean

Whether the facility is currently operational.

curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/facility?page=0&pageSize=10&sortBy=createdAt&sortOrder=asc&name=string&phone=string&email=string&isActive=true' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Paginated list of Facilities

Request

Returns a single Facility by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

facilityIdstringrequired

Facility unique identifier (UUID)

curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/facility/{facilityId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Facility found

Bodyapplication/json
facilityIdstringrequired

Canonical unique identifier for the facility.

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

Human-readable name of the facility.

facilityTypeobjectrequired
facilityType.​codestringrequired

Code value

facilityType.​systemstringrequired

Code system URI

facilityType.​displaystring

Human-readable display

addressobjectrequired

Physical address of the facility.

phonestringrequired

Primary contact phone number.

emailstringrequired

Primary contact email.

isActivebooleanrequired

Whether the facility is currently operational.

createdAtstring(date-time)required

Timestamp when the facility record was created.

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

Timestamp when the facility record was last updated.

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

Vendor- or practice-specific extensions.

Response
application/json
{ "facilityId": "123e4567-e89b-12d3-a456-426614174000", "name": "string", "facilityType": { "code": "string", "system": "string", "display": "string" }, "address": {}, "phone": "string", "email": "string", "isActive": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "extensions": {} }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

facilityIdstringrequired

Facility unique identifier (UUID)

Bodyapplication/jsonrequired
namestring

Human-readable name of the facility.

facilityTypeobject
addressobject

Physical address of the facility.

phonestring

Primary contact phone number.

emailstring

Primary contact email.

isActiveboolean

Whether the facility is currently operational.

extensionsobject

Vendor- or practice-specific extensions.

curl -i -X PATCH \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/facility/{facilityId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "facilityType": {
      "code": "string",
      "system": "string",
      "display": "string"
    },
    "address": {},
    "phone": "string",
    "email": "string",
    "isActive": true,
    "extensions": {}
  }'

Responses

Facility updated successfully

Bodyapplication/json
facilityIdstringrequired

Canonical unique identifier for the facility.

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

Human-readable name of the facility.

facilityTypeobjectrequired
facilityType.​codestringrequired

Code value

facilityType.​systemstringrequired

Code system URI

facilityType.​displaystring

Human-readable display

addressobjectrequired

Physical address of the facility.

phonestringrequired

Primary contact phone number.

emailstringrequired

Primary contact email.

isActivebooleanrequired

Whether the facility is currently operational.

createdAtstring(date-time)required

Timestamp when the facility record was created.

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

Timestamp when the facility record was last updated.

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

Vendor- or practice-specific extensions.

Response
application/json
{ "facilityId": "123e4567-e89b-12d3-a456-426614174000", "name": "string", "facilityType": { "code": "string", "system": "string", "display": "string" }, "address": {}, "phone": "string", "email": "string", "isActive": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "extensions": {} }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

facilityIdstringrequired

Facility unique identifier (UUID)

Bodyapplication/jsonrequired
namestringrequired

Human-readable name of the facility.

facilityTypeobjectrequired
facilityType.​codestringrequired

Code value

facilityType.​systemstringrequired

Code system URI

facilityType.​displaystring

Human-readable display

addressobjectrequired

Physical address of the facility.

phonestringrequired

Primary contact phone number.

emailstringrequired

Primary contact email.

isActivebooleanrequired

Whether the facility is currently operational.

extensionsobjectrequired

Vendor- or practice-specific extensions.

curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/facility/{facilityId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "string",
    "facilityType": {
      "code": "string",
      "system": "string",
      "display": "string"
    },
    "address": {},
    "phone": "string",
    "email": "string",
    "isActive": true,
    "extensions": {}
  }'

Responses

Facility replaced successfully

Bodyapplication/json
facilityIdstringrequired

Canonical unique identifier for the facility.

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

Human-readable name of the facility.

facilityTypeobjectrequired
facilityType.​codestringrequired

Code value

facilityType.​systemstringrequired

Code system URI

facilityType.​displaystring

Human-readable display

addressobjectrequired

Physical address of the facility.

phonestringrequired

Primary contact phone number.

emailstringrequired

Primary contact email.

isActivebooleanrequired

Whether the facility is currently operational.

createdAtstring(date-time)required

Timestamp when the facility record was created.

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

Timestamp when the facility record was last updated.

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

Vendor- or practice-specific extensions.

Response
application/json
{ "facilityId": "123e4567-e89b-12d3-a456-426614174000", "name": "string", "facilityType": { "code": "string", "system": "string", "display": "string" }, "address": {}, "phone": "string", "email": "string", "isActive": true, "createdAt": "2025-01-01T00:00:00.000Z", "updatedAt": "2025-01-01T00:00:00.000Z", "extensions": {} }

Request

Permanently deletes a Facility record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

facilityIdstringrequired

Facility unique identifier (UUID)

curl -i -X DELETE \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/facility/{facilityId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Facility deleted successfully

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