Automatically complete delivery address on checkout page when getting estimated shipping rates via Ajax Cart API

We are using the AJAX API endpoint GET /{locale}/cart/shipping_rates.json to get the estimated shipping rates on the cart page.
Although the result returned by the API is correct, this call has unexpected side effects on the checkout page, where the delivery address and zip code are automatically populated with the parameter values ​​used in the last call. This behavior is confusing for customers who have requested estimated shipping rates for different locations, as it requires them to verify and modify the delivery address information.

The use of this endpoint is documented at:

You can watch this video with an example of the behavior described above: Issue-ZipCode 2024-12-03 173530.mp4 - Google Drive

Could you take a look at it? I have an open ticket with Shopify support about this issue and it was escalated internally with ID 53008050 and I haven’t had any updates on this since.

1 Like

Hi Rosanna,

Just to confirm, there is no POST request happening in this flow, just a GET request?

Yes, I can confirm that there is no POST request in this flow, only a GET request is made to the Shopify AJAX API to get the estimated shipping rates and consequently the delivery address is auto-completed on the checkout page with the parameters used in the request.

1 Like

Thanks Rosanna - so our team are looking into why this is happening, I’ll let you know what they find out asap.

Thanks! Let me know if there is any news on this.

HI! any update about this issue? Thank you!

Hi Rosanna,

The internal team that owns this space are planning to fix this behaviour but unfortunately I don’t have an ETA to share on when this will be resolved.