V3_ItemInventory_Scrap (Delete)
- Last UpdatedNov 06, 2025
- 2 minute read
| Delete | V3_ItemInventory_Scrap |
Resource Path:/api/v3/ItemInventory/Scrap
| Name | Description |
|---|---|
| trans_id | Used to supply the ID of the transaction if the call is taking part in a transaction. |
The request body is of type Mes.WebApi.Models.V3.EnProd.ScrapInventory.
Note: Because this operation is a Delete operation that uses a model, it is not supported for typical REST API calls. Use the ScrapWithStorageExec Put operation instead.
The following ScrapInventory model properties are required, unless you want to scrap all inventory. In that case, set the item_id property to null.
- To identify the entity from which the scrapped inventory quantity is being consumed: from_ent_id.
- To identify the item whose inventory is being scrapped: item_id. If null is passed, all inventory is scrapped.
- To specify the inventory quantity being scrapped: qty_cons. If a quantity is not provided, it defaults to 0 (e.g., can be null if item_id is null to scrap all inventory).
- To specify the grade code of the scrapped items: grade_cd. Can be null if item_id is null to scrap all inventory.
- To specify the status code of the scrapped items: status_cd. Can be null if item_id is null to scrap all inventory.
In addition to reducing the item quantity for the item inventory record, this endpoint adds a row to the Item_Cons table if it does not exist or updates an existing row in the table for the item quantity scrapped.
This operation calls the AddConsDirect stored procedure.