Can I check if an abandoned checkout URL is active in under 10 minutes?

  1. Go to store → select some items → checkout page → input shipping address → click Continue to shipping.
  2. Received the checkout/update event from webhook including the abandoned_checkout_url value (https://{store-name}.myshopify.com/60673655038/checkouts/ac/{cart_token}/recover?key=196a965937f0e899cb1617dd877554ac)

When I access the abandoned_checkout_url on the browser, it will redirect to the store’s homepage. But if I access this link after 10 mins since it was generated, the browser will redirect to the checkout page. I have some questions here:

  1. As a developer, can I have any API to call to check whether the Abandoned checkout URL is active or not (active meaning the abandoned_checkout_url was generated after 10 mins, so when I access this link, it will redirect to the checkout page) (good for cURL example to call on Postman including store password on the header)
  2. Do we have another way to reduce the active time of the abandoned_checkout_url manually from 10 mins to 1 or 2 mins

Thanks

Regarding your first question, Yes, you can use the Shopify Admin API to check the status of an abandoned checkout.

You can use the GET /admin/api/2021-07/checkouts/{checkout_id}/abandoned.json endpoint to retrieve the abandoned checkout details. The response will include a recovery_url field which will be null if the checkout is not recoverable. You can find more information about this endpoint in the Shopify API documentation.

Do we have another way to reduce the active time of the abandoned_checkout_url manually from 10 mins to 1 or 2 mins?

  • Unfortunately, it is not possible to manually reduce the active time of the abandoned checkout URL from 10 minutes to 1 or 2 minutes in Shopify. The 10-minute time limit is a fixed value and cannot be changed. However, you can use the PUT /admin/api/2021-07/checkouts/{checkout_id}/complete.json endpoint to complete the checkout programmatically if you detect that the customer has abandoned the checkout. This will prevent the customer from being able to complete the checkout using the abandoned checkout URL.