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
  • At least one of the parameters ReceivingNo or AnimalWeighingOrderNo must be provided.
  • 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
AnimalReceivingInfoDataListAnimalReceivingInfoDataListYesList with animal receiving information

📝 AnimalReceivingInfoDataList Object

The AnimalReceivingInfoDataList object represents a list of animal receiving information.

Return Parameters

ParameterTypeRequiredDescription
AnimalReceivingNoString(25)NoExternal code of live animal receiving
AnimalReceivingCodeInt64NoInternal code of live animal receiving
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
SlaughteredAnimalsFloatNoQuantity of slaughtered animals
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
InitialTareWeightDateDataHoraNoInitial tare weighing date
GrossWeightDateDataHoraNoGross weight weighing date
TareWeightDateDataHoraNoTare weighing date
FoodWithdrawalDateDataHoraNoFeed withdrawal date
WaterWithdrawalDateDataHoraNoWater withdrawal date
CoopsQtyFloatNoNumber of coops
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
},
"AnimalReceivingInfoDataList": [
{
"AnimalReceivingNo": "TST4",
"AnimalReceivingCode": 28081,
"AnimalWeighingOrderNo": "161025",
"VehicleNo": "TR54",
"VehiclePlateNo": "AYO8D93",
"LotNo": "2603",
"FarmNo": "143840",
"ShedNo": 0,
"CatchCrewNo": "15",
"SlaughterDate": "2026-04-30",
"SlaughteredAnimals": 1500.0,
"DeadAnimalsQty": 0.0,
"HeadsQty": 1500.0,
"GrossWeight": 28000.0,
"TareWeight": 14150.0,
"NetWeight": 13850.0,
"Invoice": "",
"GTANo": 0.0,
"GTASeries": "",
"Shift": 2.0,
"CatchingStartDate": null,
"CatchingEndDate": null,
"CatchingTime": "00:00:00",
"DepartureDate": null,
"ArriveDate": null,
"HangingStartDate": "2026-04-30T21:36:26.000Z",
"HangingEndDate": "2026-04-30T21:36:28.000Z",
"InitialTareWeightDate": null,
"GrossWeightDate": "2026-04-30T14:30:50.000Z",
"TareWeightDate": "2026-04-30T17:30:50.000Z",
"FoodWithdrawalDate": null,
"WaterWithdrawalDate": null,
"CoopsQty": 300.0,
"AnimalPerCageQty": 0,
"TransportStartDate": null,
"TransportEndDate": null,
"HangingSequence": 1
}
]
}

🐞 Possible Errors

CodeMessage
GAR‑001The informed Animal Receiving was not found!
GAR‑002The "External Code of Live Animal 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!