Create Labor Rate
Create a new labor rate in Last Mile Intelligence.
Operation
Section titled “Operation”createLaborRate
Resource
Section titled “Resource”laborRate
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Labor Rate Data | JSON | Yes | - | Labor rate object with required fields |
Labor Rate Data Fields
Section titled “Labor Rate Data Fields”| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Rate name |
| code | string | Yes | Short code identifier |
| ratePerHour | number | Yes | Hourly rate amount |
| overtimeMultiplier | number | No | Overtime rate multiplier |
| minimumHours | number | No | Minimum billable hours |
Response
Section titled “Response”Success
Section titled “Success”{ "id": "rate_new123", "name": "Weekend Labor", "code": "WKD", "ratePerHour": 95.00, "overtimeMultiplier": 2.0, "isActive": true, "createdAt": "2024-06-21T09:00:00Z"}{ "success": false, "error": "Validation failed", "details": { "ratePerHour": "Rate must be positive" }}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Duplicate Code: Rate with this code already exists
- Validation Error: Required fields missing or invalid
- Permission Denied: API token lacks permission for this operation