RECEIVE Stock Corrections
messageType: logistics.stockCorrections
Receive stock corrections from logistics management system.
Filename format: <location>_<operative>_SC_<YYYYMMDD>_<uniqueId>.<extensions>
Sample files
{
"messageHeader":{...},
"stockCorrection":{...}
}
Property | Type | Mandatory | Description |
---|---|---|---|
messageHeader | MessageHeader | M | Message header information |
stockCorrection | StockCorrection | M | Stock Correction |
StockCorrection
"...": {
"warehouse": {...},
"stockCorrectionId": 34535,
"movementType": "",
"movementReference1": "REF/8345",
"movementReference2": "0015430",
"movementNumber": "ORD-987623",
"quantity":"2",
"serialNumbers": ["123456789", "890123"],
"packagingUnit":"BOX",
"positions": {...},
}
Property | Type | Length | Mandatory | Description |
---|---|---|---|---|
warehouse | Warehouse | M | ||
stockCorrectionId | Integer | M | ||
movementType | String | 35 | M | |
movementReference1 | String | 35 | O | |
movementReference2 | String | 35 | O | |
movementNumber | String | 35 | O | |
quantity | Integer | M | ||
serialNumbers | Array[String] | O | ||
packagingUnit | String | 3 | M | |
positions | StockCorrectionPosition | M |
StockCorrectionPosition
"...": {
"changeFrom": {...},
"changeTo": {...},
}
Property | Type | Length | Mandatory | Description |
---|---|---|---|---|
changeFrom | changeFrom | O | ||
changeTo | changeTo | M |
changeFrom
"...": {
"itemFrom": "item1",
"ssccFrom": "",
"storageLocationFrom": "ABC-123",
"batchNumberFrom": "",
"allocationNumberFrom": "",
"blockReasonFrom": "DMG",
"mheFrom": "",
"mheReferenceFrom": "",
"customsStatusFrom": "1",
"customsReferenceFrom": "",
"fifoDateFrom": "",
"bestBeforeDateFrom": "",
"productionDateFrom": ""
}
Property | Type | Length | Mandatory | Description |
---|---|---|---|---|
itemFrom | String | 20 | M | |
ssccFrom | String | 18 | M | |
storageLocationFrom | String | O | ||
batchNumberFrom | String | 35 | O | |
allocationNumberFrom | String | 35 | O | |
blockReasonFrom | String | 3 | O | |
mheFrom | String | 3 | O | |
mheReferenceFrom | String | 35 | O | |
customsStatusFrom | String | 1 | O | Customs status (0 = duty free 1 = custom goods). |
customsReferenceFrom | String | 35 | O | |
fifoDateFrom | ApiDate | O | ||
bestBeforeDateFrom | ApiDate | O | ||
productionDateFrom | ApiDate | O |
changeTo
"...": {
"itemTo": "item1",
"ssccTo": "",
"storageLocationTo": "ABC-123",
"batchNumberTo": "",
"allocationNumberTo": "",
"blockReasonTo": "DMG",
"mheTo": "",
"mheReferenceTo": "",
"customsStatusTo": "1",
"customsReferenceTo": "",
"fifoDateTo": "",
"bestBeforeDateTo": "",
"productionDateTo": ""
}
Property | Type | Length | Mandatory | Description |
---|---|---|---|---|
itemTo | String | 20 | M | |
ssccTo | String | 18 | M | |
storageLocationTo | String | O | ||
batchNumberTo | String | 35 | O | |
allocationNumberTo | String | 35 | O | |
blockReasonTo | String | 3 | O | |
mheTo | String | 3 | O | |
mheReferenceTo | String | 35 | O | |
customsStatusTo | String | 1 | O | Customs status (0 = duty free 1 = custom goods). |
customsReferenceTo | String | 35 | O | |
fifoDateTo | String | ApiDate | O | |
bestBeforeDateTo | String | ApiDate | O | |
productionDateTo | String | ApiDate | O |