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
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 Transaction record. Transaction resource in the Animal Health Data Store

Security
bearer
Path
siteIdnumberrequired

Site identifier

Bodyapplication/jsonrequired
extensionsobject

Vendor- or practice-specific extensions.

externalIdstring

External system identifier for the transaction.

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

External reference string associated with the transaction.

integrationNamestring

Name of the external integration or gateway handling the transaction.

isActivebooleanrequired

Indicates whether the transaction record is active.

ownershipIdstring

Identifier for the owning organization or tenant.

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

Identifier of the related payment resource, if any.

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

Current status of the transaction.

Enum"declined""accepted""canceled""captured""initiated""error"
transactionIdstringrequired

Canonical identifier for the transaction.

Example: "123e4567-e89b-12d3-a456-426614174000"
curl -i -X POST \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/transaction' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "extensions": {},
    "externalId": "123e4567-e89b-12d3-a456-426614174000",
    "externalReference": "string",
    "integrationName": "string",
    "isActive": true,
    "ownershipId": "123e4567-e89b-12d3-a456-426614174000",
    "paymentId": "123e4567-e89b-12d3-a456-426614174000",
    "status": "declined",
    "transactionId": "123e4567-e89b-12d3-a456-426614174000"
  }'

Responses

Transaction created successfully

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the transaction record was created.

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

Vendor- or practice-specific extensions.

externalIdstringrequired

External system identifier for the transaction.

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

External reference string associated with the transaction.

integrationNamestringrequired

Name of the external integration or gateway handling the transaction.

isActivebooleanrequired

Indicates whether the transaction record is active.

ownershipIdstringrequired

Identifier for the owning organization or tenant.

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

Identifier of the related payment resource, if any.

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

Current status of the transaction.

Enum"declined""accepted""canceled""captured""initiated""error"
transactionIdstringrequired

Canonical identifier for the transaction.

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

Timestamp when the transaction record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "externalId": "123e4567-e89b-12d3-a456-426614174000", "externalReference": "string", "integrationName": "string", "isActive": true, "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "paymentId": "123e4567-e89b-12d3-a456-426614174000", "status": "declined", "transactionId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Returns a paginated list of Transactions 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""externalReference""integrationName"
sortOrderstring

Sort order

Default "asc"
Enum"asc""desc"
externalIdstring

External system identifier for the transaction.

Example: externalId=123e4567-e89b-12d3-a456-426614174000
externalReferencestring

External reference string associated with the transaction.

integrationNamestring

Name of the external integration or gateway handling the transaction.

isActiveboolean

Indicates whether the transaction record is active.

ownershipIdstring

Identifier for the owning organization or tenant.

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

Identifier of the related payment resource, if any.

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

Current status of the transaction.

Enum"declined""accepted""canceled""captured""initiated""error"
curl -i -X GET \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/transaction?page=0&pageSize=10&sortBy=createdAt&sortOrder=asc&externalId=123e4567-e89b-12d3-a456-426614174000&externalReference=string&integrationName=string&isActive=true&ownershipId=123e4567-e89b-12d3-a456-426614174000&paymentId=123e4567-e89b-12d3-a456-426614174000&status=declined' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Paginated list of Transactions

Request

Returns a single Transaction by its unique identifier.

Security
bearer
Path
siteIdnumberrequired

Site identifier

transactionIdstringrequired

Transaction unique identifier (UUID)

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

Responses

Transaction found

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the transaction record was created.

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

Vendor- or practice-specific extensions.

externalIdstringrequired

External system identifier for the transaction.

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

External reference string associated with the transaction.

integrationNamestringrequired

Name of the external integration or gateway handling the transaction.

isActivebooleanrequired

Indicates whether the transaction record is active.

ownershipIdstringrequired

Identifier for the owning organization or tenant.

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

Identifier of the related payment resource, if any.

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

Current status of the transaction.

Enum"declined""accepted""canceled""captured""initiated""error"
transactionIdstringrequired

Canonical identifier for the transaction.

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

Timestamp when the transaction record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "externalId": "123e4567-e89b-12d3-a456-426614174000", "externalReference": "string", "integrationName": "string", "isActive": true, "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "paymentId": "123e4567-e89b-12d3-a456-426614174000", "status": "declined", "transactionId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

transactionIdstringrequired

Transaction unique identifier (UUID)

Bodyapplication/jsonrequired
extensionsobject

Vendor- or practice-specific extensions.

externalIdstring

External system identifier for the transaction.

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

External reference string associated with the transaction.

integrationNamestring

Name of the external integration or gateway handling the transaction.

isActiveboolean

Indicates whether the transaction record is active.

ownershipIdstring

Identifier for the owning organization or tenant.

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

Identifier of the related payment resource, if any.

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

Current status of the transaction.

Enum"declined""accepted""canceled""captured""initiated""error"
curl -i -X PATCH \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/transaction/{transactionId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "extensions": {},
    "externalId": "123e4567-e89b-12d3-a456-426614174000",
    "externalReference": "string",
    "integrationName": "string",
    "isActive": true,
    "ownershipId": "123e4567-e89b-12d3-a456-426614174000",
    "paymentId": "123e4567-e89b-12d3-a456-426614174000",
    "status": "declined"
  }'

Responses

Transaction updated successfully

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the transaction record was created.

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

Vendor- or practice-specific extensions.

externalIdstringrequired

External system identifier for the transaction.

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

External reference string associated with the transaction.

integrationNamestringrequired

Name of the external integration or gateway handling the transaction.

isActivebooleanrequired

Indicates whether the transaction record is active.

ownershipIdstringrequired

Identifier for the owning organization or tenant.

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

Identifier of the related payment resource, if any.

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

Current status of the transaction.

Enum"declined""accepted""canceled""captured""initiated""error"
transactionIdstringrequired

Canonical identifier for the transaction.

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

Timestamp when the transaction record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "externalId": "123e4567-e89b-12d3-a456-426614174000", "externalReference": "string", "integrationName": "string", "isActive": true, "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "paymentId": "123e4567-e89b-12d3-a456-426614174000", "status": "declined", "transactionId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

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

Security
bearer
Path
siteIdnumberrequired

Site identifier

transactionIdstringrequired

Transaction unique identifier (UUID)

Bodyapplication/jsonrequired
extensionsobjectrequired

Vendor- or practice-specific extensions.

externalIdstringrequired

External system identifier for the transaction.

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

External reference string associated with the transaction.

integrationNamestringrequired

Name of the external integration or gateway handling the transaction.

isActivebooleanrequired

Indicates whether the transaction record is active.

ownershipIdstringrequired

Identifier for the owning organization or tenant.

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

Identifier of the related payment resource, if any.

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

Current status of the transaction.

Enum"declined""accepted""canceled""captured""initiated""error"
curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/transaction/{transactionId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "extensions": {},
    "externalId": "123e4567-e89b-12d3-a456-426614174000",
    "externalReference": "string",
    "integrationName": "string",
    "isActive": true,
    "ownershipId": "123e4567-e89b-12d3-a456-426614174000",
    "paymentId": "123e4567-e89b-12d3-a456-426614174000",
    "status": "declined"
  }'

Responses

Transaction replaced successfully

Bodyapplication/json
createdAtstring(date-time)required

Timestamp when the transaction record was created.

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

Vendor- or practice-specific extensions.

externalIdstringrequired

External system identifier for the transaction.

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

External reference string associated with the transaction.

integrationNamestringrequired

Name of the external integration or gateway handling the transaction.

isActivebooleanrequired

Indicates whether the transaction record is active.

ownershipIdstringrequired

Identifier for the owning organization or tenant.

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

Identifier of the related payment resource, if any.

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

Current status of the transaction.

Enum"declined""accepted""canceled""captured""initiated""error"
transactionIdstringrequired

Canonical identifier for the transaction.

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

Timestamp when the transaction record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "externalId": "123e4567-e89b-12d3-a456-426614174000", "externalReference": "string", "integrationName": "string", "isActive": true, "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "paymentId": "123e4567-e89b-12d3-a456-426614174000", "status": "declined", "transactionId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Permanently deletes a Transaction record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

transactionIdstringrequired

Transaction unique identifier (UUID)

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

Responses

Transaction deleted successfully

Operations
Operations
Operations
Operations
Operations
Operations