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

Request

Creates a new Country record. Country resource in the Animal Health Data Store

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
codestringrequired

Country code, typically ISO 3166-1 alpha-2 or alpha-3.

countryIdstring

Canonical unique identifier for the country.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether this country is active/usable in the system.

namestringrequired

Localized display name of the country.

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

Responses

Country created successfully

Bodyapplication/json
codestringrequired

Country code, typically ISO 3166-1 alpha-2 or alpha-3.

countryIdstringrequired

Canonical unique identifier for the country.

Example: "123e4567-e89b-12d3-a456-426614174000"
createdAtstring(date-time)required

Timestamp when the country record was created in the source system.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether this country is active/usable in the system.

namestringrequired

Localized display name of the country.

updatedAtstring(date-time)required

Timestamp when the country record was last updated in the source system.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "code": "string", "countryId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Returns a paginated list of Countries 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""code""name"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
codestring

Country code, typically ISO 3166-1 alpha-2 or alpha-3.

isActiveboolean

Whether this country is active/usable in the system.

namestring

Localized display name of the country.

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

Responses

Paginated list of Countries

Request

Returns a single Country by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

countryIdstringrequired

Country unique identifier (UUID)

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

Responses

Country found

Bodyapplication/json
codestringrequired

Country code, typically ISO 3166-1 alpha-2 or alpha-3.

countryIdstringrequired

Canonical unique identifier for the country.

Example: "123e4567-e89b-12d3-a456-426614174000"
createdAtstring(date-time)required

Timestamp when the country record was created in the source system.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether this country is active/usable in the system.

namestringrequired

Localized display name of the country.

updatedAtstring(date-time)required

Timestamp when the country record was last updated in the source system.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "code": "string", "countryId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations