Discard Information
The GetDiscardReceivingInfo endpoint returns information for a specific discard in the MIMS system.
How to query discard information
HTTP POST Request
| Request Type | Example URL |
|---|---|
| POST | {{url_base}}/GetDiscardReceivingInfo |
| Example | http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"GetDiscardReceivingInfo" |
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| BranchNo | String(25) | Yes | External branch code |
| ReceivingNo | String(25) | No | External live animal receiving code |
| AnimalWeighingOrderNo | String(25) | No | External weighing order code |
| ResponsibleType | ResponsibleType | No | Enumerator 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:
ReceivingNoorAnimalWeighingOrderNo
Return
| Parameter | Type | Required | Description |
|---|---|---|---|
| WebServiceReturn | WebServiceReturn | Yes | Standard WebService response information on method execution |
| DiscardReceivingInfoDataList | GetDiscardReceivingInfoDataList | Yes | Object containing discard information |
📝 GetDiscardReceivingInfoDataList Object
The GetDiscardReceivingInfoDataList object represents a list of discard information in the MIMS system
Return Parameters
Parameter Type Required Description AnimalWeighingOrderNo String(25) Yes External weighing order code FarmNo String(25) Yes External property code LotNo String(40) Yes External lot code CatchCrewNo String(25) Yes External catch crew code VehiclePlateNo String(10) Yes Vehicle plate VehicleNo String(25) Yes External vehicle code DiscardDate Date Yes Discard date DiscardReasonNo String(20) Yes External discard reason code DiscardType DiscardType Yes Enumerator with possible values for Discard Type: dtBruise(Bruise),dtCondemnation(Condemnation) ordtLoss(Loss)DiscardReasonType DiscardReasonType Yes Enumerator with possible values for Discard Reason Type: drDiscard(Discard) ordrNoConformity(Non-conformity)CondemnationType CondemnationType Yes Enumerator with possible values for Condemnation Type: ctPartial(Partial) orctTotal(Total)ResponsibleType ResponsibleType Yes Enumerator with possible values for Responsible Type: rsSlaughterhouse(Slaughterhouse),rsFarm(Farm),rsCatching(Catch) orrsTransport(Transport)DiscardWeight Float Yes Condemned weight DiscardQty Integer Yes Quantity of condemned heads HangingSequence Integer Yes Hanging 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
| Code | Message |
|---|---|
| GDR‑001 | The informed discard was not found! |
| GDR‑002 | The "External Live Bird Receiving Code (ReceivingNo)" parameter and the "External Weighing Order Code (AnimalWeighingOrderNo)" parameter were not informed. Inform at least one! |