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

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

contactIdstringrequired

Contact unique identifier (UUID)

Bodyapplication/jsonrequired
businessNamestring

Registered or trading name if the contact is a business.

Example: "Example Name"
codestring

Practice-specific human-readable contact code.

Example: "CODE-001"
contactDetailsArray of objects(ContactDetailDto)

List of contact details such as phone numbers and email addresses.

creditStatusstring

Credit status for the contact.

Enum"OK""WARNING""STOP"
Example: "OK"
birthDatestring

Date of birth of the contact, if applicable.

Example: "2025-01-01"
driverLicenseExpiryDatestring

Expiry date of the driver license.

Example: "2025-01-01"
driverLicenseIssuerstring

Issuing authority or jurisdiction for the driver license.

Example: "https://example.com"
driverLicenseNumberstring

Driver license number, if captured.

Example: "example"
extensionsobject

Vendor- or practice-specific extensions.

firstNamestring

Given name of the contact.

Example: "Example Name"
isBusinessboolean

True if the contact represents a business entity.

Example: true
isCustomerboolean

True if the contact is a customer.

Example: true
isStaffMemberboolean

True if the contact is a staff member of the practice.

Example: true
isSupplierboolean

True if the contact is a supplier.

Example: true
isSyndicateboolean

True if the contact is a syndicate or group owner.

Example: true
isVetboolean

True if the contact is a veterinarian.

Example: true
lastNamestring

Family name of the contact.

Example: "Example Name"
ownershipIdstring

Identifier for the owning organization or business unit.

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

Primary physical address for the contact.

Example: "example"
postalAddressstring

Primary postal/mailing address for the contact.

Example: "example"
creditStatusConceptobject
curl -i -X PATCH \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/contact/{contactId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "businessName": "Example Name",
    "code": "CODE-001",
    "contactDetails": [
      {
        "contactDetailId": "123e4567-e89b-12d3-a456-426614174000",
        "contactDetailType": {
          "code": "12345",
          "system": "http://example.com/codesystem",
          "display": "Example Display Name"
        },
        "contactId": "123e4567-e89b-12d3-a456-426614174000",
        "createdAt": "2025-01-01T00:00:00.000Z",
        "extensions": {},
        "isActive": true,
        "isPreferred": true,
        "name": "Example Name",
        "subscriptionGroups": [
          "string"
        ],
        "updatedAt": "2025-01-01T00:00:00.000Z",
        "value": "user@example.com",
        "valueCleaned": "example"
      }
    ],
    "creditStatus": "OK",
    "birthDate": "2025-01-01",
    "driverLicenseExpiryDate": "2025-01-01",
    "driverLicenseIssuer": "https://example.com",
    "driverLicenseNumber": "example",
    "extensions": {},
    "firstName": "Example Name",
    "isBusiness": true,
    "isCustomer": true,
    "isStaffMember": true,
    "isSupplier": true,
    "isSyndicate": true,
    "isVet": true,
    "lastName": "Example Name",
    "ownershipId": "123e4567-e89b-12d3-a456-426614174000",
    "physicalAddress": "example",
    "postalAddress": "example",
    "creditStatusConcept": {
      "code": "12345",
      "system": "http://example.com/codesystem",
      "display": "Example Display Name"
    }
  }'

Responses

Contact updated successfully

Bodyapplication/json
businessNamestringrequired

Registered or trading name if the contact is a business.

Example: "Example Name"
codestringrequired

Practice-specific human-readable contact code.

Example: "CODE-001"
contactDetailsArray of objects(ContactDetailDto)required

List of contact details such as phone numbers and email addresses.

contactDetails[].​contactDetailIdstringrequired

Canonical identifier for this contact detail.

Example: "123e4567-e89b-12d3-a456-426614174000"
contactDetails[].​contactDetailTypeobjectrequired
contactDetails[].​contactDetailType.​codestringrequired

Code value

Example: "12345"
contactDetails[].​contactDetailType.​systemstringrequired

Code system URI

Example: "http://example.com/codesystem"
contactDetails[].​contactDetailType.​displaystring

Human-readable display

Example: "Example Display Name"
contactDetails[].​contactIdstringrequired

Identifier of the contact this detail belongs to.

Example: "123e4567-e89b-12d3-a456-426614174000"
contactDetails[].​createdAtstringrequired

Timestamp when this contact detail was created.

Example: "2025-01-01T00:00:00.000Z"
contactDetails[].​extensionsobject

Vendor- or practice-specific extensions.

contactDetails[].​isActiveboolean

Whether this contact detail is currently active.

Example: true
contactDetails[].​isPreferredboolean

Whether this is the preferred contact detail of its type for the contact.

Example: true
contactDetails[].​namestringrequired

Label or type name for the contact detail (e.g. 'Home phone', 'Email').

Example: "Example Name"
contactDetails[].​subscriptionGroupsArray of strings

Identifiers of communication subscription groups associated with this contact detail.

contactDetails[].​updatedAtstringrequired

Timestamp when this contact detail was last updated.

Example: "2025-01-01T00:00:00.000Z"
contactDetails[].​valuestringrequired

Raw value of the contact detail (e.g. phone number, email address).

Example: "user@example.com"
contactDetails[].​valueCleanedstring or null

System-normalized representation of the value, if available.

Example: "example"
contactIdstringrequired

Canonical unique identifier for the contact.

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

Timestamp when the contact was created.

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

Credit status for the contact.

Enum"OK""WARNING""STOP"
Example: "OK"
birthDatestring(date-time)required

Date of birth of the contact, if applicable.

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

Expiry date of the driver license.

Example: "2025-01-01T00:00:00Z"
driverLicenseIssuerstringrequired

Issuing authority or jurisdiction for the driver license.

Example: "https://example.com"
driverLicenseNumberstringrequired

Driver license number, if captured.

Example: "example"
extensionsobjectrequired

Vendor- or practice-specific extensions.

firstNamestringrequired

Given name of the contact.

Example: "Example Name"
isBusinessbooleanrequired

True if the contact represents a business entity.

Example: true
isCustomerbooleanrequired

True if the contact is a customer.

Example: true
isStaffMemberbooleanrequired

True if the contact is a staff member of the practice.

Example: true
isSupplierbooleanrequired

True if the contact is a supplier.

Example: true
isSyndicatebooleanrequired

True if the contact is a syndicate or group owner.

Example: true
isVetbooleanrequired

True if the contact is a veterinarian.

Example: true
lastNamestringrequired

Family name of the contact.

Example: "Example Name"
ownershipIdstringrequired

Identifier for the owning organization or business unit.

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

Primary physical address for the contact.

Example: "example"
postalAddressstringrequired

Primary postal/mailing address for the contact.

Example: "example"
updatedAtstring(date-time)required

Timestamp when the contact was last updated.

Example: "2025-01-01T00:00:00.000Z"
creditStatusConceptobjectrequired
creditStatusConcept.​codestringrequired

Code value

Example: "12345"
creditStatusConcept.​systemstringrequired

Code system URI

Example: "http://example.com/codesystem"
creditStatusConcept.​displaystring

Human-readable display

Example: "Example Display Name"
Response
application/json
{ "businessName": "Example Name", "code": "CODE-001", "contactDetails": [ { … } ], "contactId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "creditStatus": "OK", "birthDate": "2025-01-01T00:00:00Z", "driverLicenseExpiryDate": "2025-01-01T00:00:00Z", "driverLicenseIssuer": "https://example.com", "driverLicenseNumber": "example", "extensions": {}, "firstName": "Example Name", "isBusiness": true, "isCustomer": true, "isStaffMember": true, "isSupplier": true, "isSyndicate": true, "isVet": true, "lastName": "Example Name", "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "physicalAddress": "example", "postalAddress": "example", "updatedAt": "2025-01-01T00:00:00.000Z", "creditStatusConcept": { "code": "12345", "system": "http://example.com/codesystem", "display": "Example Display Name" } }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

contactIdstringrequired

Contact unique identifier (UUID)

Bodyapplication/jsonrequired
businessNamestringrequired

Registered or trading name if the contact is a business.

Example: "Example Name"
codestringrequired

Practice-specific human-readable contact code.

Example: "CODE-001"
contactDetailsArray of objects(ContactDetailDto)required

List of contact details such as phone numbers and email addresses.

contactDetails[].​contactDetailIdstringrequired

Canonical identifier for this contact detail.

Example: "123e4567-e89b-12d3-a456-426614174000"
contactDetails[].​contactDetailTypeobjectrequired
contactDetails[].​contactDetailType.​codestringrequired

Code value

Example: "12345"
contactDetails[].​contactDetailType.​systemstringrequired

Code system URI

Example: "http://example.com/codesystem"
contactDetails[].​contactDetailType.​displaystring

Human-readable display

Example: "Example Display Name"
contactDetails[].​contactIdstringrequired

Identifier of the contact this detail belongs to.

Example: "123e4567-e89b-12d3-a456-426614174000"
contactDetails[].​createdAtstringrequired

Timestamp when this contact detail was created.

Example: "2025-01-01T00:00:00.000Z"
contactDetails[].​extensionsobject

Vendor- or practice-specific extensions.

contactDetails[].​isActiveboolean

Whether this contact detail is currently active.

Example: true
contactDetails[].​isPreferredboolean

Whether this is the preferred contact detail of its type for the contact.

Example: true
contactDetails[].​namestringrequired

Label or type name for the contact detail (e.g. 'Home phone', 'Email').

Example: "Example Name"
contactDetails[].​subscriptionGroupsArray of strings

Identifiers of communication subscription groups associated with this contact detail.

contactDetails[].​updatedAtstringrequired

Timestamp when this contact detail was last updated.

Example: "2025-01-01T00:00:00.000Z"
contactDetails[].​valuestringrequired

Raw value of the contact detail (e.g. phone number, email address).

Example: "user@example.com"
contactDetails[].​valueCleanedstring or null

System-normalized representation of the value, if available.

Example: "example"
creditStatusstringrequired

Credit status for the contact.

Enum"OK""WARNING""STOP"
Example: "OK"
birthDatestringrequired

Date of birth of the contact, if applicable.

Example: "2025-01-01"
driverLicenseExpiryDatestringrequired

Expiry date of the driver license.

Example: "2025-01-01"
driverLicenseIssuerstringrequired

Issuing authority or jurisdiction for the driver license.

Example: "https://example.com"
driverLicenseNumberstringrequired

Driver license number, if captured.

Example: "example"
extensionsobjectrequired

Vendor- or practice-specific extensions.

firstNamestringrequired

Given name of the contact.

Example: "Example Name"
isBusinessbooleanrequired

True if the contact represents a business entity.

Example: true
isCustomerbooleanrequired

True if the contact is a customer.

Example: true
isStaffMemberbooleanrequired

True if the contact is a staff member of the practice.

Example: true
isSupplierbooleanrequired

True if the contact is a supplier.

Example: true
isSyndicatebooleanrequired

True if the contact is a syndicate or group owner.

Example: true
isVetbooleanrequired

True if the contact is a veterinarian.

Example: true
lastNamestringrequired

Family name of the contact.

Example: "Example Name"
ownershipIdstringrequired

Identifier for the owning organization or business unit.

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

Primary physical address for the contact.

Example: "example"
postalAddressstringrequired

Primary postal/mailing address for the contact.

Example: "example"
creditStatusConceptobjectrequired
creditStatusConcept.​codestringrequired

Code value

Example: "12345"
creditStatusConcept.​systemstringrequired

Code system URI

Example: "http://example.com/codesystem"
creditStatusConcept.​displaystring

Human-readable display

Example: "Example Display Name"
curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/contact/{contactId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "businessName": "Example Name",
    "code": "CODE-001",
    "contactDetails": [
      {
        "contactDetailId": "123e4567-e89b-12d3-a456-426614174000",
        "contactDetailType": {
          "code": "12345",
          "system": "http://example.com/codesystem",
          "display": "Example Display Name"
        },
        "contactId": "123e4567-e89b-12d3-a456-426614174000",
        "createdAt": "2025-01-01T00:00:00.000Z",
        "extensions": {},
        "isActive": true,
        "isPreferred": true,
        "name": "Example Name",
        "subscriptionGroups": [
          "string"
        ],
        "updatedAt": "2025-01-01T00:00:00.000Z",
        "value": "user@example.com",
        "valueCleaned": "example"
      }
    ],
    "creditStatus": "OK",
    "birthDate": "2025-01-01",
    "driverLicenseExpiryDate": "2025-01-01",
    "driverLicenseIssuer": "https://example.com",
    "driverLicenseNumber": "example",
    "extensions": {},
    "firstName": "Example Name",
    "isBusiness": true,
    "isCustomer": true,
    "isStaffMember": true,
    "isSupplier": true,
    "isSyndicate": true,
    "isVet": true,
    "lastName": "Example Name",
    "ownershipId": "123e4567-e89b-12d3-a456-426614174000",
    "physicalAddress": "example",
    "postalAddress": "example",
    "creditStatusConcept": {
      "code": "12345",
      "system": "http://example.com/codesystem",
      "display": "Example Display Name"
    }
  }'

Responses

Contact replaced successfully

Bodyapplication/json
businessNamestringrequired

Registered or trading name if the contact is a business.

Example: "Example Name"
codestringrequired

Practice-specific human-readable contact code.

Example: "CODE-001"
contactDetailsArray of objects(ContactDetailDto)required

List of contact details such as phone numbers and email addresses.

contactDetails[].​contactDetailIdstringrequired

Canonical identifier for this contact detail.

Example: "123e4567-e89b-12d3-a456-426614174000"
contactDetails[].​contactDetailTypeobjectrequired
contactDetails[].​contactDetailType.​codestringrequired

Code value

Example: "12345"
contactDetails[].​contactDetailType.​systemstringrequired

Code system URI

Example: "http://example.com/codesystem"
contactDetails[].​contactDetailType.​displaystring

Human-readable display

Example: "Example Display Name"
contactDetails[].​contactIdstringrequired

Identifier of the contact this detail belongs to.

Example: "123e4567-e89b-12d3-a456-426614174000"
contactDetails[].​createdAtstringrequired

Timestamp when this contact detail was created.

Example: "2025-01-01T00:00:00.000Z"
contactDetails[].​extensionsobject

Vendor- or practice-specific extensions.

contactDetails[].​isActiveboolean

Whether this contact detail is currently active.

Example: true
contactDetails[].​isPreferredboolean

Whether this is the preferred contact detail of its type for the contact.

Example: true
contactDetails[].​namestringrequired

Label or type name for the contact detail (e.g. 'Home phone', 'Email').

Example: "Example Name"
contactDetails[].​subscriptionGroupsArray of strings

Identifiers of communication subscription groups associated with this contact detail.

contactDetails[].​updatedAtstringrequired

Timestamp when this contact detail was last updated.

Example: "2025-01-01T00:00:00.000Z"
contactDetails[].​valuestringrequired

Raw value of the contact detail (e.g. phone number, email address).

Example: "user@example.com"
contactDetails[].​valueCleanedstring or null

System-normalized representation of the value, if available.

Example: "example"
contactIdstringrequired

Canonical unique identifier for the contact.

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

Timestamp when the contact was created.

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

Credit status for the contact.

Enum"OK""WARNING""STOP"
Example: "OK"
birthDatestring(date-time)required

Date of birth of the contact, if applicable.

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

Expiry date of the driver license.

Example: "2025-01-01T00:00:00Z"
driverLicenseIssuerstringrequired

Issuing authority or jurisdiction for the driver license.

Example: "https://example.com"
driverLicenseNumberstringrequired

Driver license number, if captured.

Example: "example"
extensionsobjectrequired

Vendor- or practice-specific extensions.

firstNamestringrequired

Given name of the contact.

Example: "Example Name"
isBusinessbooleanrequired

True if the contact represents a business entity.

Example: true
isCustomerbooleanrequired

True if the contact is a customer.

Example: true
isStaffMemberbooleanrequired

True if the contact is a staff member of the practice.

Example: true
isSupplierbooleanrequired

True if the contact is a supplier.

Example: true
isSyndicatebooleanrequired

True if the contact is a syndicate or group owner.

Example: true
isVetbooleanrequired

True if the contact is a veterinarian.

Example: true
lastNamestringrequired

Family name of the contact.

Example: "Example Name"
ownershipIdstringrequired

Identifier for the owning organization or business unit.

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

Primary physical address for the contact.

Example: "example"
postalAddressstringrequired

Primary postal/mailing address for the contact.

Example: "example"
updatedAtstring(date-time)required

Timestamp when the contact was last updated.

Example: "2025-01-01T00:00:00.000Z"
creditStatusConceptobjectrequired
creditStatusConcept.​codestringrequired

Code value

Example: "12345"
creditStatusConcept.​systemstringrequired

Code system URI

Example: "http://example.com/codesystem"
creditStatusConcept.​displaystring

Human-readable display

Example: "Example Display Name"
Response
application/json
{ "businessName": "Example Name", "code": "CODE-001", "contactDetails": [ { … } ], "contactId": "123e4567-e89b-12d3-a456-426614174000", "createdAt": "2025-01-01T00:00:00.000Z", "creditStatus": "OK", "birthDate": "2025-01-01T00:00:00Z", "driverLicenseExpiryDate": "2025-01-01T00:00:00Z", "driverLicenseIssuer": "https://example.com", "driverLicenseNumber": "example", "extensions": {}, "firstName": "Example Name", "isBusiness": true, "isCustomer": true, "isStaffMember": true, "isSupplier": true, "isSyndicate": true, "isVet": true, "lastName": "Example Name", "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "physicalAddress": "example", "postalAddress": "example", "updatedAt": "2025-01-01T00:00:00.000Z", "creditStatusConcept": { "code": "12345", "system": "http://example.com/codesystem", "display": "Example Display Name" } }

Request

Permanently deletes a Contact record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

contactIdstringrequired

Contact unique identifier (UUID)

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

Responses

Contact 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