Fully replaces an existing Stock Adjustment Item. All fields must be provided.
Identifier of the ledger account associated with this adjustment line, if applicable.
Identifier of the inventory location where the adjustment is applied.
Identifier of the product being adjusted.
Quantity of product adjusted. Positive for increase, negative for decrease.
Identifier of the parent stock adjustment.
- Mock serverhttps://docs.axiomera.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment-item/{stockAdjustmentItemId}
- Local Developmenthttp://localhost:8083/site/{siteId}/ahds/v1/stock-adjustment-item/{stockAdjustmentItemId}
curl -i -X PUT \
'https://docs.axiomera.com/_mock/apis/animal-health/openapi/site/{siteId}/ahds/v1/stock-adjustment-item/{stockAdjustmentItemId}' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"batches": [
{
"batchId": "123e4567-e89b-12d3-a456-426614174000",
"createdAt": "2025-01-01T00:00:00.000Z",
"expiryDate": "2025-01-01",
"isActive": true,
"name": "Example Name",
"quantity": 1.23,
"type": "example",
"updatedAt": "2025-01-01T00:00:00.000Z"
}
],
"currency": "CODE-001",
"extensions": {},
"ledgerAccountId": "123e4567-e89b-12d3-a456-426614174000",
"locationId": "123e4567-e89b-12d3-a456-426614174000",
"productId": "123e4567-e89b-12d3-a456-426614174000",
"quantity": 1.23,
"stockAdjustmentId": "123e4567-e89b-12d3-a456-426614174000",
"unitPrice": "100.00"
}'Stock Adjustment Item replaced successfully
Timestamp when this stock adjustment item was created.
Identifier of the ledger account associated with this adjustment line, if applicable.
Identifier of the inventory location where the adjustment is applied.
Identifier of the product being adjusted.
Quantity of product adjusted. Positive for increase, negative for decrease.
Identifier of the parent stock adjustment.
Canonical identifier for this stock adjustment line item.
Unit price of the product at the time of adjustment, represented as a decimal string.
{ "batches": [ { … } ], "createdAt": "2025-01-01T00:00:00.000Z", "currency": "CODE-001", "extensions": {}, "ledgerAccountId": "123e4567-e89b-12d3-a456-426614174000", "locationId": "123e4567-e89b-12d3-a456-426614174000", "productId": "123e4567-e89b-12d3-a456-426614174000", "quantity": 1.23, "stockAdjustmentId": "123e4567-e89b-12d3-a456-426614174000", "stockAdjustmentItemId": "123e4567-e89b-12d3-a456-426614174000", "unitPrice": "100.00", "updatedAt": "2025-01-01T00:00:00.000Z" }