Skip to content

Get Order

Retrieve a single order by its ID from Last Mile Intelligence.

getOrder

order

ParameterTypeRequiredDefaultDescription
Order IDstringYes-The ID of the order to retrieve
{
"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"
}
  • 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