Skip to content

Create Quick Order

Create a new quick order in Last Mile Intelligence.

createQuickOrder

quickOrder

ParameterTypeRequiredDefaultDescription
Quick Order DataJSONYes-Quick order object with required fields
FieldTypeRequiredDescription
customerIdstringYesCustomer ID
shipToIdstringYesShip-to location ID
productIdstringYesProduct ID
requestedQuantitynumberNoRequested quantity
prioritystringNoPriority (low, normal, high, urgent)
requestedDatestringNoRequested delivery date
{
"id": "qord_new123",
"customerId": "cust_xyz789",
"shipToId": "ship_def456",
"productId": "prod_fuel001",
"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