Multiple Production Order
Multiple Production Order Registration
The PostAddMultipleProductionOrder endpoint is responsible for registering a Multiple Production Order in the MIMS system and can be consulted through PRO181.
How to register a Multiple Production Order
HTTP POST Request
| Request Type | Example URL |
|---|---|
| POST | {{url_base}}/PostAddMultipleProductionOrder |
| Example | http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostAddMultipleProductionOrder" |
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| ProductionOrderNo | String(25) | Yes | External production order number code |
| BranchNo | String(25) | Yes | External branch code |
| StandardDate | Date | Yes | Standard production date |
| ItemList | AddMultipleProductionOrderItemList | Yes | List of production order items |
📝 AddMultipleProductionOrderItem Object
The AddMultipleProductionOrderItem object represents a list of items from a multiple production order
Input Parameters
Parameter Type Required Description ProductNo String(25) Yes External product code SlaughterStructureNo String(25) Yes External slaughter structure code CustomerNo String(25) No External customer code CustomerAuxiliaryNo String(25) No External auxiliary customer code SalesOrderNo String(25) No External sales order code Shift Integer No Shift number Qty Integer No Quantity to be produced QtyIndividualUnits Integer No Quantity in units to be produced ControlPanel Boolean No Flag indicating whether the item is controlled by the control panel LabelTemplate Integer No Label code Tag String(25) No Tag Weight Float No Weight to be produced AlertOvermeasureProducts Boolean No Flag indicating whether the item alerts overmeasure products StartAlert Integer No Quantity of products to start the alert BlockOvermeasureProducts Boolean No Flag indicating whether it blocks overmeasure production Priority Integer No Priority StructureVersion Integer No Analytical structure version
Return
| Parameter | Type | Required | Description |
|---|---|---|---|
| WebServiceReturn | WebServiceReturn | Yes | Standard WebService response information on method execution |
| MultipleProductionOrderCode | Integer | Yes | Internal multiple production order code generated in the MIMS system |
Request Example
curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostAddMultipleProductionOrder"' \
--header 'Content-Type: application/json' \
--data '{
"ProductionOrderNo": "OP123456",
"BranchNo": "101",
"StandardDate": "2025-02-07T00:00:00Z",
"ItemList": [
{
"ProductNo": "PROD-001",
"SlaughterStructureNo": "SLG-001",
"CustomerNo": "CLI-123",
"CustomerAuxiliaryNo": "CLI-AUX-45",
"SalesOrderNo": "PED-789",
"Shift": 1,
"Qty": 100,
"QtyIndividualUnits": 100,
"ControlPanel": true,
"LabelTemplate": 5,
"Tag": "TAG-P001",
"Weight": 1250.75,
"AlertOvermeasureProducts": true,
"StartAlert": 90,
"BlockOvermeasureProducts": false,
"Priority": 1,
"StructureVersion": 3
}
]
}'
Response Example
{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
},
"MultipleProductionOrderCode": 12345
}
🐞 Possible Errors
| Code | Message |
|---|---|
| AMP‑001 | The informed Label Template does not exist! |
| AMP‑002 | It is necessary to inform at least one quantity! |
| AMP‑003 | It is necessary to inform only one quantity! |
| AMP‑004 | The informed "ProductionOrderNo" already exists! |
| AMP‑005 | There is already a production order for the dispatched product on the requested date, operation not allowed! |
Multiple Production Order Deletion
The PostDeleteMultipleProductionOrder endpoint is responsible for executing the deletion of a Multiple Production Order in the MIMS system.
How to delete a Multiple Production Order
HTTP POST Request
| Request Type | Example URL |
|---|---|
| POST | {{url_base}}/PostDeleteMultipleProductionOrder |
| Example | http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostDeleteMultipleProductionOrder" |
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| ProductionOrderNo | String(25) | Yes | External production order item number code |
| ErrorIfNotFound | Boolean | Yes | Flag indicating error if the item is not found |
Return
| Parameter | Type | Required | Description |
|---|---|---|---|
| WebServiceReturn | WebServiceReturn | Yes | Standard WebService response information on method execution |
Request Example
curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostDeleteMultipleProductionOrder"' \
--header 'Content-Type: application/json' \
--data '{
"ProductionOrderNo": "OP123456",
"ErrorIfNotFound": false
}'
Response Example
{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
}
}
🐞 Possible Errors
| Code | Message |
|---|---|
| DMP‑001 | The informed production order code does not exist! |
| DMP‑002 | The informed production order code is a fixed record, deletion not allowed! |
| DMP‑003 | There are Batches created for the informed production order code, deletion not allowed! |
| DMP‑004 | Production has already been started for the informed production order code, deletion not allowed! |
| DMP‑005 | Production has already been synchronized for the informed production order code, deletion not allowed! |