# Replace stock adjustment item Fully replaces an existing Stock Adjustment Item. All fields must be provided. Endpoint: PUT /site/{siteId}/ahds/v1/stock-adjustment-item/{stockAdjustmentItemId} Version: 1.0 Security: bearer ## Path parameters: - `siteId` (number, required) Site identifier - `stockAdjustmentItemId` (string, required) Stock Adjustment Item unique identifier (UUID) ## Request fields (application/json): - `batches` (array, required) Batch-level breakdown of the stock adjustment. - `batches.batchId` (string,null) Identifier of the batch record. Example: "123e4567-e89b-12d3-a456-426614174000" - `batches.createdAt` (string,null) Timestamp when this batch record was created. Example: "2025-01-01T00:00:00.000Z" - `batches.expiryDate` (string,null) Expiry date of the batch, if applicable. Example: "2025-01-01" - `batches.isActive` (boolean,null) If true, the batch is active. - `batches.name` (string,null) Batch or lot name/number. - `batches.quantity` (number,null) Quantity from this batch associated with the receive invoice item. - `batches.type` (string,null) Batch type classification. - `batches.updatedAt` (string,null) Timestamp when this batch record was last modified. Example: "2025-01-01T00:00:00.000Z" - `currency` (string, required) ISO 4217 currency code for the unitPrice. - `extensions` (object, required) Vendor- or practice-specific extensions. - `ledgerAccountId` (string, required) Identifier of the ledger account associated with this adjustment line, if applicable. Example: "123e4567-e89b-12d3-a456-426614174000" - `locationId` (string, required) Identifier of the inventory location where the adjustment is applied. Example: "123e4567-e89b-12d3-a456-426614174000" - `productId` (string, required) Identifier of the product being adjusted. Example: "123e4567-e89b-12d3-a456-426614174000" - `quantity` (number, required) Quantity of product adjusted. Positive for increase, negative for decrease. - `stockAdjustmentId` (string, required) Identifier of the parent stock adjustment. Example: "123e4567-e89b-12d3-a456-426614174000" - `unitPrice` (string, required) Unit price of the product at the time of adjustment, represented as a decimal string. Example: "100.00" ## Response 200 fields (application/json): - `batches` (array, required) Batch-level breakdown of the stock adjustment. - `batches.batchId` (string,null) Identifier of the batch record. Example: "123e4567-e89b-12d3-a456-426614174000" - `batches.createdAt` (string,null) Timestamp when this batch record was created. Example: "2025-01-01T00:00:00.000Z" - `batches.expiryDate` (string,null) Expiry date of the batch, if applicable. Example: "2025-01-01" - `batches.isActive` (boolean,null) If true, the batch is active. - `batches.name` (string,null) Batch or lot name/number. - `batches.quantity` (number,null) Quantity from this batch associated with the receive invoice item. - `batches.type` (string,null) Batch type classification. - `batches.updatedAt` (string,null) Timestamp when this batch record was last modified. Example: "2025-01-01T00:00:00.000Z" - `createdAt` (string, required) Timestamp when this stock adjustment item was created. Example: "2025-01-01T00:00:00.000Z" - `currency` (string, required) ISO 4217 currency code for the unitPrice. - `extensions` (object, required) Vendor- or practice-specific extensions. - `ledgerAccountId` (string, required) Identifier of the ledger account associated with this adjustment line, if applicable. Example: "123e4567-e89b-12d3-a456-426614174000" - `locationId` (string, required) Identifier of the inventory location where the adjustment is applied. Example: "123e4567-e89b-12d3-a456-426614174000" - `productId` (string, required) Identifier of the product being adjusted. Example: "123e4567-e89b-12d3-a456-426614174000" - `quantity` (number, required) Quantity of product adjusted. Positive for increase, negative for decrease. - `stockAdjustmentId` (string, required) Identifier of the parent stock adjustment. Example: "123e4567-e89b-12d3-a456-426614174000" - `stockAdjustmentItemId` (string, required) Canonical identifier for this stock adjustment line item. Example: "123e4567-e89b-12d3-a456-426614174000" - `unitPrice` (string, required) Unit price of the product at the time of adjustment, represented as a decimal string. Example: "100.00" - `updatedAt` (string, required) Timestamp when this stock adjustment item was last updated. Example: "2025-01-01T00:00:00.000Z" ## Response 400 fields ## Response 401 fields ## Response 404 fields