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

Replace with primary inventory location

Request

Fully replaces an existing With Primary Inventory Location. All fields must be provided.

Security
bearer
Path
siteIdnumberrequired

Site identifier

separationIdstringrequired

With Primary Inventory Location unique identifier (UUID)

Bodyapplication/jsonrequired
childSeparationIdstringrequired

Identifier of the child separation, if any.

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

Identifier of the associated contact entity, if any.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether this separation is currently active.

namestringrequired

Human-readable name of the separation (e.g., clinic or department name).

parentSeparationIdstringrequired

Identifier of the parent separation, if any.

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

Identifier of the primary inventory location associated with this separation.

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

High-level category of the separation (e.g., division, department).

Enum"division""department""location""other"
separationTypestringrequired

Free-text type or classification of the separation as used in the source system.

curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/with-primary-inventory-location/{separationId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "childSeparationId": "123e4567-e89b-12d3-a456-426614174000",
    "contactId": "123e4567-e89b-12d3-a456-426614174000",
    "extensions": {},
    "isActive": true,
    "name": "string",
    "parentSeparationId": "123e4567-e89b-12d3-a456-426614174000",
    "primaryInventoryLocationId": "123e4567-e89b-12d3-a456-426614174000",
    "separationCategory": "division",
    "separationType": "string"
  }'

Responses

With Primary Inventory Location replaced successfully

Bodyapplication/json
childSeparationIdstringrequired

Identifier of the child separation, if any.

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

Identifier of the associated contact entity, if any.

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

Timestamp when the separation record was created.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether this separation is currently active.

namestringrequired

Human-readable name of the separation (e.g., clinic or department name).

parentSeparationIdstringrequired

Identifier of the parent separation, if any.

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

Identifier of the primary inventory location associated with this separation.

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

High-level category of the separation (e.g., division, department).

Enum"division""department""location""other"
separationIdstringrequired

Canonical identifier for the separation (e.g., division, department).

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

Free-text type or classification of the separation as used in the source system.

updatedAtstring(date-time)required

Timestamp when the separation record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "childSeparationId": "123e4567-e89b-12d3-a456-426614174000", "contactId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "name": "string", "parentSeparationId": "123e4567-e89b-12d3-a456-426614174000", "primaryInventoryLocationId": "123e4567-e89b-12d3-a456-426614174000", "separationCategory": "division", "separationId": "123e4567-e89b-12d3-a456-426614174000", "separationType": "string", "updatedAt": "2025-01-01T00:00:00.000Z" }

Delete with primary inventory location

Request

Permanently deletes a With Primary Inventory Location record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

separationIdstringrequired

With Primary Inventory Location unique identifier (UUID)

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

Responses

With Primary Inventory Location 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