Skip to main content

Update Vehicle in Animal Weighing Order

The PostUpdateVehicleAnimalWeighingOrder endpoint is responsible for updating a vehicle in an animal weighing order in the MIMS system.


How to update a vehicle in a weighing order

HTTP POST Request

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

Input Parameters

ParameterTypeRequiredDescription
AnimalWeighingOrderNoString(25)YesExternal code of the Weighing Order
VehiclePlateNoString(10)YesVehicle plate
TransporterNoString(25)YesExternal code of the transporter
DriverNoString(25)YesExternal code of the driver
RegisterDateDataHoraNoCRP registration date/time

Return

ParameterTypeRequiredDescription
WebServiceReturnWebServiceReturnYesStandard WebService response information in method execution

Request Example

curl --location 'http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostUpdateVehicleAnimalWeighingOrder"' \
--header 'Content-Type: application/json' \
--data '{
"AnimalWeighingOrderNo": "AWO12345",
"VehiclePlateNo": "ABC1234",
"TransporterNo": "T456",
"DriverNo": "D789",
"RegisterDate": "2025-02-07T10:30:00"
}'

Response Example

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

🐞 Possible Errors

CodeMessage
AWO‑005External Live Bird Receiving Code parameter (AnimalWeighingOrderNo) does not exist!
AWO‑006The Schedule Status "[Weighing Order Status]" does not allow update!