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

Request

Creates a new Inventory Supplied Product record. Inventory Supplied Product resource in the Animal Health Data Store

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
batchobject

Batch information for the supplied product.

extensionsobject

Vendor- or practice-specific extensions.

inventorySuppliedProductIdstringrequired

Canonical identifier for this supplied product record.

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

Canonical identifier of the product that was supplied.

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

Quantity of the product supplied. Must be strictly positive.

curl -i -X POST \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/inventory-supplied-product' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "batch": {},
    "extensions": {},
    "inventorySuppliedProductId": "123e4567-e89b-12d3-a456-426614174000",
    "productId": "123e4567-e89b-12d3-a456-426614174000",
    "suppliedQuantity": 0
  }'

Responses

Inventory Supplied Product created successfully

Bodyapplication/json
batchobjectrequired

Batch information for the supplied product.

createdAtstring(date-time)required

Timestamp when this supplied product record was created.

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

Vendor- or practice-specific extensions.

inventorySuppliedProductIdstringrequired

Canonical identifier for this supplied product record.

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

Canonical identifier of the product that was supplied.

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

Quantity of the product supplied. Must be strictly positive.

updatedAtstring(date-time)required

Timestamp when this supplied product record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "batch": {}, "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "inventorySuppliedProductId": "123e4567-e89b-12d3-a456-426614174000", "productId": "123e4567-e89b-12d3-a456-426614174000", "suppliedQuantity": 0, "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Returns a paginated list of Inventory Supplied Products for the specified site. Supports filtering and sorting.

Security
bearer
Path
siteIdnumberrequired

Site identifier

Query
pagenumber>= 0

Page number (0-indexed)

Default 0
pageSizenumber[ 1 .. 100 ]

Number of items per page

Default 10
sortBystring

Field to sort by

Enum"createdAt""updatedAt""suppliedQuantity"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
productIdstring

Canonical identifier of the product that was supplied.

Example: productId=123e4567-e89b-12d3-a456-426614174000
curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/inventory-supplied-product?page=0&pageSize=10&sortBy=createdAt&sortOrder=asc&productId=123e4567-e89b-12d3-a456-426614174000' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Paginated list of Inventory Supplied Products

Request

Returns a single Inventory Supplied Product by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

inventorySuppliedProductIdstringrequired

Inventory Supplied Product unique identifier (UUID)

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

Responses

Inventory Supplied Product found

Bodyapplication/json
batchobjectrequired

Batch information for the supplied product.

createdAtstring(date-time)required

Timestamp when this supplied product record was created.

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

Vendor- or practice-specific extensions.

inventorySuppliedProductIdstringrequired

Canonical identifier for this supplied product record.

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

Canonical identifier of the product that was supplied.

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

Quantity of the product supplied. Must be strictly positive.

updatedAtstring(date-time)required

Timestamp when this supplied product record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "batch": {}, "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "inventorySuppliedProductId": "123e4567-e89b-12d3-a456-426614174000", "productId": "123e4567-e89b-12d3-a456-426614174000", "suppliedQuantity": 0, "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Partially updates an existing Inventory Supplied Product. Only provided fields will be updated.

Security
bearer
Path
siteIdnumberrequired

Site identifier

inventorySuppliedProductIdstringrequired

Inventory Supplied Product unique identifier (UUID)

Bodyapplication/jsonrequired
batchobject

Batch information for the supplied product.

extensionsobject

Vendor- or practice-specific extensions.

productIdstring

Canonical identifier of the product that was supplied.

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

Quantity of the product supplied. Must be strictly positive.

curl -i -X PATCH \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/inventory-supplied-product/{inventorySuppliedProductId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "batch": {},
    "extensions": {},
    "productId": "123e4567-e89b-12d3-a456-426614174000",
    "suppliedQuantity": 0
  }'

Responses

Inventory Supplied Product updated successfully

Bodyapplication/json
batchobjectrequired

Batch information for the supplied product.

createdAtstring(date-time)required

Timestamp when this supplied product record was created.

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

Vendor- or practice-specific extensions.

inventorySuppliedProductIdstringrequired

Canonical identifier for this supplied product record.

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

Canonical identifier of the product that was supplied.

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

Quantity of the product supplied. Must be strictly positive.

updatedAtstring(date-time)required

Timestamp when this supplied product record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "batch": {}, "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "inventorySuppliedProductId": "123e4567-e89b-12d3-a456-426614174000", "productId": "123e4567-e89b-12d3-a456-426614174000", "suppliedQuantity": 0, "updatedAt": "2025-01-01T00:00:00.000Z" }

Replace inventory supplied product

Request

Fully replaces an existing Inventory Supplied Product. All fields must be provided.

Security
bearer
Path
siteIdnumberrequired

Site identifier

inventorySuppliedProductIdstringrequired

Inventory Supplied Product unique identifier (UUID)

Bodyapplication/jsonrequired
batchobjectrequired

Batch information for the supplied product.

extensionsobjectrequired

Vendor- or practice-specific extensions.

productIdstringrequired

Canonical identifier of the product that was supplied.

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

Quantity of the product supplied. Must be strictly positive.

curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/inventory-supplied-product/{inventorySuppliedProductId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "batch": {},
    "extensions": {},
    "productId": "123e4567-e89b-12d3-a456-426614174000",
    "suppliedQuantity": 0
  }'

Responses

Inventory Supplied Product replaced successfully

Bodyapplication/json
batchobjectrequired

Batch information for the supplied product.

createdAtstring(date-time)required

Timestamp when this supplied product record was created.

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

Vendor- or practice-specific extensions.

inventorySuppliedProductIdstringrequired

Canonical identifier for this supplied product record.

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

Canonical identifier of the product that was supplied.

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

Quantity of the product supplied. Must be strictly positive.

updatedAtstring(date-time)required

Timestamp when this supplied product record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "batch": {}, "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "inventorySuppliedProductId": "123e4567-e89b-12d3-a456-426614174000", "productId": "123e4567-e89b-12d3-a456-426614174000", "suppliedQuantity": 0, "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Permanently deletes a Inventory Supplied Product record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

inventorySuppliedProductIdstringrequired

Inventory Supplied Product unique identifier (UUID)

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

Responses

Inventory Supplied Product 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
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations
Operations