The storefront api does not return third party rates on a cart. If a shipping profile is configured with third party rates as well as flat rates, the flat rates will be returned by the storefront api, just not the third party rates.
If anyone from the Shopify side is able to share their insight, I am wondering if this is a bug or the expected behaviour?
It’s possible this may be intended - third-party shipping rates may be outside the scope of the Storefront API. It may instead be possible to store the rates as metafields instead and use the Admin API to access them?
Thanks for your response @Liam-Shopify. If the store ships globally I think it would be too much data to store in a metafield.
The /{locale}/cart/shipping_rates.json endpoint in the Cart API returns third party shipping rates, but I am not able to use it in this situation because it only provides rates for the cart id stored in the browser cookies.
If that endpoint is, I don’t see why the Storefront api wouldn’t. Is it possible to get a more concrete answer on if it is expected or a bug?