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

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

soulchild37
Shopify Partner
194 9 58

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.jso... 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.

Spent too much support time dealing with order cancellation request from customer? Wouldn't it be good if customer can cancel order on their own without bugging your support? Try out Cancellable app! https://apps.shopify.com/cancellable . I also write articles about store customization that can improve your customer shopping experience here : Yagi Software Blog
Replies 0 (0)