Inventory Adjustments
Version 1
Schema
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"title": "Barrett Distribution Centers, Inc. Inventory Adjustments Schema",
"description": "Version 1",
"additionalProperties": false,
"properties": {
"customerId": {
"type": "string"
},
"inventoryAdjustments": {
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/inventoryAdjustment"
}
}
},
"required": [
"customerId",
"inventoryAdjustments"
],
"definitions": {
"inventoryAdjustment": {
"type": "object",
"additionalProperties": false,
"properties": {
"adjustmentDate": {
"type": "string",
"format": "dateTime"
},
"itemId": {
"type": "string"
},
"quantity": {
"type": "integer"
},
"uom": {
"type": "string"
},
"statusId": {
"type": "string"
},
"reason": {
"type": "string"
},
"facility": {
"type": "string"
},
"po": {
"type": "string"
},
"lotNumber": {
"type": "string"
},
"expriationDate": {
"type": "string",
"format": "dateTime"
},
"manufactureDate": {
"type": "string",
"format": "dateTime"
}
},
"required": [
"adjustmentDate",
"itemId",
"statusId",
"quantity",
"uom",
"facility"
]
}
}
}
Sample
{
"customerId": "8675309",
"inventoryAdjustments": [
{
"adjustmentDate": "2022-06-17T7:30:44+000",
"itemId": "ITEM16",
"statusId": "AVAILABLE",
"facility": "MBC",
"uom": "EA",
"quantity": -9989,
"reason":"Damaged Item"
},{
"adjustmentDate": "2022-06-17T7:30:44+000",
"itemId": "ITEM16",
"statusId": "DAMAGED",
"facility": "MBC",
"uom": "EA",
"quantity": 9989,
"reason":"Damaged Item"
},{
"adjustmentDate": "2022-05-13T9:44:29+000",
"itemId": "ITEM13",
"statusId": "ON HOLD",
"facility": "MBC",
"uom": "EA",
"quantity": 5,
"reason":"Recpt great than Prev. Reptd(EDI)",
"po": "1000001"
}
]
}
Railroad Diagrams
Note
Items in green represent the properties that are always present. Items in blue represent additional properties that may or may not be present.