Dynamic shipping post purchase upsell

Shopify Expert
28 2 5

Hello there,


How can we get a dynamic shipping price set on Shopify for a post-purchase upsell product?

I can set add_shipping_line with a static price set in APP but if i do not add it, the response from Shopify returns null in addedShippingLine.


Is there a need to make any front API call to get the shipping price? or need any parameter pass with add_variant type? or any settings in the backend?