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
Operations
Operations
Operations
Operations
Operations

Request

Creates a new Prescription Item record. Prescription Item resource in the Animal Health Data Store

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
extensionsobject

Vendor- or practice-specific extensions.

instructionsstring

Free-text administration or usage instructions for this prescription item.

isActivebooleanrequired

Whether the prescription item is active and usable.

prescriptionIdstringrequired

Identifier of the parent prescription.

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

Canonical identifier for this prescription item.

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

Identifier of the prescribed product.

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

Total quantity prescribed for this item.

quantityRemainingnumberrequired

Remaining quantity that can still be dispensed.

serialNumberstring or null

Serial number associated with this prescription item, if applicable.

startDatestring

Date when the prescription item becomes valid.

Example: "2025-01-01"
curl -i -X POST \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/prescription-item' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "extensions": {},
    "instructions": "string",
    "isActive": true,
    "prescriptionId": "123e4567-e89b-12d3-a456-426614174000",
    "prescriptionItemId": "123e4567-e89b-12d3-a456-426614174000",
    "productId": "123e4567-e89b-12d3-a456-426614174000",
    "quantityPrescribed": 0,
    "quantityRemaining": 0,
    "serialNumber": "string",
    "startDate": "2025-01-01"
  }'

Responses

Prescription Item created successfully

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the prescription item was created.

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

Vendor- or practice-specific extensions.

instructionsstringrequired

Free-text administration or usage instructions for this prescription item.

isActivebooleanrequired

Whether the prescription item is active and usable.

prescriptionIdstringrequired

Identifier of the parent prescription.

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

Canonical identifier for this prescription item.

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

Identifier of the prescribed product.

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

Total quantity prescribed for this item.

quantityRemainingnumberrequired

Remaining quantity that can still be dispensed.

serialNumberstring or nullrequired

Serial number associated with this prescription item, if applicable.

startDatestring(date-time)required

Date when the prescription item becomes valid.

Example: "2025-01-01T00:00:00Z"
updatedAtstring(date-time)required

Timestamp when the prescription item was last modified.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "instructions": "string", "isActive": true, "prescriptionId": "123e4567-e89b-12d3-a456-426614174000", "prescriptionItemId": "123e4567-e89b-12d3-a456-426614174000", "productId": "123e4567-e89b-12d3-a456-426614174000", "quantityPrescribed": 0, "quantityRemaining": 0, "serialNumber": "string", "startDate": "2025-01-01T00:00:00Z", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Returns a paginated list of Prescription Items 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""instructions""quantityPrescribed""quantityRemaining""serialNumber""startDate"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
instructionsstring

Free-text administration or usage instructions for this prescription item.

isActiveboolean

Whether the prescription item is active and usable.

prescriptionIdstring

Identifier of the parent prescription.

Example: prescriptionId=123e4567-e89b-12d3-a456-426614174000
productIdstring

Identifier of the prescribed product.

Example: productId=123e4567-e89b-12d3-a456-426614174000
serialNumberstring

Serial number associated with this prescription item, if applicable.

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

Responses

Paginated list of Prescription Items

Request

Returns a single Prescription Item by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

prescriptionItemIdstringrequired

Prescription Item unique identifier (UUID)

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

Responses

Prescription Item found

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the prescription item was created.

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

Vendor- or practice-specific extensions.

instructionsstringrequired

Free-text administration or usage instructions for this prescription item.

isActivebooleanrequired

Whether the prescription item is active and usable.

prescriptionIdstringrequired

Identifier of the parent prescription.

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

Canonical identifier for this prescription item.

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

Identifier of the prescribed product.

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

Total quantity prescribed for this item.

quantityRemainingnumberrequired

Remaining quantity that can still be dispensed.

serialNumberstring or nullrequired

Serial number associated with this prescription item, if applicable.

startDatestring(date-time)required

Date when the prescription item becomes valid.

Example: "2025-01-01T00:00:00Z"
updatedAtstring(date-time)required

Timestamp when the prescription item was last modified.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "instructions": "string", "isActive": true, "prescriptionId": "123e4567-e89b-12d3-a456-426614174000", "prescriptionItemId": "123e4567-e89b-12d3-a456-426614174000", "productId": "123e4567-e89b-12d3-a456-426614174000", "quantityPrescribed": 0, "quantityRemaining": 0, "serialNumber": "string", "startDate": "2025-01-01T00:00:00Z", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Partially updates an existing Prescription Item. Only provided fields will be updated.

Security
bearer
Path
siteIdnumberrequired

Site identifier

prescriptionItemIdstringrequired

Prescription Item unique identifier (UUID)

Bodyapplication/jsonrequired
extensionsobject

Vendor- or practice-specific extensions.

instructionsstring

Free-text administration or usage instructions for this prescription item.

isActiveboolean

Whether the prescription item is active and usable.

prescriptionIdstring

Identifier of the parent prescription.

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

Identifier of the prescribed product.

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

Total quantity prescribed for this item.

quantityRemainingnumber

Remaining quantity that can still be dispensed.

serialNumberstring or null

Serial number associated with this prescription item, if applicable.

startDatestring

Date when the prescription item becomes valid.

Example: "2025-01-01"
curl -i -X PATCH \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/prescription-item/{prescriptionItemId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "extensions": {},
    "instructions": "string",
    "isActive": true,
    "prescriptionId": "123e4567-e89b-12d3-a456-426614174000",
    "productId": "123e4567-e89b-12d3-a456-426614174000",
    "quantityPrescribed": 0,
    "quantityRemaining": 0,
    "serialNumber": "string",
    "startDate": "2025-01-01"
  }'

Responses

Prescription Item updated successfully

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the prescription item was created.

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

Vendor- or practice-specific extensions.

instructionsstringrequired

Free-text administration or usage instructions for this prescription item.

isActivebooleanrequired

Whether the prescription item is active and usable.

prescriptionIdstringrequired

Identifier of the parent prescription.

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

Canonical identifier for this prescription item.

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

Identifier of the prescribed product.

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

Total quantity prescribed for this item.

quantityRemainingnumberrequired

Remaining quantity that can still be dispensed.

serialNumberstring or nullrequired

Serial number associated with this prescription item, if applicable.

startDatestring(date-time)required

Date when the prescription item becomes valid.

Example: "2025-01-01T00:00:00Z"
updatedAtstring(date-time)required

Timestamp when the prescription item was last modified.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "instructions": "string", "isActive": true, "prescriptionId": "123e4567-e89b-12d3-a456-426614174000", "prescriptionItemId": "123e4567-e89b-12d3-a456-426614174000", "productId": "123e4567-e89b-12d3-a456-426614174000", "quantityPrescribed": 0, "quantityRemaining": 0, "serialNumber": "string", "startDate": "2025-01-01T00:00:00Z", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Fully replaces an existing Prescription Item. All fields must be provided.

Security
bearer
Path
siteIdnumberrequired

Site identifier

prescriptionItemIdstringrequired

Prescription Item unique identifier (UUID)

Bodyapplication/jsonrequired
extensionsobjectrequired

Vendor- or practice-specific extensions.

instructionsstringrequired

Free-text administration or usage instructions for this prescription item.

isActivebooleanrequired

Whether the prescription item is active and usable.

prescriptionIdstringrequired

Identifier of the parent prescription.

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

Identifier of the prescribed product.

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

Total quantity prescribed for this item.

quantityRemainingnumberrequired

Remaining quantity that can still be dispensed.

serialNumberstring or null

Serial number associated with this prescription item, if applicable.

startDatestringrequired

Date when the prescription item becomes valid.

Example: "2025-01-01"
curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/prescription-item/{prescriptionItemId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "extensions": {},
    "instructions": "string",
    "isActive": true,
    "prescriptionId": "123e4567-e89b-12d3-a456-426614174000",
    "productId": "123e4567-e89b-12d3-a456-426614174000",
    "quantityPrescribed": 0,
    "quantityRemaining": 0,
    "serialNumber": "string",
    "startDate": "2025-01-01"
  }'

Responses

Prescription Item replaced successfully

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the prescription item was created.

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

Vendor- or practice-specific extensions.

instructionsstringrequired

Free-text administration or usage instructions for this prescription item.

isActivebooleanrequired

Whether the prescription item is active and usable.

prescriptionIdstringrequired

Identifier of the parent prescription.

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

Canonical identifier for this prescription item.

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

Identifier of the prescribed product.

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

Total quantity prescribed for this item.

quantityRemainingnumberrequired

Remaining quantity that can still be dispensed.

serialNumberstring or nullrequired

Serial number associated with this prescription item, if applicable.

startDatestring(date-time)required

Date when the prescription item becomes valid.

Example: "2025-01-01T00:00:00Z"
updatedAtstring(date-time)required

Timestamp when the prescription item was last modified.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "instructions": "string", "isActive": true, "prescriptionId": "123e4567-e89b-12d3-a456-426614174000", "prescriptionItemId": "123e4567-e89b-12d3-a456-426614174000", "productId": "123e4567-e89b-12d3-a456-426614174000", "quantityPrescribed": 0, "quantityRemaining": 0, "serialNumber": "string", "startDate": "2025-01-01T00:00:00Z", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Permanently deletes a Prescription Item record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

prescriptionItemIdstringrequired

Prescription Item unique identifier (UUID)

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

Responses

Prescription Item 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