Creates a new Stock Adjustment record. Stock Adjustment resource in the Animal Health Data Store
Security
bearer
When the stock adjustment occurred (RFC 3339).
Example:"2025-01-01T00:00:00.000Z"
Identifier of the ownership or separation context this stock adjustment belongs to.
Example:"123e4567-e89b-12d3-a456-426614174000"
- Mock serverhttps://docs.axiomera.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment
- Local Developmenthttp://localhost:8083/site/{siteId}/ahds/v1/stock-adjustment
curl -i -X POST \
'https://docs.axiomera.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": "example",
"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": "example",
"locationId": "123e4567-e89b-12d3-a456-426614174000",
"name": "Example Name",
"ownershipId": "123e4567-e89b-12d3-a456-426614174000",
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 1.23,
"salesPersonId": "123e4567-e89b-12d3-a456-426614174000",
"standardUnitPriceAmount": "100.00",
"standardUnitTaxAmount": "100.00",
"status": "example",
"taxCode": "CODE-001",
"taxPercent": 1.23,
"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.
Example:"2025-01-01T00:00:00.000Z"
When the stock adjustment occurred (RFC 3339).
Example:"2025-01-01T00:00:00.000Z"
Identifier of the ownership or separation context this stock adjustment belongs to.
Example:"123e4567-e89b-12d3-a456-426614174000"
Canonical identifier for the stock adjustment.
Example:"123e4567-e89b-12d3-a456-426614174000"
Response
{ "comments": "example", "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" }