Get Units
Retrieve all units of measure from Last Mile Intelligence.
Operation
Section titled “Operation”getUnit
Resource
Section titled “Resource”unit
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Unit ID | string | No | - | Leave empty to retrieve all units |
Response
Section titled “Response”Success
Section titled “Success”[ { "id": "unit_gallon", "name": "Gallon", "abbreviation": "gal", "type": "volume", "isActive": true }, { "id": "unit_pound", "name": "Pound", "abbreviation": "lb", "type": "weight", "isActive": true }]{ "success": false, "error": "Failed to retrieve units"}Error Handling
Section titled “Error Handling”- Missing API Token: LMI credential is missing API token
- Permission Denied: API token lacks permission for this operation