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

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