Mes.WebApi.Models.V3.EnProd.ScrapInventory JSON Schema
- Last UpdatedNov 06, 2025
- 2 minute read
The ScrapInventory model represents the object that is used to scrap quantities from an item inventory. This model is used with the Item Inventory Scrap Delete operation.
| Name | Description | Data Type |
|---|---|---|
| from_ent_id | The ID of the entity at which the inventory to be scrapped is stored. | integer |
| item_id | The item ID. When using the item inventory Scrap endpoint, this property can be set to null to scrap all inventory. | string |
| lot_no | The item's lot number. | string |
| sublot_no | The item's sublot number. | string |
| qty_cons | The amount of quantity to be scrapped. Can be null (e.g., if item_id is null to scrap all inventory).The default is 0. | number |
| reas_cd | The item reason code for scrapping the inventory. | integer |
| grade_cd | The item's grade code. Can be null if item_id is null to scrap all inventory. | integer |
| status_cd | The item's status code. Can be null if item_id is null to scrap all inventory. | integer |
| user_id | The ID of the user who ran the job that scraps the item. | string |
| wo_id | The work order ID of the job that produces the inventory. | string |
| oper_id | The operation ID of the job that produces the inventory. | string |
| seq_no | The sequence number of the job that produces the inventory. | integer |
| shift_start_utc | The shift start time, in UTC, that is used to identify the item consumption record. The scrapped quantity is also recorded as item consumption. | string |
| fg_lot_no | The finished goods lot number that is used to identify the item consumption record. The scrapped quantity is also recorded as item consumption. | string |
| fg_sublot_no | The finished goods sublot number that is used to identify the item consumption record. The scrapped quantity is also recorded as item consumption. | string |
| item_scrapped | Indicates whether the item is scrapped. This will always be true. | boolean |
| ent_id | The ID of the entity on which the job that produces the scrapped inventory is run. | integer |
| shift_id | The ID of the shift that is used to identify the item consumption record. The scrapped quantity is also recorded as item consumption. | integer |
| qty_cons_erp | The consumption quantity as transmitted to an ERP system. | number |
| ext_ref | The item's external reference (e.g., to an external system for defect tracking or any other purpose). | string |
| transaction_type | The transaction type enumerated value. 0 = normal 1 = lot split 2 = lot combination | integer |
| genealogy_id | The genealogy ID. | string |
| upstream_event_id | The upstream event ID. | string |
| segment_requirement_id | The segment requirement ID. | string |
| segment_response_id | The segment response ID. | string |
| comments | The comments about the scrapping of the inventory. | string |
| spare1 | The contents of the spare1 field. | string |
| spare2 | The contents of the spare2 field. | string |
| spare3 | The contents of the spare3 field. | string |
| spare4 | The contents of the spare4 field. | string |