Create Checkout API with custom items, the "grams" are ignored and become 0

Hi Shopify Partners Team,

I am using the Create Checkout API (https://shopify.dev/api/admin-rest/2022-01/resources/checkout#[post]/admin/api/2022-01/checkouts.json)) and found a weird bug.

If I include a custom item in the “line_items” array, custom => true and with grams => 1000, after creating the checkout, the custom item will have a grams value of “0” , which causes Shipping rate calculation to be different, and this has made merchants using my app to lose money on shipping.

Can you take a look on this issue? I will really appreciate it.