Skip to content

Create Order

Create a new order in Last Mile Intelligence.

createOrder

order

ParameterTypeRequiredDefaultDescription
Order DataJSONYes-Order object with required fields
FieldTypeRequiredDescription
customerIdstringYesCustomer ID
shipToIdstringYesShip-to location ID
scheduledDatestringNoScheduled delivery date
itemsarrayYesArray of order items
notesstringNoOrder notes
{
"id": "ord_new123",
"orderNumber": "ORD-2024-001236",
"customerId": "cust_xyz789",
"shipToId": "ship_def456",
"status": "pending",
"createdAt": "2024-06-21T09:00:00Z"
}
{
"success": false,
"error": "Validation failed",
"details": {
"customerId": "Customer not found"
}
}
  • Missing API Token: LMI credential is missing API token
  • Customer Not Found: Customer ID does not exist
  • Ship-To Not Found: Ship-to location does not exist
  • Validation Error: Required fields missing or invalid
  • Permission Denied: API token lacks permission for this operation