Skip to main content

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 TypeExample URL
POST{{url_base}}/PostAddMultipleProductionOrder
Examplehttp://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostAddMultipleProductionOrder"

Input Parameters

ParameterTypeRequiredDescription
ProductionOrderNoString(25)YesExternal production order number code
BranchNoString(25)YesExternal branch code
StandardDateDateYesStandard production date
ItemListAddMultipleProductionOrderItemListYesList of production order items

📝 AddMultipleProductionOrderItem Object

The AddMultipleProductionOrderItem object represents a list of items from a multiple production order

Input Parameters

ParameterTypeRequiredDescription
ProductNoString(25)YesExternal product code
SlaughterStructureNoString(25)YesExternal slaughter structure code
CustomerNoString(25)NoExternal customer code
CustomerAuxiliaryNoString(25)NoExternal auxiliary customer code
SalesOrderNoString(25)NoExternal sales order code
ShiftIntegerNoShift number
QtyIntegerNoQuantity to be produced
QtyIndividualUnitsIntegerNoQuantity in units to be produced
ControlPanelBooleanNoFlag indicating whether the item is controlled by the control panel
LabelTemplateIntegerNoLabel code
TagString(25)NoTag
WeightFloatNoWeight to be produced
AlertOvermeasureProductsBooleanNoFlag indicating whether the item alerts overmeasure products
StartAlertIntegerNoQuantity of products to start the alert
BlockOvermeasureProductsBooleanNoFlag indicating whether it blocks overmeasure production
PriorityIntegerNoPriority
StructureVersionIntegerNoAnalytical structure version

Return

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information on method execution
MultipleProductionOrderCodeIntegerYesInternal 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

CodeMessage
AMP‑001The informed Label Template does not exist!
AMP‑002It is necessary to inform at least one quantity!
AMP‑003It is necessary to inform only one quantity!
AMP‑004The informed "ProductionOrderNo" already exists!
AMP‑005There 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 TypeExample URL
POST{{url_base}}/PostDeleteMultipleProductionOrder
Examplehttp://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostDeleteMultipleProductionOrder"

Input Parameters

ParameterTypeRequiredDescription
ProductionOrderNoString(25)YesExternal production order item number code
ErrorIfNotFoundBooleanYesFlag indicating error if the item is not found

Return

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard 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

CodeMessage
DMP‑001The informed production order code does not exist!
DMP‑002The informed production order code is a fixed record, deletion not allowed!
DMP‑003There are Batches created for the informed production order code, deletion not allowed!
DMP‑004Production has already been started for the informed production order code, deletion not allowed!
DMP‑005Production has already been synchronized for the informed production order code, deletion not allowed!