I have a very annoying issue with the DraftOrder API. When I apply a "shipping_line" to a DraftOrder and save it, the shipping_line will be included in the API response, but the "total_price" field will not reflect the new pricing with the shipping_line costs applied.
If I put a "sleep 1" and refetch the DraftOrder, the "total_price" will be updated with the actual pricing including "shipping_line" costs.
This is quite annoying, as we absolutely rely on Shopify API pricing, because we use the DraftOrder API in combination with Checkout API to create a more complex checkout system.
|3 hours ago|