Skip to main content

Animal Receiving Information

The GetAnimalReceivingInfo endpoint returns a list with animal receiving or weighing order information in the MIMS system.


How to query animal receiving information

HTTP POST Request

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

Input Parameters

ParameterTypeRequiredDescription
ReceivingNoString(25)NoExternal code of the Live Animal Receiving
AnimalWeighingOrderNoString(25)NoExternal code of the Weighing Order
BranchNoString(25)YesExternal code of the Branch
SlaughterStartDateDataNoSlaughter start date
SlaughterEndDateDataNoSlaughter end date
Note
  • One of the parameters ReceivingNo or AnimalWeighingOrderNo must be filled
  • If the parameters SlaughterStartDate and SlaughterEndDate are provided, the parameters ReceivingNo and AnimalWeighingOrderNo are not necessary

Return

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information in method execution
GetAnimalReceivingInfoDataListGetAnimalReceivingInfoDataListYesObject containing receiving information

📝 GetAnimalReceivingInfoDataList Object

The GetAnimalReceivingInfoDataList object represents a list of Receiving/Weighing Order Information

Return Parameters

ParameterTypeRequiredDescription
AnimalWeighingOrderNoString(25)NoExternal code of the Weighing Order
VehiclePlateNoString(10)NoVehicle plate
VehicleNoString(25)NoExternal code of the vehicle
LotNoString(40)NoLot
FarmNoString(25)NoExternal code of the Property
ShedNoIntegerNoShed
CatchCrewNoString(25)NoCatch crew
SlaughterDateDataHoraNoSlaughter date
DeadAnimalsQtyFloatNoQuantity of Dead Animals in Transport
HeadsQtyFloatNoSlaughtered heads
GrossWeightFloatNoGross Weight
TareWeightFloatNoTare
NetWeightFloatNoNet Weight
InvoiceString(40)NoProducer invoice
GTANoFloatNoGTA number
GTASeriesString(5)NoGTA series
ShiftFloatNoShift number
CatchingStartDateDataHoraNoCatching Start Date
CatchingEndDateDataHoraNoCatching End Date
CatchingTimeString(8)NoCatching Time
DepartureDateDataHoraNoFarm Departure Date
ArriveDateDataHoraNoTruck Arrival Date at Company
HangingStartDateDataHoraNoHanging Start Date
HangingEndDateDataHoraNoHanging End Date
AnimalPerCageQtyIntegerNoQuantity of Animals per Cage
TransportStartDateDataHoraNoTransport start date
TransportEndDateDataHoraNoTransport end date
HangingSequenceIntegerNoHanging sequence, bird slaughter order


Request Example

curl --location 'http://10.5.7.4:8081/datasnap/rest/RESTWebServiceMethods/"GetAnimalReceivingInfo"' \
--header 'Content-Type: application/json' \
--data '{
"SlaughterStartDate": "2025-05-01",
"SlaughterEndDate": "2025-05-30",
"BranchNo": "01"
}'

Response Example

{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
},
"GetAnimalReceivingInfoDataList": [
{
"ReceivingNo": "12345",
"AnimalWeighingOrderNo": "67890",
"BranchNo": "001",
"SlaughterStartDate": "2024-02-01T00:00:00",
"SlaughterEndDate": "2024-02-02T23:59:59"
}
]
}

🐞 Possible Errors

CodeMessage
GAR‑001The informed Animal Receiving was not found!
GAR‑002The "External Code of Live Bird Receiving (ReceivingNo)" parameter and the "External Code of Weighing Order (AnimalWeighingOrderNo)" parameter were not provided. Provide at least one!
GAR‑003The provided Slaughter End Date (SlaughterEndDate) parameter is less than the provided Slaughter Start Date (SlaughterStartDate) parameter!