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

Request

Fully replaces an existing Product Pricing. All fields must be provided.

Security
bearer
Path
siteIdnumberrequired

Site identifier

productPricingIdstringrequired

Product Pricing unique identifier (UUID)

Bodyapplication/jsonrequired
basedOnstringrequired

Indicates whether the pricing is defined directly by sell price or derived from markup on cost.

Enum"price""markup"
costPricestringrequired

Net cost price for the product in the billing currency, as a decimal string.

Example: "100.00"
currencystringrequired

ISO 4217 currency code for all monetary amounts in this record.

dispenseFeestringrequired

Additional dispense or handling fee applied per unit, as a decimal string.

Example: "100.00"
extensionsobjectrequired

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether this pricing record is currently active.

markupnumberrequired

Markup percentage applied to costPrice to derive sellPrice when basedOn = 'markup'. Expressed as a percentage (e.g., 20 for 20%).

ownershipIdstringrequired

Identifier of the ownership or business entity context for this pricing.

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

Identifier of the product this pricing applies to.

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

Sell price excluding tax in the billing currency, as a decimal string.

Example: "100.00"
sellPriceTaxstringrequired

Tax amount applicable to the sellPrice, as a decimal string.

Example: "100.00"
taxRateobjectrequired

Tax rate applied to this product pricing.

curl -i -X PUT \
  'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/product-pricing/{productPricingId}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "basedOn": "price",
    "costPrice": "100.00",
    "currency": "string",
    "dispenseFee": "100.00",
    "extensions": {},
    "isActive": true,
    "markup": 0,
    "ownershipId": "123e4567-e89b-12d3-a456-426614174000",
    "productId": "123e4567-e89b-12d3-a456-426614174000",
    "sellPrice": "100.00",
    "sellPriceTax": "100.00",
    "taxRate": {}
  }'

Responses

Product Pricing replaced successfully

Bodyapplication/json
basedOnstringrequired

Indicates whether the pricing is defined directly by sell price or derived from markup on cost.

Enum"price""markup"
costPricestringrequired

Net cost price for the product in the billing currency, as a decimal string.

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

Timestamp when this pricing record was created.

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

ISO 4217 currency code for all monetary amounts in this record.

dispenseFeestringrequired

Additional dispense or handling fee applied per unit, as a decimal string.

Example: "100.00"
extensionsobjectrequired

Vendor- or practice-specific extensions.

isActivebooleanrequired

Whether this pricing record is currently active.

markupnumberrequired

Markup percentage applied to costPrice to derive sellPrice when basedOn = 'markup'. Expressed as a percentage (e.g., 20 for 20%).

ownershipIdstringrequired

Identifier of the ownership or business entity context for this pricing.

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

Identifier of the product this pricing applies to.

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

Canonical identifier for this product pricing record.

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

Sell price excluding tax in the billing currency, as a decimal string.

Example: "100.00"
sellPriceTaxstringrequired

Tax amount applicable to the sellPrice, as a decimal string.

Example: "100.00"
taxRateobjectrequired

Tax rate applied to this product pricing.

updatedAtstring(date-time)required

Timestamp when this pricing record was last updated.

Example: "2025-01-01T00:00:00.000Z"
Response
application/json
{ "basedOn": "price", "costPrice": "100.00", "createdAt": "2025-01-01T00:00:00.000Z", "currency": "string", "dispenseFee": "100.00", "extensions": {}, "isActive": true, "markup": 0, "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "productId": "123e4567-e89b-12d3-a456-426614174000", "productPricingId": "123e4567-e89b-12d3-a456-426614174000", "sellPrice": "100.00", "sellPriceTax": "100.00", "taxRate": {}, "updatedAt": "2025-01-01T00:00:00.000Z" }

Request

Permanently deletes a Product Pricing record.

Security
bearer
Path
siteIdnumberrequired

Site identifier

productPricingIdstringrequired

Product Pricing unique identifier (UUID)

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

Responses

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