Total_weight and current_total_weight converted from lbs to grams incorrectly

Hi,

total_weight and current_total_weight values are always sent in grams over the API, even when the shop’s product weight measurement is in lbs. The problem is they are sent as integers and the rounding, particularly for current_total_weight, is strange.

For example - we’ve seen an order weighing 0.5 lbs (226.796 grams) with a total_weight of 226 grams and current_total_weight of 225 grams.

Has anyone else encountered issues with this? Is there a reason why these values are sent as integers and rounded so strangely?

EDIT - we saw on the Shopify Slack community that this issue has been raised in support ticket 27566805. Seems it is pretty common!

Thanks!

Hey @Become

Many thanks for raising this! I can see our developers have noticed this discrepancy actually. It’s been raised internally to our development team, and if there’s a change with the rounding in this regard then it will be communicated on the Developer Changelog. Just thought I’d reach out and let you know!

1 Like

Are there any updates on this issue that can be provided at this time?