Animal Health Data Store - V1 API Documentation
AHDS Store API (1.0)
https://docs.heydonto.com/_mock/apis/animal-health/openapi/
http://localhost:8083/
Canonical unique identifier for the batch.
Optional client-supplied identifier for idempotency or cross-system mapping.
Identifier of the parent batch, if this batch is derived from another.
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/batch
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/batch
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/batch' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"batchId": "123e4567-e89b-12d3-a456-426614174000",
"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"
}'Batch created successfully
Canonical unique identifier for the batch.
Optional client-supplied identifier for idempotency or cross-system mapping.
Timestamp when the batch was created.
Date on which the batch expires.
Identifier of the parent batch, if this batch is derived from another.
Identifier of the product this batch belongs to.
{ "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" }
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/batch
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/batch
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/batch?page=0&pageSize=10&sortBy=createdAt&sortOrder=asc&batchType=string&clientProvidedId=123e4567-e89b-12d3-a456-426614174000&isActive=true&name=string&parentBatchId=123e4567-e89b-12d3-a456-426614174000&productId=123e4567-e89b-12d3-a456-426614174000' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/batch/{batchId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/batch/{batchId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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>'Batch found
Canonical unique identifier for the batch.
Optional client-supplied identifier for idempotency or cross-system mapping.
Timestamp when the batch was created.
Date on which the batch expires.
Identifier of the parent batch, if this batch is derived from another.
Identifier of the product this batch belongs to.
{ "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" }
Optional client-supplied identifier for idempotency or cross-system mapping.
Identifier of the parent batch, if this batch is derived from another.
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/batch/{batchId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/batch/{batchId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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"
}'Batch updated successfully
Canonical unique identifier for the batch.
Optional client-supplied identifier for idempotency or cross-system mapping.
Timestamp when the batch was created.
Date on which the batch expires.
Identifier of the parent batch, if this batch is derived from another.
Identifier of the product this batch belongs to.
{ "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" }
Optional client-supplied identifier for idempotency or cross-system mapping.
Identifier of the parent batch, if this batch is derived from another.
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/batch/{batchId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/batch/{batchId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
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"
}'Batch replaced successfully
Canonical unique identifier for the batch.
Optional client-supplied identifier for idempotency or cross-system mapping.
Timestamp when the batch was created.
Date on which the batch expires.
Identifier of the parent batch, if this batch is derived from another.
Identifier of the product this batch belongs to.
{ "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" }
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/batch/{batchId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/batch/{batchId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/batch/{batchId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'