Skip to content

Get Units

Retrieve all units of measure from Last Mile Intelligence.

getUnit

unit

ParameterTypeRequiredDefaultDescription
Unit IDstringNo-Leave empty to retrieve all units
[
{
"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"
}
  • Missing API Token: LMI credential is missing API token
  • Permission Denied: API token lacks permission for this operation