Animal Health Data Store - V1 API Documentation
AHDS Store API (1.0)
https://docs.heydonto.com/_mock/apis/animal-health/openapi/
http://localhost:8083/
Line items that make up this stock adjustment.
Timestamp when the line item was created.
Discount applied to this line item, as a decimal string.
Grouping identifier for related line items.
Identifier for the invoice line item.
Ledger account associated with this line item.
Total amount for this line excluding tax.
Location associated with this line item.
Owning organization or business unit for this line item.
Product or service associated with this line item.
Salesperson associated with this line item.
Standard (list) unit price excluding tax.
Unit price excluding tax, as a decimal string.
When the stock adjustment occurred (RFC 3339).
Identifier of the ownership or separation context this stock adjustment belongs to.
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/stock-adjustment
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"comments": "string",
"extensions": {},
"lineItems": [
{
"createdAt": "2025-01-01T00:00:00.000Z",
"discountAmount": "100.00",
"extensions": {},
"groupId": "123e4567-e89b-12d3-a456-426614174000",
"invoiceLineItemId": "123e4567-e89b-12d3-a456-426614174000",
"isActive": true,
"ledgerAccountId": "123e4567-e89b-12d3-a456-426614174000",
"lineTaxAmount": "100.00",
"lineTotalAmount": "100.00",
"lineType": "string",
"locationId": "123e4567-e89b-12d3-a456-426614174000",
"name": "string",
"ownershipId": "123e4567-e89b-12d3-a456-426614174000",
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 0,
"salesPersonId": "123e4567-e89b-12d3-a456-426614174000",
"standardUnitPriceAmount": "100.00",
"standardUnitTaxAmount": "100.00",
"status": "string",
"taxCode": "string",
"taxPercent": 0,
"unitPriceAmount": "100.00",
"unitTaxAmount": "100.00",
"updatedAt": "2025-01-01T00:00:00.000Z"
}
],
"occurredAt": "2025-01-01T00:00:00.000Z",
"ownershipId": "123e4567-e89b-12d3-a456-426614174000",
"stockAdjustmentId": "123e4567-e89b-12d3-a456-426614174000"
}'Stock Adjustment created successfully
Timestamp when this stock adjustment record was created.
Line items that make up this stock adjustment.
Timestamp when the line item was created.
Discount applied to this line item, as a decimal string.
Grouping identifier for related line items.
Identifier for the invoice line item.
Ledger account associated with this line item.
Total amount for this line excluding tax.
Location associated with this line item.
Owning organization or business unit for this line item.
Product or service associated with this line item.
Salesperson associated with this line item.
Standard (list) unit price excluding tax.
Unit price excluding tax, as a decimal string.
When the stock adjustment occurred (RFC 3339).
Identifier of the ownership or separation context this stock adjustment belongs to.
Canonical identifier for the stock adjustment.
{ "comments": "string", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "lineItems": [ { … } ], "occurredAt": "2025-01-01T00:00:00.000Z", "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "stockAdjustmentId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/stock-adjustment
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment?page=0&pageSize=10&sortBy=createdAt&sortOrder=asc&comments=string&ownershipId=123e4567-e89b-12d3-a456-426614174000' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment/{stockAdjustmentId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/stock-adjustment/{stockAdjustmentId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment/{stockAdjustmentId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'Stock Adjustment found
Timestamp when this stock adjustment record was created.
Line items that make up this stock adjustment.
Timestamp when the line item was created.
Discount applied to this line item, as a decimal string.
Grouping identifier for related line items.
Identifier for the invoice line item.
Ledger account associated with this line item.
Total amount for this line excluding tax.
Location associated with this line item.
Owning organization or business unit for this line item.
Product or service associated with this line item.
Salesperson associated with this line item.
Standard (list) unit price excluding tax.
Unit price excluding tax, as a decimal string.
When the stock adjustment occurred (RFC 3339).
Identifier of the ownership or separation context this stock adjustment belongs to.
Canonical identifier for the stock adjustment.
{ "comments": "string", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "lineItems": [ { … } ], "occurredAt": "2025-01-01T00:00:00.000Z", "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "stockAdjustmentId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment/{stockAdjustmentId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/stock-adjustment/{stockAdjustmentId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment/{stockAdjustmentId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"comments": "string",
"extensions": {},
"lineItems": [
{
"createdAt": "2025-01-01T00:00:00.000Z",
"discountAmount": "100.00",
"extensions": {},
"groupId": "123e4567-e89b-12d3-a456-426614174000",
"invoiceLineItemId": "123e4567-e89b-12d3-a456-426614174000",
"isActive": true,
"ledgerAccountId": "123e4567-e89b-12d3-a456-426614174000",
"lineTaxAmount": "100.00",
"lineTotalAmount": "100.00",
"lineType": "string",
"locationId": "123e4567-e89b-12d3-a456-426614174000",
"name": "string",
"ownershipId": "123e4567-e89b-12d3-a456-426614174000",
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 0,
"salesPersonId": "123e4567-e89b-12d3-a456-426614174000",
"standardUnitPriceAmount": "100.00",
"standardUnitTaxAmount": "100.00",
"status": "string",
"taxCode": "string",
"taxPercent": 0,
"unitPriceAmount": "100.00",
"unitTaxAmount": "100.00",
"updatedAt": "2025-01-01T00:00:00.000Z"
}
],
"occurredAt": "2025-01-01T00:00:00.000Z",
"ownershipId": "123e4567-e89b-12d3-a456-426614174000"
}'Stock Adjustment updated successfully
Timestamp when this stock adjustment record was created.
Line items that make up this stock adjustment.
Timestamp when the line item was created.
Discount applied to this line item, as a decimal string.
Grouping identifier for related line items.
Identifier for the invoice line item.
Ledger account associated with this line item.
Total amount for this line excluding tax.
Location associated with this line item.
Owning organization or business unit for this line item.
Product or service associated with this line item.
Salesperson associated with this line item.
Standard (list) unit price excluding tax.
Unit price excluding tax, as a decimal string.
When the stock adjustment occurred (RFC 3339).
Identifier of the ownership or separation context this stock adjustment belongs to.
Canonical identifier for the stock adjustment.
{ "comments": "string", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "lineItems": [ { … } ], "occurredAt": "2025-01-01T00:00:00.000Z", "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "stockAdjustmentId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }
Line items that make up this stock adjustment.
Timestamp when the line item was created.
Discount applied to this line item, as a decimal string.
Grouping identifier for related line items.
Identifier for the invoice line item.
Ledger account associated with this line item.
Total amount for this line excluding tax.
Location associated with this line item.
Owning organization or business unit for this line item.
Product or service associated with this line item.
Salesperson associated with this line item.
Standard (list) unit price excluding tax.
Unit price excluding tax, as a decimal string.
When the stock adjustment occurred (RFC 3339).
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment/{stockAdjustmentId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/stock-adjustment/{stockAdjustmentId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment/{stockAdjustmentId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"comments": "string",
"extensions": {},
"lineItems": [
{
"createdAt": "2025-01-01T00:00:00.000Z",
"discountAmount": "100.00",
"extensions": {},
"groupId": "123e4567-e89b-12d3-a456-426614174000",
"invoiceLineItemId": "123e4567-e89b-12d3-a456-426614174000",
"isActive": true,
"ledgerAccountId": "123e4567-e89b-12d3-a456-426614174000",
"lineTaxAmount": "100.00",
"lineTotalAmount": "100.00",
"lineType": "string",
"locationId": "123e4567-e89b-12d3-a456-426614174000",
"name": "string",
"ownershipId": "123e4567-e89b-12d3-a456-426614174000",
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 0,
"salesPersonId": "123e4567-e89b-12d3-a456-426614174000",
"standardUnitPriceAmount": "100.00",
"standardUnitTaxAmount": "100.00",
"status": "string",
"taxCode": "string",
"taxPercent": 0,
"unitPriceAmount": "100.00",
"unitTaxAmount": "100.00",
"updatedAt": "2025-01-01T00:00:00.000Z"
}
],
"occurredAt": "2025-01-01T00:00:00.000Z",
"ownershipId": "123e4567-e89b-12d3-a456-426614174000"
}'Stock Adjustment replaced successfully
Timestamp when this stock adjustment record was created.
Line items that make up this stock adjustment.
Timestamp when the line item was created.
Discount applied to this line item, as a decimal string.
Grouping identifier for related line items.
Identifier for the invoice line item.
Ledger account associated with this line item.
Total amount for this line excluding tax.
Location associated with this line item.
Owning organization or business unit for this line item.
Product or service associated with this line item.
Salesperson associated with this line item.
Standard (list) unit price excluding tax.
Unit price excluding tax, as a decimal string.
When the stock adjustment occurred (RFC 3339).
Identifier of the ownership or separation context this stock adjustment belongs to.
Canonical identifier for the stock adjustment.
{ "comments": "string", "createdAt": "2025-01-01T00:00:00.000Z", "extensions": {}, "lineItems": [ { … } ], "occurredAt": "2025-01-01T00:00:00.000Z", "ownershipId": "123e4567-e89b-12d3-a456-426614174000", "stockAdjustmentId": "123e4567-e89b-12d3-a456-426614174000", "updatedAt": "2025-01-01T00:00:00.000Z" }
- Mock server
https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment/{stockAdjustmentId}
- Local Development
http://localhost:8083/site/{siteId}/ahds/v1/stock-adjustment/{stockAdjustmentId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.heydonto.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment/{stockAdjustmentId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'