Skip to content

Stock Adjustment Notification

When a stock adjustment occurs in the warehouse (e.g. damage, count correction), the WMS sends a notification to the host system.

Direction WMS → Host

HTTP Method POST

Path {host-url}/api/stock-adjustment

{
"warehouseName": "WAREHOUSE_01",
"warehouseReference": "ADJ-2024-001234",
"occurredAt": "2024-01-25T10:30:00.000Z",
"reason": "Damaged during pick",
"reasonCode": "DAMAGED_IN_WAREHOUSE",
"fromStatus": "GOOD",
"toStatus": "DAMAGED",
"stockAdjustmentDetail": {
"productId": "PROD-ABC123",
"quantity": 5,
"stockOwner": "OWNER_A",
"batchId": "BATCH-001",
"expiryDate": "2025-06-30",
"unitIdentifierCollections": []
}
}
FieldTypeDescription
warehouseNamestringIdentifier of the warehouse where the adjustment occurred
warehouseReferencestringUnique reference for this stock adjustment
occurredAtDateTimeTimestamp when the adjustment took place
reasonstringHuman-readable reason for the adjustment
reasonCodestringMachine-readable reason code
fromStatusstringOriginal stock status (GOOD, DAMAGED, HELD, TRANSFER, QA, QC, AGED, KITTING, EXPIRED, DAMAGED_RETURNS, FAULTY_RETURNS)
toStatusstringNew stock status (same values as fromStatus)
stockAdjustmentDetailobjectDetails of the affected stock
stockAdjustmentDetail.productIdstringProduct identifier
stockAdjustmentDetail.quantityintegerQuantity adjusted
stockAdjustmentDetail.stockOwnerstringOwner of the stock
stockAdjustmentDetail.batchIdstringBatch identifier
stockAdjustmentDetail.expiryDatestringExpiry date of the batch
stockAdjustmentDetail.unitIdentifierCollectionsarrayCollection of unit identifiers (e.g. serial numbers)

200: Stock adjustment accepted by host