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

Request

Fully replaces an existing Inventory Requirement. All fields must be provided.

Security
bearer
Path
siteIdnumberrequired

Site identifier

inventoryRequirementIdstringrequired

Inventory Requirement unique identifier (UUID)

Bodyapplication/jsonrequired
availableQuantitynumberrequired

Current available quantity of the product at the specified location.

extensionsobjectrequired

Vendor- or practice-specific extensions to the inventory requirement.

locationIdstringrequired

Identifier of the location (e.g., clinic, warehouse) where this requirement applies.

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

Minimum quantity threshold at which the product should be reordered.

productCodestringrequired

Practice-specific product code or SKU.

productDisplaystringrequired

Human-readable name of the product for display purposes.

productIdstringrequired

Identifier of the product this inventory requirement applies to.

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

Target quantity to have on hand at the specified location.

curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/inventory-requirement/{inventoryRequirementId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "availableQuantity": 0,
    "extensions": {},
    "locationId": "123e4567-e89b-12d3-a456-426614174000",
    "minimumQuantity": 0,
    "productCode": "string",
    "productDisplay": "string",
    "productId": "123e4567-e89b-12d3-a456-426614174000",
    "requiredQuantity": 0
  }'

Responses

Inventory Requirement replaced successfully

Bodyapplication/json
availableQuantitynumberrequired

Current available quantity of the product at the specified location.

createdAtstring(date-time)required

Timestamp when this inventory requirement record was created.

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

Vendor- or practice-specific extensions to the inventory requirement.

inventoryRequirementIdstringrequired

Canonical identifier for this inventory requirement record.

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

Identifier of the location (e.g., clinic, warehouse) where this requirement applies.

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

Minimum quantity threshold at which the product should be reordered.

productCodestringrequired

Practice-specific product code or SKU.

productDisplaystringrequired

Human-readable name of the product for display purposes.

productIdstringrequired

Identifier of the product this inventory requirement applies to.

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

Target quantity to have on hand at the specified location.

updatedAtstring(date-time)required

Timestamp when this inventory requirement record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "availableQuantity": 0, "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "inventoryRequirementId": "123e4567-e89b-12d3-a456-426614174000", "locationId": "123e4567-e89b-12d3-a456-426614174000", "minimumQuantity": 0, "productCode": "string", "productDisplay": "string", "productId": "123e4567-e89b-12d3-a456-426614174000", "requiredQuantity": 0, "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Permanently deletes a Inventory Requirement record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

inventoryRequirementIdstringrequired

Inventory Requirement unique identifier (UUID)

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

Responses

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