Create Quick Order
Create a new quick order in Last Mile Intelligence.
Operation
Section titled “Operation”createQuickOrder
Resource
Section titled “Resource”quickOrder
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Quick Order Data | JSON | Yes | - | Quick order object with required fields |
Quick Order Data Fields
Section titled “Quick Order Data Fields”| Field | Type | Required | Description |
|---|---|---|---|
| customerId | string | Yes | Customer ID |
| shipToId | string | Yes | Ship-to location ID |
| productId | string | Yes | Product ID |
| requestedQuantity | number | No | Requested quantity |
| priority | string | No | Priority (low, normal, high, urgent) |
| requestedDate | string | No | Requested delivery date |
Response
Section titled “Response”Success
Section titled “Success”{ "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" }}Error Handling
Section titled “Error Handling”- 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