Logistics
Stock Correction

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":{...}
}

PropertyTypeMandatoryDescription
messageHeaderMessageHeaderMMessage header information
stockCorrectionStockCorrectionMStock Correction

StockCorrection


"...": {
	"warehouse": {...},
	"stockCorrectionId": 34535,
    "movementType": "",
	"movementReference1": "REF/8345",
	"movementReference2": "0015430",
	"movementNumber": "ORD-987623",
    "quantity":"2",
    "serialNumbers": ["123456789", "890123"],
	"packagingUnit":"BOX",
	"positions": [{...}],
}

PropertyTypeLengthMandatoryDescription
warehouseWarehouseM
stockCorrectionIdIntegerM
movementTypeString35M
movementReference1String35O
movementReference2String35O
movementNumberString35O
quantityIntegerM
serialNumbersArray[String]O
packagingUnitString3M
positionsStockCorrectionPositionM
StockCorrectionPosition
"...": {
    "changeFrom": {...},
    "changeTo": {...},
	}
PropertyTypeLengthMandatoryDescription
changeFromchangeFromO
changeTochangeToM
changeFrom
"...": {
	"itemFrom": "item1",
    "ssccFrom": "",
    "storageLocationFrom": "ABC-123",
	"batchNumberFrom": "",
	"allocationNumberFrom": "",
	"blockReasonFrom": "DMG",
	"mheFrom": "",
	"mheReferenceFrom": "",
	"customsStatusFrom": "1",
	"customsReferenceFrom": "",
	"fifoDateFrom": "",
	"bestBeforeDateFrom": "",
	"productionDateFrom": ""
	}
PropertyTypeLengthMandatoryDescription
itemFromString20M
ssccFromString18M
storageLocationFromStringO
batchNumberFromString35O
allocationNumberFromString35O
blockReasonFromString3O
mheFromString3O
mheReferenceFromString35O
customsStatusFromString1OCustoms status (0 = duty free 1 = custom goods).
customsReferenceFromString35O
fifoDateFromApiDateO
bestBeforeDateFromApiDateO
productionDateFromApiDateO
changeTo
"...": {
	"itemTo": "item1",
    "ssccTo": "",
    "storageLocationTo": "ABC-123",
	"batchNumberTo": "",
	"allocationNumberTo": "",
	"blockReasonTo": "DMG",
	"mheTo": "",
	"mheReferenceTo": "",
	"customsStatusTo": "1",
	"customsReferenceTo": "",
	"fifoDateTo": "",
	"bestBeforeDateTo": "",
	"productionDateTo": ""
	}
PropertyTypeLengthMandatoryDescription
itemToString20M
ssccToString18M
storageLocationToStringO
batchNumberToString35O
allocationNumberToString35O
blockReasonToString3O
mheToString3O
mheReferenceToString35O
customsStatusToString1OCustoms status (0 = duty free 1 = custom goods).
customsReferenceToString35O
fifoDateToStringApiDateO
bestBeforeDateToStringApiDateO
productionDateToStringApiDateO