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 Type | Example URL |
|---|---|
| POST | {{url_base}}/GetAnimalReceivingInfo |
| Example | http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"GetAnimalReceivingInfo" |
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| ReceivingNo | String(25) | No | External code of the Live Animal Receiving |
| AnimalWeighingOrderNo | String(25) | No | External code of the Weighing Order |
| BranchNo | String(25) | Yes | External code of the Branch |
| SlaughterStartDate | Data | No | Slaughter start date |
| SlaughterEndDate | Data | No | Slaughter end date |
Note
- One of the parameters
ReceivingNoorAnimalWeighingOrderNomust be filled - If the parameters
SlaughterStartDateandSlaughterEndDateare provided, the parametersReceivingNoandAnimalWeighingOrderNoare not necessary
Return
| Parameter | Type | Required | Description |
|---|---|---|---|
| WebServiceReturn | WebServiceReturn | Yes | Standard WebService response information in method execution |
| GetAnimalReceivingInfoDataList | GetAnimalReceivingInfoDataList | Yes | Object containing receiving information |
📝 GetAnimalReceivingInfoDataList Object
The GetAnimalReceivingInfoDataList object represents a list of Receiving/Weighing Order Information
Return Parameters
Parameter Type Required Description AnimalWeighingOrderNo String(25) No External code of the Weighing Order VehiclePlateNo String(10) No Vehicle plate VehicleNo String(25) No External code of the vehicle LotNo String(40) No Lot FarmNo String(25) No External code of the Property ShedNo Integer No Shed CatchCrewNo String(25) No Catch crew SlaughterDate DataHora No Slaughter date DeadAnimalsQty Float No Quantity of Dead Animals in Transport HeadsQty Float No Slaughtered heads GrossWeight Float No Gross Weight TareWeight Float No Tare NetWeight Float No Net Weight Invoice String(40) No Producer invoice GTANo Float No GTA number GTASeries String(5) No GTA series Shift Float No Shift number CatchingStartDate DataHora No Catching Start Date CatchingEndDate DataHora No Catching End Date CatchingTime String(8) No Catching Time DepartureDate DataHora No Farm Departure Date ArriveDate DataHora No Truck Arrival Date at Company HangingStartDate DataHora No Hanging Start Date HangingEndDate DataHora No Hanging End Date AnimalPerCageQty Integer No Quantity of Animals per Cage TransportStartDate DataHora No Transport start date TransportEndDate DataHora No Transport end date HangingSequence Integer No Hanging 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
| Code | Message |
|---|---|
| GAR‑001 | The informed Animal Receiving was not found! |
| GAR‑002 | The "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‑003 | The provided Slaughter End Date (SlaughterEndDate) parameter is less than the provided Slaughter Start Date (SlaughterStartDate) parameter! |