Could you please add unit-specific values to the Dimensions object of a shipping label? The current implementation provides a string with the unit included; however, it would be easier to work with the data if the API also provided alternative keys which provided strictly numerical values (e.g. integer or float).
Current Object Definition
Proposed Object Definition
TYPE
Dimensions
FIELDS
- weight String - String of the numerical value followed by unit of measure. UOM based on value in ShipHero settings. (e.g. ‘16.2500 oz’)
- weight_lb Integer - Float value in pounds (lbs)
- weight_oz Integer - Float value in ounces (oz)
- height String - String of the numerical value followed by unit of measure. UOM based on value in ShipHero settings. (e.g. ‘12.5 in’)
- height_in Integer - Float value in inches (in)
- height_cm Integer - Float value in centimeters (cm)
- width String - String of the numerical value followed by unit of measure. UOM based on value in ShipHero settings. (e.g. ‘12.5 in’)
- width_in Integer - Float value in inches (in)
- width_cm Integer - Float value in centimeters (cm)
- length String - String of the numerical value followed by unit of measure. UOM based on value in ShipHero settings. (e.g. ‘12.5 in’)
- length_in Integer - Float value in inches (in)
- length_cm Integer - Float value in centimeters (cm)
This solution would allow a more flexible way to work with the data that is less error prone than parsing a string to get the numerical value and potentially convert it to another unit.