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

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
additionalResourceIdsArray of strings

Identifiers of additional resources associated with this booking.

animalIdstringrequired

Identifier of the animal for this booking.

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

Identifier of the underlying appointment record, if modeled separately.

Example: "123e4567-e89b-12d3-a456-426614174000"
appointmentTypeobjectrequired
appointmentType.​codestringrequired

Code value

appointmentType.​systemstringrequired

Code system URI

appointmentType.​displaystring

Human-readable display

bookingIdstringrequired

Canonical booking identifier.

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

Identifier of the primary contact (e.g., owner) for this booking.

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

Free-text description or reason for the appointment.

durationMinutesnumber

Scheduled duration in minutes.

extensionsobject

Vendor- or practice-specific extensions.

providerIdstringrequired

Identifier of the primary provider/resource for this booking.

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

Appointment start time in RFC 3339 format with timezone offset.

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

Current booking status.

Enum"no_status""confirmed""unconfirmed"
curl -i -X POST \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/booking' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "additionalResourceIds": [
      "string"
    ],
    "animalId": "123e4567-e89b-12d3-a456-426614174000",
    "appointmentId": "123e4567-e89b-12d3-a456-426614174000",
    "appointmentType": {
      "code": "string",
      "system": "string",
      "display": "string"
    },
    "bookingId": "123e4567-e89b-12d3-a456-426614174000",
    "contactId": "123e4567-e89b-12d3-a456-426614174000",
    "description": "string",
    "durationMinutes": 0,
    "extensions": {},
    "providerId": "123e4567-e89b-12d3-a456-426614174000",
    "startsAt": "2025-01-01T00:00:00.000Z",
    "status": "no_status"
  }'

Responses

Booking created successfully

Bodyapplication/json
additionalResourceIdsArray of stringsrequired

Identifiers of additional resources associated with this booking.

animalIdstringrequired

Identifier of the animal for this booking.

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

Identifier of the underlying appointment record, if modeled separately.

Example: "123e4567-e89b-12d3-a456-426614174000"
appointmentTypeobjectrequired
appointmentType.​codestringrequired

Code value

appointmentType.​systemstringrequired

Code system URI

appointmentType.​displaystring

Human-readable display

bookingIdstringrequired

Canonical booking identifier.

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

Identifier of the primary contact (e.g., owner) for this booking.

Example: "123e4567-e89b-12d3-a456-426614174000"
createdAtstring(date-time)required

Timestamp when the booking was created.

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

Free-text description or reason for the appointment.

durationMinutesnumberrequired

Scheduled duration in minutes.

extensionsobjectrequired

Vendor- or practice-specific extensions.

providerIdstringrequired

Identifier of the primary provider/resource for this booking.

Example: "123e4567-e89b-12d3-a456-426614174000"
startsAtstring(date-time)required

Appointment start time in RFC 3339 format with timezone offset.

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

Current booking status.

Enum"no_status""confirmed""unconfirmed"
updatedAtstring(date-time)required

Timestamp when the booking was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "additionalResourceIds": [ "string" ], "animalId": "123e4567-e89b-12d3-a456-426614174000", "appointmentId": "123e4567-e89b-12d3-a456-426614174000", "appointmentType": { "code": "string", "system": "string", "display": "string" }, "bookingId": "123e4567-e89b-12d3-a456-426614174000", "contactId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "description": "string", "durationMinutes": 0, "extensions": {}, "providerId": "123e4567-e89b-12d3-a456-426614174000", "startsAt": "2025-01-01T00:00:00.000Z", "status": "no_status", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Returns a paginated list of Bookings 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""description""durationMinutes""startsAt"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
animalIdstring

Identifier of the animal for this booking.

Example: animalId=123e4567-e89b-12d3-a456-426614174000
appointmentIdstring

Identifier of the underlying appointment record, if modeled separately.

Example: appointmentId=123e4567-e89b-12d3-a456-426614174000
contactIdstring

Identifier of the primary contact (e.g., owner) for this booking.

Example: contactId=123e4567-e89b-12d3-a456-426614174000
descriptionstring

Free-text description or reason for the appointment.

providerIdstring

Identifier of the primary provider/resource for this booking.

Example: providerId=123e4567-e89b-12d3-a456-426614174000
statusstring

Current booking status.

Enum"no_status""confirmed""unconfirmed"
curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/booking?page=0&pageSize=10&sortBy=createdAt&sortOrder=asc&animalId=123e4567-e89b-12d3-a456-426614174000&appointmentId=123e4567-e89b-12d3-a456-426614174000&contactId=123e4567-e89b-12d3-a456-426614174000&description=string&providerId=123e4567-e89b-12d3-a456-426614174000&status=no_status' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Paginated list of Bookings

Request

Returns a single Booking by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

bookingIdstringrequired

Booking unique identifier (UUID)

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

Responses

Booking found

Bodyapplication/json
additionalResourceIdsArray of stringsrequired

Identifiers of additional resources associated with this booking.

animalIdstringrequired

Identifier of the animal for this booking.

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

Identifier of the underlying appointment record, if modeled separately.

Example: "123e4567-e89b-12d3-a456-426614174000"
appointmentTypeobjectrequired
appointmentType.​codestringrequired

Code value

appointmentType.​systemstringrequired

Code system URI

appointmentType.​displaystring

Human-readable display

bookingIdstringrequired

Canonical booking identifier.

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

Identifier of the primary contact (e.g., owner) for this booking.

Example: "123e4567-e89b-12d3-a456-426614174000"
createdAtstring(date-time)required

Timestamp when the booking was created.

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

Free-text description or reason for the appointment.

durationMinutesnumberrequired

Scheduled duration in minutes.

extensionsobjectrequired

Vendor- or practice-specific extensions.

providerIdstringrequired

Identifier of the primary provider/resource for this booking.

Example: "123e4567-e89b-12d3-a456-426614174000"
startsAtstring(date-time)required

Appointment start time in RFC 3339 format with timezone offset.

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

Current booking status.

Enum"no_status""confirmed""unconfirmed"
updatedAtstring(date-time)required

Timestamp when the booking was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "additionalResourceIds": [ "string" ], "animalId": "123e4567-e89b-12d3-a456-426614174000", "appointmentId": "123e4567-e89b-12d3-a456-426614174000", "appointmentType": { "code": "string", "system": "string", "display": "string" }, "bookingId": "123e4567-e89b-12d3-a456-426614174000", "contactId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "description": "string", "durationMinutes": 0, "extensions": {}, "providerId": "123e4567-e89b-12d3-a456-426614174000", "startsAt": "2025-01-01T00:00:00.000Z", "status": "no_status", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Partially updates an existing Booking. Only provided fields will be updated.

Security
bearer
Path
siteIdnumberrequired

Site identifier

bookingIdstringrequired

Booking unique identifier (UUID)

Bodyapplication/jsonrequired
additionalResourceIdsArray of strings

Identifiers of additional resources associated with this booking.

animalIdstring

Identifier of the animal for this booking.

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

Identifier of the underlying appointment record, if modeled separately.

Example: "123e4567-e89b-12d3-a456-426614174000"
appointmentTypeobject
contactIdstring

Identifier of the primary contact (e.g., owner) for this booking.

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

Free-text description or reason for the appointment.

durationMinutesnumber

Scheduled duration in minutes.

extensionsobject

Vendor- or practice-specific extensions.

providerIdstring

Identifier of the primary provider/resource for this booking.

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

Appointment start time in RFC 3339 format with timezone offset.

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

Current booking status.

Enum"no_status""confirmed""unconfirmed"
curl -i -X PATCH \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/booking/{bookingId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "additionalResourceIds": [
      "string"
    ],
    "animalId": "123e4567-e89b-12d3-a456-426614174000",
    "appointmentId": "123e4567-e89b-12d3-a456-426614174000",
    "appointmentType": {
      "code": "string",
      "system": "string",
      "display": "string"
    },
    "contactId": "123e4567-e89b-12d3-a456-426614174000",
    "description": "string",
    "durationMinutes": 0,
    "extensions": {},
    "providerId": "123e4567-e89b-12d3-a456-426614174000",
    "startsAt": "2025-01-01T00:00:00.000Z",
    "status": "no_status"
  }'

Responses

Booking updated successfully

Bodyapplication/json
additionalResourceIdsArray of stringsrequired

Identifiers of additional resources associated with this booking.

animalIdstringrequired

Identifier of the animal for this booking.

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

Identifier of the underlying appointment record, if modeled separately.

Example: "123e4567-e89b-12d3-a456-426614174000"
appointmentTypeobjectrequired
appointmentType.​codestringrequired

Code value

appointmentType.​systemstringrequired

Code system URI

appointmentType.​displaystring

Human-readable display

bookingIdstringrequired

Canonical booking identifier.

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

Identifier of the primary contact (e.g., owner) for this booking.

Example: "123e4567-e89b-12d3-a456-426614174000"
createdAtstring(date-time)required

Timestamp when the booking was created.

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

Free-text description or reason for the appointment.

durationMinutesnumberrequired

Scheduled duration in minutes.

extensionsobjectrequired

Vendor- or practice-specific extensions.

providerIdstringrequired

Identifier of the primary provider/resource for this booking.

Example: "123e4567-e89b-12d3-a456-426614174000"
startsAtstring(date-time)required

Appointment start time in RFC 3339 format with timezone offset.

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

Current booking status.

Enum"no_status""confirmed""unconfirmed"
updatedAtstring(date-time)required

Timestamp when the booking was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "additionalResourceIds": [ "string" ], "animalId": "123e4567-e89b-12d3-a456-426614174000", "appointmentId": "123e4567-e89b-12d3-a456-426614174000", "appointmentType": { "code": "string", "system": "string", "display": "string" }, "bookingId": "123e4567-e89b-12d3-a456-426614174000", "contactId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "description": "string", "durationMinutes": 0, "extensions": {}, "providerId": "123e4567-e89b-12d3-a456-426614174000", "startsAt": "2025-01-01T00:00:00.000Z", "status": "no_status", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Fully replaces an existing Booking. All fields must be provided.

Security
bearer
Path
siteIdnumberrequired

Site identifier

bookingIdstringrequired

Booking unique identifier (UUID)

Bodyapplication/jsonrequired
additionalResourceIdsArray of stringsrequired

Identifiers of additional resources associated with this booking.

animalIdstringrequired

Identifier of the animal for this booking.

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

Identifier of the underlying appointment record, if modeled separately.

Example: "123e4567-e89b-12d3-a456-426614174000"
appointmentTypeobjectrequired
appointmentType.​codestringrequired

Code value

appointmentType.​systemstringrequired

Code system URI

appointmentType.​displaystring

Human-readable display

contactIdstringrequired

Identifier of the primary contact (e.g., owner) for this booking.

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

Free-text description or reason for the appointment.

durationMinutesnumberrequired

Scheduled duration in minutes.

extensionsobjectrequired

Vendor- or practice-specific extensions.

providerIdstringrequired

Identifier of the primary provider/resource for this booking.

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

Appointment start time in RFC 3339 format with timezone offset.

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

Current booking status.

Enum"no_status""confirmed""unconfirmed"
curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/booking/{bookingId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "additionalResourceIds": [
      "string"
    ],
    "animalId": "123e4567-e89b-12d3-a456-426614174000",
    "appointmentId": "123e4567-e89b-12d3-a456-426614174000",
    "appointmentType": {
      "code": "string",
      "system": "string",
      "display": "string"
    },
    "contactId": "123e4567-e89b-12d3-a456-426614174000",
    "description": "string",
    "durationMinutes": 0,
    "extensions": {},
    "providerId": "123e4567-e89b-12d3-a456-426614174000",
    "startsAt": "2025-01-01T00:00:00.000Z",
    "status": "no_status"
  }'

Responses

Booking replaced successfully

Bodyapplication/json
additionalResourceIdsArray of stringsrequired

Identifiers of additional resources associated with this booking.

animalIdstringrequired

Identifier of the animal for this booking.

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

Identifier of the underlying appointment record, if modeled separately.

Example: "123e4567-e89b-12d3-a456-426614174000"
appointmentTypeobjectrequired
appointmentType.​codestringrequired

Code value

appointmentType.​systemstringrequired

Code system URI

appointmentType.​displaystring

Human-readable display

bookingIdstringrequired

Canonical booking identifier.

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

Identifier of the primary contact (e.g., owner) for this booking.

Example: "123e4567-e89b-12d3-a456-426614174000"
createdAtstring(date-time)required

Timestamp when the booking was created.

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

Free-text description or reason for the appointment.

durationMinutesnumberrequired

Scheduled duration in minutes.

extensionsobjectrequired

Vendor- or practice-specific extensions.

providerIdstringrequired

Identifier of the primary provider/resource for this booking.

Example: "123e4567-e89b-12d3-a456-426614174000"
startsAtstring(date-time)required

Appointment start time in RFC 3339 format with timezone offset.

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

Current booking status.

Enum"no_status""confirmed""unconfirmed"
updatedAtstring(date-time)required

Timestamp when the booking was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "additionalResourceIds": [ "string" ], "animalId": "123e4567-e89b-12d3-a456-426614174000", "appointmentId": "123e4567-e89b-12d3-a456-426614174000", "appointmentType": { "code": "string", "system": "string", "display": "string" }, "bookingId": "123e4567-e89b-12d3-a456-426614174000", "contactId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "description": "string", "durationMinutes": 0, "extensions": {}, "providerId": "123e4567-e89b-12d3-a456-426614174000", "startsAt": "2025-01-01T00:00:00.000Z", "status": "no_status", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Permanently deletes a Booking record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

bookingIdstringrequired

Booking unique identifier (UUID)

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

Responses

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