Skip to main content

Entry Weighing


Entry Weighing Registration

The PostAnimalReceiving endpoint is responsible for registering a new entry weighing (animal receiving) in the MIMS system and can be viewed on screen BLR008.


How to register an entry weighing

HTTP POST Request

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

Input Parameters

ParameterTypeRequiredDescription
ReceivingNoString(25)YesExternal code of the live animal receiving
BranchNoString(25)YesExternal code of the branch
AnimalWeighingOrderNoString(25)YesExternal code of the weighing order
LotNoString(25)NoPoultry lot
ReceivingDateDataHoraYesTruck entry date
VehiclePlateNoString(10)NoVehicle plate
VehicleComplementyPlateNoString(10)NoVehicle complementary plate
SupplierNoString(25)NoExternal code of the integrated (supplier)
FarmNoString(25)NoExternal code of the property
AnimalLineageNoString(25)NoExternal code of the lineage
TransporterNoString(25)NoExternal code of the transporter
DriverNoString(25)NoExternal code of the driver
AnimalMaterialNoString(25)NoExternal code of the animal material
CatchMethodNoString(25)NoExternal code of the catch method
CatchCrewNoString(25)NoExternal code of the catch crew
SecondCatchCrewNoString(25)NoExternal code of the second catch crew
AnimalQtyIntegerYesQuantity of animal heads in load
VehicleGrossWeightFloatYesTruck gross weight
CageQtyIntegerNoCage quantity
AnimalAgeIntegerNoLive animal age in days
NotesString(200)NoAnimal receiving notes
AnimalSexTypeAnimalSexTypeNoEnumerator with possible values for Animal Sex: asNotAssigned (Not Assigned), astMixed (Mixed), astFemale (Female) or astMale (Male)
LeavingFarmDateDataHoraNoDate/time when the truck left the integrated
SlaughterDateDataHoraNoSlaughter date/time
CatchStartDateDataHoraNoCatch start date/time
CatchEndDateDataHoraNoCatch end date/time
InvoiceNumberIntegerNoAnimal receiving invoice number
GtaNumberIntegerNoGTA code
GtaSeriesString(25)NoGTA series number
ShedListShedItemListNoList of sheds

📝 ShedList Object

The ShedList object represents an item in the list of sheds associated with an animal receiving in the MIMS system.

Input Parameters

ParameterTypeRequiredDescription
ShedNoString(15)NoExternal code of the shed
AnimalQtyIntegerYesQuantity of animal heads in the shed
FoodRemovalDateDataHoraNoFood removal date/time


Return

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information in method execution
ReceivingCodeIntegerYesInternal animal receiving code generated in the MIMS system

Request Example

curl --location --request POST '{{url_base}}/PostAnimalReceiving' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{
"ReceivingNo": "REC001",
"BranchNo": "101",
"AnimalWeighingOrderNo": "REC001234",
"LotNo": "150481-222",
"DocumentNo": "1234",
"ReceivingDate": "2024-02-07T08:00:00",
"VehiclePlateNo": "ABC1234",
"VehicleComplementyPlateNo": "XYZ5678",
"SupplierNo": "F12345",
"FarmNo": "1",
"AnimalLineageNo": "LIN001",
"TransporterNo": "TRP001",
"DriverNo": "DRV001",
"AnimalMaterialNo": "MAT001",
"AnimalQty": 1000,
"VehicleGrossWeight": 15000.5,
"CageQty": 50,
"AnimalAge": 45,
"Notes": "Recebimento sem intercorrências.",
"CatchMethodNo": "CM001",
"CatchCrewNo": "CC001",
"AnimalSexType": "astMixed",
"LeavingFarmDate": "2024-02-07T04:30:00",
"SlaughterDate": "2024-02-07T12:00:00",
"ItemList": [
{
"MaterialNo": "1000",
"Qty": 500
},
{
"MaterialNo": "1001",
"Qty": 500
}
]
}

Response Example

{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
},
"ReceivingCode": 98765
}

🐞 Possible Errors

CodeMessage
AAR‑001The provided External Live Animal Receiving Code parameter (ReceivingNo) already exists!
AAR‑002External Supplier Code parameter (SupplierNo) belongs to a supplier that is not of type "Integrated". Operation not allowed!
AAR‑003External Transporter Code parameter (TransporterNo) belongs to a supplier that is not of type "Transporter". Operation not allowed!
AAR‑004The status of the informed "AnimalWeighingOrderNo" ("[value sent in request]") does not allow a Receiving. Operation not allowed!


Entry Weighing Deletion

The PostDeleteAnimalReceiving endpoint is responsible for executing the deletion of an entry weighing in the MIMS system.


How to delete an entry weighing

HTTP POST Request

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

Input Parameters

ParameterTypeRequiredDescription
ReceivingNoString(25)YesExternal code of the animal receiving
ErrorIfNotFoundBooleanNoReturns error if the informed animal receiving does not exist in the database

Return

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information in method execution

Request Example

curl --location --request POST '{{url_base}}/PostDeleteAnimalReceiving' \
--header 'Content-Type: application/json;charset=UTF-8' \
--data-raw '{
"ReceivingNo": "12345",
"ErrorIfNotFound": true
}'

Response Example

{
"WebServiceReturn": {
"Status": "wrsSuccess",
"ErrorCode": "",
"Message": "",
"Actor": "",
"ReturnQuestion": null
}
}