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

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
businessNamestring

Registered or trading name if the contact is a business.

codestring

Practice-specific human-readable contact code.

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

contactDetails[].​contactDetailType.​systemstringrequired

Code system URI

contactDetails[].​contactDetailType.​displaystring

Human-readable display

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.

contactDetails[].​isPreferredboolean

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

contactDetails[].​namestringrequired

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

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

contactDetails[].​valueCleanedstring or null

System-normalized representation of the value, if available.

contactIdstringrequired

Canonical unique identifier for the contact.

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

Credit status for the contact.

Enum"OK""WARNING""STOP"
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.

driverLicenseNumberstring

Driver license number, if captured.

extensionsobject

Vendor- or practice-specific extensions.

firstNamestringrequired

Given name of the contact.

isBusinessboolean

True if the contact represents a business entity.

isCustomerboolean

True if the contact is a customer.

isStaffMemberboolean

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

isSupplierboolean

True if the contact is a supplier.

isSyndicateboolean

True if the contact is a syndicate or group owner.

isVetboolean

True if the contact is a veterinarian.

lastNamestringrequired

Family name of the contact.

ownershipIdstring

Identifier for the owning organization or business unit.

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

Primary physical address for the contact.

postalAddressstring

Primary postal/mailing address for the contact.

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

Responses

Contact created successfully

Bodyapplication/json
businessNamestringrequired

Registered or trading name if the contact is a business.

codestringrequired

Practice-specific human-readable contact code.

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

contactDetails[].​contactDetailType.​systemstringrequired

Code system URI

contactDetails[].​contactDetailType.​displaystring

Human-readable display

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.

contactDetails[].​isPreferredboolean

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

contactDetails[].​namestringrequired

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

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

contactDetails[].​valueCleanedstring or null

System-normalized representation of the value, if available.

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

driverLicenseNumberstringrequired

Driver license number, if captured.

extensionsobjectrequired

Vendor- or practice-specific extensions.

firstNamestringrequired

Given name of the contact.

isBusinessbooleanrequired

True if the contact represents a business entity.

isCustomerbooleanrequired

True if the contact is a customer.

isStaffMemberbooleanrequired

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

isSupplierbooleanrequired

True if the contact is a supplier.

isSyndicatebooleanrequired

True if the contact is a syndicate or group owner.

isVetbooleanrequired

True if the contact is a veterinarian.

lastNamestringrequired

Family name of the contact.

ownershipIdstringrequired

Identifier for the owning organization or business unit.

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

Primary physical address for the contact.

postalAddressstringrequired

Primary postal/mailing address for the contact.

updatedAtstring(date-time)required

Timestamp when the contact was last updated.

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

Code value

creditStatusConcept.​systemstringrequired

Code system URI

creditStatusConcept.​displaystring

Human-readable display

Response
application/json
{ "businessName": "string", "code": "string", "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": "string", "driverLicenseNumber": "string", "extensions": {}, "firstName": "string", "isBusiness": true, "isCustomer": true, "isStaffMember": true, "isSupplier": true, "isSyndicate": true, "isVet": true, "lastName": "string", "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "physicalAddress": "string", "postalAddress": "string", "updatedAt": "2025-01-01T00:00:00.000Z", "creditStatusConcept": { "code": "string", "system": "string", "display": "string" } }

Request

Returns a paginated list of Contacts 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""businessName""code""birthDate""driverLicenseExpiryDate""driverLicenseIssuer""driverLicenseNumber""firstName""lastName"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
businessNamestring

Registered or trading name if the contact is a business.

codestring

Practice-specific human-readable contact code.

creditStatusstring

Credit status for the contact.

Enum"OK""WARNING""STOP"
driverLicenseIssuerstring

Issuing authority or jurisdiction for the driver license.

driverLicenseNumberstring

Driver license number, if captured.

firstNamestring

Given name of the contact.

isBusinessboolean

True if the contact represents a business entity.

isCustomerboolean

True if the contact is a customer.

isStaffMemberboolean

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

isSupplierboolean

True if the contact is a supplier.

isSyndicateboolean

True if the contact is a syndicate or group owner.

isVetboolean

True if the contact is a veterinarian.

lastNamestring

Family name of the contact.

ownershipIdstring

Identifier for the owning organization or business unit.

Example: ownershipId=123e4567-e89b-12d3-a456-426614174000
physicalAddressstring

Primary physical address for the contact.

postalAddressstring

Primary postal/mailing address for the contact.

curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/contact?page=0&pageSize=10&sortBy=createdAt&sortOrder=asc&businessName=string&code=string&creditStatus=OK&driverLicenseIssuer=string&driverLicenseNumber=string&firstName=string&isBusiness=true&isCustomer=true&isStaffMember=true&isSupplier=true&isSyndicate=true&isVet=true&lastName=string&ownershipId=123e4567-e89b-12d3-a456-426614174000&physicalAddress=string&postalAddress=string' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Paginated list of Contacts

Request

Returns a single Contact by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

contactIdstringrequired

Contact unique identifier (UUID)

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

Responses

Contact found

Bodyapplication/json
businessNamestringrequired

Registered or trading name if the contact is a business.

codestringrequired

Practice-specific human-readable contact code.

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

contactDetails[].​contactDetailType.​systemstringrequired

Code system URI

contactDetails[].​contactDetailType.​displaystring

Human-readable display

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.

contactDetails[].​isPreferredboolean

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

contactDetails[].​namestringrequired

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

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

contactDetails[].​valueCleanedstring or null

System-normalized representation of the value, if available.

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

driverLicenseNumberstringrequired

Driver license number, if captured.

extensionsobjectrequired

Vendor- or practice-specific extensions.

firstNamestringrequired

Given name of the contact.

isBusinessbooleanrequired

True if the contact represents a business entity.

isCustomerbooleanrequired

True if the contact is a customer.

isStaffMemberbooleanrequired

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

isSupplierbooleanrequired

True if the contact is a supplier.

isSyndicatebooleanrequired

True if the contact is a syndicate or group owner.

isVetbooleanrequired

True if the contact is a veterinarian.

lastNamestringrequired

Family name of the contact.

ownershipIdstringrequired

Identifier for the owning organization or business unit.

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

Primary physical address for the contact.

postalAddressstringrequired

Primary postal/mailing address for the contact.

updatedAtstring(date-time)required

Timestamp when the contact was last updated.

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

Code value

creditStatusConcept.​systemstringrequired

Code system URI

creditStatusConcept.​displaystring

Human-readable display

Response
application/json
{ "businessName": "string", "code": "string", "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": "string", "driverLicenseNumber": "string", "extensions": {}, "firstName": "string", "isBusiness": true, "isCustomer": true, "isStaffMember": true, "isSupplier": true, "isSyndicate": true, "isVet": true, "lastName": "string", "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "physicalAddress": "string", "postalAddress": "string", "updatedAt": "2025-01-01T00:00:00.000Z", "creditStatusConcept": { "code": "string", "system": "string", "display": "string" } }

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.

codestring

Practice-specific human-readable contact code.

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

driverLicenseNumberstring

Driver license number, if captured.

extensionsobject

Vendor- or practice-specific extensions.

firstNamestring

Given name of the contact.

isBusinessboolean

True if the contact represents a business entity.

isCustomerboolean

True if the contact is a customer.

isStaffMemberboolean

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

isSupplierboolean

True if the contact is a supplier.

isSyndicateboolean

True if the contact is a syndicate or group owner.

isVetboolean

True if the contact is a veterinarian.

lastNamestring

Family name of the contact.

ownershipIdstring

Identifier for the owning organization or business unit.

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

Primary physical address for the contact.

postalAddressstring

Primary postal/mailing address for the contact.

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": "string",
    "code": "string",
    "contactDetails": [
      {
        "contactDetailId": "123e4567-e89b-12d3-a456-426614174000",
        "contactDetailType": {
          "code": "string",
          "system": "string",
          "display": "string"
        },
        "contactId": "123e4567-e89b-12d3-a456-426614174000",
        "createdAt": "2025-01-01T00:00:00.000Z",
        "extensions": {},
        "isActive": true,
        "isPreferred": true,
        "name": "string",
        "subscriptionGroups": [
          "string"
        ],
        "updatedAt": "2025-01-01T00:00:00.000Z",
        "value": "string",
        "valueCleaned": "string"
      }
    ],
    "creditStatus": "OK",
    "birthDate": "2025-01-01",
    "driverLicenseExpiryDate": "2025-01-01",
    "driverLicenseIssuer": "string",
    "driverLicenseNumber": "string",
    "extensions": {},
    "firstName": "string",
    "isBusiness": true,
    "isCustomer": true,
    "isStaffMember": true,
    "isSupplier": true,
    "isSyndicate": true,
    "isVet": true,
    "lastName": "string",
    "ownershipId": "123e4567-e89b-12d3-a456-426614174000",
    "physicalAddress": "string",
    "postalAddress": "string",
    "creditStatusConcept": {
      "code": "string",
      "system": "string",
      "display": "string"
    }
  }'

Responses

Contact updated successfully

Bodyapplication/json
businessNamestringrequired

Registered or trading name if the contact is a business.

codestringrequired

Practice-specific human-readable contact code.

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

contactDetails[].​contactDetailType.​systemstringrequired

Code system URI

contactDetails[].​contactDetailType.​displaystring

Human-readable display

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.

contactDetails[].​isPreferredboolean

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

contactDetails[].​namestringrequired

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

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

contactDetails[].​valueCleanedstring or null

System-normalized representation of the value, if available.

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

driverLicenseNumberstringrequired

Driver license number, if captured.

extensionsobjectrequired

Vendor- or practice-specific extensions.

firstNamestringrequired

Given name of the contact.

isBusinessbooleanrequired

True if the contact represents a business entity.

isCustomerbooleanrequired

True if the contact is a customer.

isStaffMemberbooleanrequired

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

isSupplierbooleanrequired

True if the contact is a supplier.

isSyndicatebooleanrequired

True if the contact is a syndicate or group owner.

isVetbooleanrequired

True if the contact is a veterinarian.

lastNamestringrequired

Family name of the contact.

ownershipIdstringrequired

Identifier for the owning organization or business unit.

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

Primary physical address for the contact.

postalAddressstringrequired

Primary postal/mailing address for the contact.

updatedAtstring(date-time)required

Timestamp when the contact was last updated.

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

Code value

creditStatusConcept.​systemstringrequired

Code system URI

creditStatusConcept.​displaystring

Human-readable display

Response
application/json
{ "businessName": "string", "code": "string", "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": "string", "driverLicenseNumber": "string", "extensions": {}, "firstName": "string", "isBusiness": true, "isCustomer": true, "isStaffMember": true, "isSupplier": true, "isSyndicate": true, "isVet": true, "lastName": "string", "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "physicalAddress": "string", "postalAddress": "string", "updatedAt": "2025-01-01T00:00:00.000Z", "creditStatusConcept": { "code": "string", "system": "string", "display": "string" } }

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.

codestringrequired

Practice-specific human-readable contact code.

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

contactDetails[].​contactDetailType.​systemstringrequired

Code system URI

contactDetails[].​contactDetailType.​displaystring

Human-readable display

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.

contactDetails[].​isPreferredboolean

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

contactDetails[].​namestringrequired

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

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

contactDetails[].​valueCleanedstring or null

System-normalized representation of the value, if available.

creditStatusstringrequired

Credit status for the contact.

Enum"OK""WARNING""STOP"
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.

driverLicenseNumberstringrequired

Driver license number, if captured.

extensionsobjectrequired

Vendor- or practice-specific extensions.

firstNamestringrequired

Given name of the contact.

isBusinessbooleanrequired

True if the contact represents a business entity.

isCustomerbooleanrequired

True if the contact is a customer.

isStaffMemberbooleanrequired

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

isSupplierbooleanrequired

True if the contact is a supplier.

isSyndicatebooleanrequired

True if the contact is a syndicate or group owner.

isVetbooleanrequired

True if the contact is a veterinarian.

lastNamestringrequired

Family name of the contact.

ownershipIdstringrequired

Identifier for the owning organization or business unit.

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

Primary physical address for the contact.

postalAddressstringrequired

Primary postal/mailing address for the contact.

creditStatusConceptobjectrequired
creditStatusConcept.​codestringrequired

Code value

creditStatusConcept.​systemstringrequired

Code system URI

creditStatusConcept.​displaystring

Human-readable display

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": "string",
    "code": "string",
    "contactDetails": [
      {
        "contactDetailId": "123e4567-e89b-12d3-a456-426614174000",
        "contactDetailType": {
          "code": "string",
          "system": "string",
          "display": "string"
        },
        "contactId": "123e4567-e89b-12d3-a456-426614174000",
        "createdAt": "2025-01-01T00:00:00.000Z",
        "extensions": {},
        "isActive": true,
        "isPreferred": true,
        "name": "string",
        "subscriptionGroups": [
          "string"
        ],
        "updatedAt": "2025-01-01T00:00:00.000Z",
        "value": "string",
        "valueCleaned": "string"
      }
    ],
    "creditStatus": "OK",
    "birthDate": "2025-01-01",
    "driverLicenseExpiryDate": "2025-01-01",
    "driverLicenseIssuer": "string",
    "driverLicenseNumber": "string",
    "extensions": {},
    "firstName": "string",
    "isBusiness": true,
    "isCustomer": true,
    "isStaffMember": true,
    "isSupplier": true,
    "isSyndicate": true,
    "isVet": true,
    "lastName": "string",
    "ownershipId": "123e4567-e89b-12d3-a456-426614174000",
    "physicalAddress": "string",
    "postalAddress": "string",
    "creditStatusConcept": {
      "code": "string",
      "system": "string",
      "display": "string"
    }
  }'

Responses

Contact replaced successfully

Bodyapplication/json
businessNamestringrequired

Registered or trading name if the contact is a business.

codestringrequired

Practice-specific human-readable contact code.

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

contactDetails[].​contactDetailType.​systemstringrequired

Code system URI

contactDetails[].​contactDetailType.​displaystring

Human-readable display

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.

contactDetails[].​isPreferredboolean

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

contactDetails[].​namestringrequired

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

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

contactDetails[].​valueCleanedstring or null

System-normalized representation of the value, if available.

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

driverLicenseNumberstringrequired

Driver license number, if captured.

extensionsobjectrequired

Vendor- or practice-specific extensions.

firstNamestringrequired

Given name of the contact.

isBusinessbooleanrequired

True if the contact represents a business entity.

isCustomerbooleanrequired

True if the contact is a customer.

isStaffMemberbooleanrequired

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

isSupplierbooleanrequired

True if the contact is a supplier.

isSyndicatebooleanrequired

True if the contact is a syndicate or group owner.

isVetbooleanrequired

True if the contact is a veterinarian.

lastNamestringrequired

Family name of the contact.

ownershipIdstringrequired

Identifier for the owning organization or business unit.

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

Primary physical address for the contact.

postalAddressstringrequired

Primary postal/mailing address for the contact.

updatedAtstring(date-time)required

Timestamp when the contact was last updated.

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

Code value

creditStatusConcept.​systemstringrequired

Code system URI

creditStatusConcept.​displaystring

Human-readable display

Response
application/json
{ "businessName": "string", "code": "string", "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": "string", "driverLicenseNumber": "string", "extensions": {}, "firstName": "string", "isBusiness": true, "isCustomer": true, "isStaffMember": true, "isSupplier": true, "isSyndicate": true, "isVet": true, "lastName": "string", "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "physicalAddress": "string", "postalAddress": "string", "updatedAt": "2025-01-01T00:00:00.000Z", "creditStatusConcept": { "code": "string", "system": "string", "display": "string" } }

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