Get Order
Retrieve a single order by its ID from Last Mile Intelligence.
Operation
Section titled “Operation”getOrder
Resource
Section titled “Resource”order
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Order ID | string | Yes | - | The ID of the order to retrieve |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "ord_abc123", "orderNumber": "ORD-2024-001234", "customerId": "cust_xyz789", "shipToId": "ship_def456", "status": "scheduled", "scheduledDate": "2024-06-22", "items": [ { "productId": "prod_fuel001", "quantity": 500, "unit": "gallon" } ], "totalAmount": 1729.50, "createdAt": "2024-06-20T14: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
- Permission Denied: API token lacks permission for this operation