Skip to main content

Discard Information

The GetDiscardReceivingInfo endpoint returns information for a specific discard in the MIMS system.


How to query discard information

HTTP POST Request

Request TypeExample URL
POST{{url_base}}/GetDiscardReceivingInfo
Examplehttp://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"GetDiscardReceivingInfo"

Input Parameters

ParameterTypeRequiredDescription
BranchNoString(25)YesExternal branch code
ReceivingNoString(25)NoExternal live animal receiving code
AnimalWeighingOrderNoString(25)NoExternal weighing order code
ResponsibleTypeResponsibleTypeNoEnumerator with possible values for Responsible Type: rsSlaughterhouse (Slaughterhouse), rsFarm (Farm), rsCatching (Catch) or rsTransport (Transport)
Observation
  • At least one of the parameters must be informed: ReceivingNo or AnimalWeighingOrderNo

Return

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information on method execution
DiscardReceivingInfoDataListGetDiscardReceivingInfoDataListYesObject containing discard information

📝 GetDiscardReceivingInfoDataList Object

The GetDiscardReceivingInfoDataList object represents a list of discard information in the MIMS system

Return Parameters

ParameterTypeRequiredDescription
AnimalWeighingOrderNoString(25)YesExternal weighing order code
FarmNoString(25)YesExternal property code
LotNoString(40)YesExternal lot code
CatchCrewNoString(25)YesExternal catch crew code
VehiclePlateNoString(10)YesVehicle plate
VehicleNoString(25)YesExternal vehicle code
DiscardDateDateYesDiscard date
DiscardReasonNoString(20)YesExternal discard reason code
DiscardTypeDiscardTypeYesEnumerator with possible values for Discard Type: dtBruise (Bruise), dtCondemnation (Condemnation) or dtLoss (Loss)
DiscardReasonTypeDiscardReasonTypeYesEnumerator with possible values for Discard Reason Type: drDiscard (Discard) or drNoConformity (Non-conformity)
CondemnationTypeCondemnationTypeYesEnumerator with possible values for Condemnation Type: ctPartial (Partial) or ctTotal (Total)
ResponsibleTypeResponsibleTypeYesEnumerator with possible values for Responsible Type: rsSlaughterhouse (Slaughterhouse), rsFarm (Farm), rsCatching (Catch) or rsTransport (Transport)
DiscardWeightFloatYesCondemned weight
DiscardQtyIntegerYesQuantity of condemned heads
HangingSequenceIntegerYesHanging sequence (Bird Slaughter Order)

Request Example

curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"GetDiscardReceivingInfo"' \
--header 'Content-Type: application/json' \
--data '{
"ReceivingNo": "56584",
"AnimalWeighingOrderNo": "10100036184",
"BranchNo": "101",
"ResponsibleType": "rsSlaughterhouse"
}'

Response Example

{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
},
"DiscardReceivingInfoDataList": [
{
"AnimalWeighingOrderNo": "10100036184",
"FarmNo": "157130",
"LotNo": "06",
"CatchCrewNo": "006",
"VehicleNo": "",
"VehiclePlateNo": "OJI1A08",
"DiscardDate": "2023-07-29",
"DiscardType": "dtCondemnation",
"DiscardReasonNo": "Contaminacao",
"DiscardReasonType": "drDiscard",
"CondemnationType": "ctPartial",
"ResponsibleType": "rsSlaughterhouse",
"DiscardWeight": 2.214,
"DiscardQty": 0,
"HangingSequence": 29
}
]
}

🐞 Possible Errors

CodeMessage
GDR‑001The informed discard was not found!
GDR‑002The "External Live Bird Receiving Code (ReceivingNo)" parameter and the "External Weighing Order Code (AnimalWeighingOrderNo)" parameter were not informed. Inform at least one!