Update Order
Update an existing order in Last Mile Intelligence.
Operation
Section titled “Operation”updateOrder
Resource
Section titled “Resource”order
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Order ID | string | Yes | - | The ID of the order to update |
| Order Data | JSON | Yes | - | Fields to update |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "ord_abc123", "orderNumber": "ORD-2024-001234", "status": "scheduled", "scheduledDate": "2024-06-23", "updatedAt": "2024-06-21T10:30:00Z"}{ "success": false, "error": "Order not found", "orderId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Order Not Found: Order with specified ID does not exist
- Invalid State: Order cannot be updated in current state
- Validation Error: Invalid data format in update fields
- Permission Denied: API token lacks permission for this operation