V3_Consumption_AddConsByJob (Post)
- Last UpdatedNov 06, 2025
- 1 minute read
| Post | V3_Consumption_AddConsByJob |
Resource Path:/api/v3/Consumption/ByJob
| 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.Consumption.
Required. The property information for the item consumption being added.
The response body is of type Mes.WebApi.Models.V3.EnProd.Consumption.
OKThe following Consumption model properties are required:
- To identify the entity: ent_name and, if using sites, site_name.
- To identify the user who is adding the consumption: user_id.
- To identify the job: wo_id, oper_id, and seq_no.
- To specify the quantity: qty_cons.
- To specify the BOM position: bom_pos.
The job_pos property value is ignored.
Other Behaviors of This Endpoint
- If any of the lot, container, reason code, or entity values are provided, then they are written to the Job_Bom table and used as the defaults for future transactions where the defaults are to be applied.
- If the fg_lot_no column is provided, then it is remembered for the item being produced.
- If the update_inv flag is set for this BOM position, then the qty_left column in the Item_Inv record will be reduced by the consumed qty_cons.