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 Type | Example URL |
|---|---|
| POST | {{url_base}}/PostUpdateVehicleAnimalWeighingOrder |
| Example | http://seuIPePorta/datasnap/rest/RESTWebServiceMethods/"PostUpdateVehicleAnimalWeighingOrder" |
Input Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| AnimalWeighingOrderNo | String(25) | Yes | External code of the Weighing Order |
| VehiclePlateNo | String(10) | Yes | Vehicle plate |
| TransporterNo | String(25) | Yes | External code of the transporter |
| DriverNo | String(25) | Yes | External code of the driver |
| RegisterDate | DataHora | No | CRP registration date/time |
Return
| Parameter | Type | Required | Description |
|---|---|---|---|
| WebServiceReturn | WebServiceReturn | Yes | Standard 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
| Code | Message |
|---|---|
| AWO‑005 | External Live Bird Receiving Code parameter (AnimalWeighingOrderNo) does not exist! |
| AWO‑006 | The Schedule Status "[Weighing Order Status]" does not allow update! |