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

Request

Partially updates an existing Linked Payment. Only provided fields will be updated.

Security
bearer
Path
siteIdnumberrequired

Site identifier

linkedPaymentIdstringrequired

Linked Payment unique identifier (UUID)

Bodyapplication/jsonrequired
amountstring

Monetary amount of the payment applied to the target, as a decimal string.

Example: "100.00"
currencystring

ISO 4217 currency code for the linked amount.

extensionsobject

Vendor- or practice-specific extensions.

paymentIdstring

Identifier of the payment that is being linked.

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

Identifier of the entity this payment is linked to (e.g., invoiceId).

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

Type of entity this payment is linked to.

Enum"invoice""creditNote""other"
curl -i -X PATCH \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/linked-payment/{linkedPaymentId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "amount": "100.00",
    "currency": "string",
    "extensions": {},
    "paymentId": "123e4567-e89b-12d3-a456-426614174000",
    "targetId": "123e4567-e89b-12d3-a456-426614174000",
    "targetType": "invoice"
  }'

Responses

Linked Payment updated successfully

Bodyapplication/json
amountstringrequired

Monetary amount of the payment applied to the target, as a decimal string.

Example: "100.00"
createdAtstring(date-time)required

Timestamp when this linked payment record was created.

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

ISO 4217 currency code for the linked amount.

extensionsobjectrequired

Vendor- or practice-specific extensions.

linkedPaymentIdstringrequired

Canonical identifier for this linked payment record.

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

Identifier of the payment that is being linked.

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

Identifier of the entity this payment is linked to (e.g., invoiceId).

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

Type of entity this payment is linked to.

Enum"invoice""creditNote""other"
updatedAtstring(date-time)required

Timestamp when this linked payment record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "amount": "100.00", "createdAt": "2025-01-01T00:00:00.000Z", "currency": "string", "extensions": {}, "linkedPaymentId": "123e4567-e89b-12d3-a456-426614174000", "paymentId": "123e4567-e89b-12d3-a456-426614174000", "targetId": "123e4567-e89b-12d3-a456-426614174000", "targetType": "invoice", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Fully replaces an existing Linked Payment. All fields must be provided.

Security
bearer
Path
siteIdnumberrequired

Site identifier

linkedPaymentIdstringrequired

Linked Payment unique identifier (UUID)

Bodyapplication/jsonrequired
amountstringrequired

Monetary amount of the payment applied to the target, as a decimal string.

Example: "100.00"
currencystringrequired

ISO 4217 currency code for the linked amount.

extensionsobjectrequired

Vendor- or practice-specific extensions.

paymentIdstringrequired

Identifier of the payment that is being linked.

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

Identifier of the entity this payment is linked to (e.g., invoiceId).

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

Type of entity this payment is linked to.

Enum"invoice""creditNote""other"
curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/linked-payment/{linkedPaymentId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "amount": "100.00",
    "currency": "string",
    "extensions": {},
    "paymentId": "123e4567-e89b-12d3-a456-426614174000",
    "targetId": "123e4567-e89b-12d3-a456-426614174000",
    "targetType": "invoice"
  }'

Responses

Linked Payment replaced successfully

Bodyapplication/json
amountstringrequired

Monetary amount of the payment applied to the target, as a decimal string.

Example: "100.00"
createdAtstring(date-time)required

Timestamp when this linked payment record was created.

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

ISO 4217 currency code for the linked amount.

extensionsobjectrequired

Vendor- or practice-specific extensions.

linkedPaymentIdstringrequired

Canonical identifier for this linked payment record.

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

Identifier of the payment that is being linked.

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

Identifier of the entity this payment is linked to (e.g., invoiceId).

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

Type of entity this payment is linked to.

Enum"invoice""creditNote""other"
updatedAtstring(date-time)required

Timestamp when this linked payment record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "amount": "100.00", "createdAt": "2025-01-01T00:00:00.000Z", "currency": "string", "extensions": {}, "linkedPaymentId": "123e4567-e89b-12d3-a456-426614174000", "paymentId": "123e4567-e89b-12d3-a456-426614174000", "targetId": "123e4567-e89b-12d3-a456-426614174000", "targetType": "invoice", "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Permanently deletes a Linked Payment record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

linkedPaymentIdstringrequired

Linked Payment unique identifier (UUID)

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

Responses

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