Discussions

Ask a Question
Back to All

Shipment total_actual_weight is unprecise

The issue happens because EasyShip API returns weight value in kilograms rounded up to 2 decimals (eg. 0.11KG).
We can immediately notice that the precision is up to "decagrams", while we need it up to grams.

To reproduce, do the following:

  1. Update a shipment's weight to 0.25lb (0.113398KG) through the API.
  2. Check the weight in the user interface. It's 0.25lb. Good!
  3. Now, get shipment through the API and notice the weight will be 0.11KG. This weight is 3 grams lighter. Bad!
  4. Convert the 0.11KG to pounds, I end up with 0.2425086862202155 lb, which is much different from the initial 0.25 lb.

Considering the API is returning the weight as KG, can you return more precise number? The current implementation precision is up to decagrams producing significant difference in the set and returned weight value.