Animal Health Data Store - V1 API Documentation
AHDS Store API (1.0)
https://docs.heydonto.com/_mock/apis/animal-health/openapi/
http://localhost:8083/
Identifier of the product whose stock is affected.
Identifier for the stock separation/batch/location if applicable.
Canonical identifier for this stock transaction.
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-transaction
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/stock-transaction
- 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/stock-transaction' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"extensions": {},
"isActive": true,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": {
"value": 0,
"unit": "string",
"system": "string"
},
"separationId": "123e4567-e89b-12d3-a456-426614174000",
"shouldAlterStock": true,
"status": "pending",
"stockTransactionId": "123e4567-e89b-12d3-a456-426614174000",
"subject": {},
"transactedAt": "2025-01-01T00:00:00.000Z"
}'Stock Transaction created successfully
Timestamp when the stock transaction record was created.
Identifier of the product whose stock is affected.
Identifier for the stock separation/batch/location if applicable.
Indicates whether this transaction should alter on-hand stock levels.
Status of the stock transaction.
Canonical identifier for this stock transaction.
Timestamp when the stock transaction record was last updated.
{ "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "productId": "123e4567-e89b-12d3-a456-426614174000", "quantity": { "value": 0, "unit": "string", "system": "string" }, "separationId": "123e4567-e89b-12d3-a456-426614174000", "shouldAlterStock": true, "status": "pending", "stockTransactionId": "123e4567-e89b-12d3-a456-426614174000", "subject": {}, "updatedAt": "2025-01-01T00:00:00.000Z", "transactedAt": "2025-01-01T00:00:00.000Z" }
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-transaction
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/stock-transaction
- 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/stock-transaction?page=0&pageSize=10&sortBy=createdAt&sortOrder=asc&isActive=true&productId=123e4567-e89b-12d3-a456-426614174000&separationId=123e4567-e89b-12d3-a456-426614174000&shouldAlterStock=true&status=pending' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-transaction/{stockTransactionId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/stock-transaction/{stockTransactionId}
- 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/stock-transaction/{stockTransactionId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Stock Transaction found
Timestamp when the stock transaction record was created.
Identifier of the product whose stock is affected.
Identifier for the stock separation/batch/location if applicable.
Indicates whether this transaction should alter on-hand stock levels.
Status of the stock transaction.
Canonical identifier for this stock transaction.
Timestamp when the stock transaction record was last updated.
{ "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "productId": "123e4567-e89b-12d3-a456-426614174000", "quantity": { "value": 0, "unit": "string", "system": "string" }, "separationId": "123e4567-e89b-12d3-a456-426614174000", "shouldAlterStock": true, "status": "pending", "stockTransactionId": "123e4567-e89b-12d3-a456-426614174000", "subject": {}, "updatedAt": "2025-01-01T00:00:00.000Z", "transactedAt": "2025-01-01T00:00:00.000Z" }
Identifier of the product whose stock is affected.
Identifier for the stock separation/batch/location if applicable.
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-transaction/{stockTransactionId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/stock-transaction/{stockTransactionId}
- 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/stock-transaction/{stockTransactionId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"extensions": {},
"isActive": true,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": {
"value": 0,
"unit": "string",
"system": "string"
},
"separationId": "123e4567-e89b-12d3-a456-426614174000",
"shouldAlterStock": true,
"status": "pending",
"subject": {},
"transactedAt": "2025-01-01T00:00:00.000Z"
}'Stock Transaction updated successfully
Timestamp when the stock transaction record was created.
Identifier of the product whose stock is affected.
Identifier for the stock separation/batch/location if applicable.
Indicates whether this transaction should alter on-hand stock levels.
Status of the stock transaction.
Canonical identifier for this stock transaction.
Timestamp when the stock transaction record was last updated.
{ "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "productId": "123e4567-e89b-12d3-a456-426614174000", "quantity": { "value": 0, "unit": "string", "system": "string" }, "separationId": "123e4567-e89b-12d3-a456-426614174000", "shouldAlterStock": true, "status": "pending", "stockTransactionId": "123e4567-e89b-12d3-a456-426614174000", "subject": {}, "updatedAt": "2025-01-01T00:00:00.000Z", "transactedAt": "2025-01-01T00:00:00.000Z" }
Identifier of the product whose stock is affected.
Identifier for the stock separation/batch/location if applicable.
Indicates whether this transaction should alter on-hand stock levels.
Status of the stock transaction.
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-transaction/{stockTransactionId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/stock-transaction/{stockTransactionId}
- 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/stock-transaction/{stockTransactionId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"extensions": {},
"isActive": true,
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": {
"value": 0,
"unit": "string",
"system": "string"
},
"separationId": "123e4567-e89b-12d3-a456-426614174000",
"shouldAlterStock": true,
"status": "pending",
"subject": {},
"transactedAt": "2025-01-01T00:00:00.000Z"
}'Stock Transaction replaced successfully
Timestamp when the stock transaction record was created.
Identifier of the product whose stock is affected.
Identifier for the stock separation/batch/location if applicable.
Indicates whether this transaction should alter on-hand stock levels.
Status of the stock transaction.
Canonical identifier for this stock transaction.
Timestamp when the stock transaction record was last updated.
{ "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "isActive": true, "productId": "123e4567-e89b-12d3-a456-426614174000", "quantity": { "value": 0, "unit": "string", "system": "string" }, "separationId": "123e4567-e89b-12d3-a456-426614174000", "shouldAlterStock": true, "status": "pending", "stockTransactionId": "123e4567-e89b-12d3-a456-426614174000", "subject": {}, "updatedAt": "2025-01-01T00:00:00.000Z", "transactedAt": "2025-01-01T00:00:00.000Z" }
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-transaction/{stockTransactionId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/stock-transaction/{stockTransactionId}
- 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/stock-transaction/{stockTransactionId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'