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

Request

Returns a single Batch by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

batchIdstringrequired

Batch unique identifier (UUID)

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

Responses

Batch found

Bodyapplication/json
batchIdstringrequired

Canonical unique identifier for the batch.

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

Type or classification of the batch.

clientProvidedIdstringrequired

Optional client-supplied identifier for idempotency or cross-system mapping.

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

Timestamp when the batch was created.

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

Date on which the batch expires.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Indicates whether the batch is active and usable.

namestringrequired

Human-readable batch name or code.

parentBatchIdstring or nullrequired

Identifier of the parent batch, if this batch is derived from another.

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

Identifier of the product this batch belongs to.

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

Timestamp when the batch was last modified.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "batchId": "123e4567-e89b-12d3-a456-426614174000", "batchType": "string", "clientProvidedId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "expiryDate": "2025-01-01T00:00:00Z", "extensions": {}, "isActive": true, "name": "string", "parentBatchId": "123e4567-e89b-12d3-a456-426614174000", "productId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

batchIdstringrequired

Batch unique identifier (UUID)

Bodyapplication/jsonrequired
batchTypestring

Type or classification of the batch.

clientProvidedIdstring

Optional client-supplied identifier for idempotency or cross-system mapping.

Example: "123e4567-e89b-12d3-a456-426614174000"
expiryDatestring or null

Date on which the batch expires.

Example: "2025-01-01"
extensionsobject

Vendor- or practice-specific extensions.

isActiveboolean

Indicates whether the batch is active and usable.

namestring

Human-readable batch name or code.

parentBatchIdstring or null

Identifier of the parent batch, if this batch is derived from another.

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

Identifier of the product this batch belongs to.

Example: "123e4567-e89b-12d3-a456-426614174000"
curl -i -X PATCH \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/batch/{batchId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "batchType": "string",
    "clientProvidedId": "123e4567-e89b-12d3-a456-426614174000",
    "expiryDate": "2025-01-01",
    "extensions": {},
    "isActive": true,
    "name": "string",
    "parentBatchId": "123e4567-e89b-12d3-a456-426614174000",
    "productId": "123e4567-e89b-12d3-a456-426614174000"
  }'

Responses

Batch updated successfully

Bodyapplication/json
batchIdstringrequired

Canonical unique identifier for the batch.

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

Type or classification of the batch.

clientProvidedIdstringrequired

Optional client-supplied identifier for idempotency or cross-system mapping.

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

Timestamp when the batch was created.

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

Date on which the batch expires.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Indicates whether the batch is active and usable.

namestringrequired

Human-readable batch name or code.

parentBatchIdstring or nullrequired

Identifier of the parent batch, if this batch is derived from another.

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

Identifier of the product this batch belongs to.

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

Timestamp when the batch was last modified.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "batchId": "123e4567-e89b-12d3-a456-426614174000", "batchType": "string", "clientProvidedId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "expiryDate": "2025-01-01T00:00:00Z", "extensions": {}, "isActive": true, "name": "string", "parentBatchId": "123e4567-e89b-12d3-a456-426614174000", "productId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

batchIdstringrequired

Batch unique identifier (UUID)

Bodyapplication/jsonrequired
batchTypestringrequired

Type or classification of the batch.

clientProvidedIdstringrequired

Optional client-supplied identifier for idempotency or cross-system mapping.

Example: "123e4567-e89b-12d3-a456-426614174000"
expiryDatestring or null

Date on which the batch expires.

Example: "2025-01-01"
extensionsobjectrequired

Vendor- or practice-specific extensions.

isActivebooleanrequired

Indicates whether the batch is active and usable.

namestringrequired

Human-readable batch name or code.

parentBatchIdstring or null

Identifier of the parent batch, if this batch is derived from another.

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

Identifier of the product this batch belongs to.

Example: "123e4567-e89b-12d3-a456-426614174000"
curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/batch/{batchId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "batchType": "string",
    "clientProvidedId": "123e4567-e89b-12d3-a456-426614174000",
    "expiryDate": "2025-01-01",
    "extensions": {},
    "isActive": true,
    "name": "string",
    "parentBatchId": "123e4567-e89b-12d3-a456-426614174000",
    "productId": "123e4567-e89b-12d3-a456-426614174000"
  }'

Responses

Batch replaced successfully

Bodyapplication/json
batchIdstringrequired

Canonical unique identifier for the batch.

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

Type or classification of the batch.

clientProvidedIdstringrequired

Optional client-supplied identifier for idempotency or cross-system mapping.

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

Timestamp when the batch was created.

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

Date on which the batch expires.

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

Vendor- or practice-specific extensions.

isActivebooleanrequired

Indicates whether the batch is active and usable.

namestringrequired

Human-readable batch name or code.

parentBatchIdstring or nullrequired

Identifier of the parent batch, if this batch is derived from another.

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

Identifier of the product this batch belongs to.

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

Timestamp when the batch was last modified.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "batchId": "123e4567-e89b-12d3-a456-426614174000", "batchType": "string", "clientProvidedId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "expiryDate": "2025-01-01T00:00:00Z", "extensions": {}, "isActive": true, "name": "string", "parentBatchId": "123e4567-e89b-12d3-a456-426614174000", "productId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }
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