Skip to content

Get Unit

Retrieve a single unit of measure by its ID from Last Mile Intelligence.

getUnit

unit

ParameterTypeRequiredDefaultDescription
Unit IDstringYes-The ID of the unit to retrieve
{
"id": "unit_gallon",
"name": "Gallon",
"abbreviation": "gal",
"type": "volume",
"baseUnit": "liter",
"conversionFactor": 3.78541,
"isActive": true
}
{
"success": false,
"error": "Unit not found",
"unitId": "invalid_id"
}
  • Missing API Token: LMI credential is missing API token
  • Unit Not Found: Unit with specified ID does not exist
  • Permission Denied: API token lacks permission for this operation