Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
I'm trying to clear a user's cart when they abandon their checkout by closing the tab or navigating to another website url during the checkout flow. As an aside, in our store (Shopify Plus), the user doesn't actually make it to the /cart page as we take them straight to checkout.
In Flow, the Send HTTP Request block is filled out like this:
I understand that the /cart/clear api is unauthenticated and doesn't need any additional headers or data in the body. When the conditions are met, the Flow passes and even the Send HTTP Request succeeds. However, for the customer, if they are on our website and refresh the browser, the Cart icon still shows that there is quantity from their previous checkout; further, the customer could proceed with their previous abandoned checkout along with the same item quantity still in their cart. What am I doing wrong? Suggestions and feedback are welcome.
Not sure what API you are calling there but if you are redirecting to a shopify API, you might have better luck asking in a more general API topic on the community.
If you want to use authentication in a request, you can use the Send HTTP request action from the Flow Companion app. This action allows you to configure authentication in several ways.
Hi Yuka! I've already attempted to do that, but it doesn't seem to work. Based off observation, the user's cart is cleared if they visit the /cart/clear url directly, or if they click a button on the frontend that directs them to that url. Honestly, I feel like it *should* work with the Send HTTP Request Flow action, but I've tested countless runs and it never clears the cart.
Use something like Postman to figure out the API call details first as it will enable more rapid experimentation and visibility into issues
Thanks for the tip! Also, for those wondering what the AJAX api requirements are:
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025