Abandon cart API

Highlighted
Shopify Partner
2 0 0

I am using this API (/admin/checkouts.json) to get all checkouts.

After some time I need check weather particular cart was  open or close also I need Check-out URL to send mail.


I have checkoutID and all other information.

 How can I do that, please help

0 Likes
Highlighted
Shopify Partner
1840 177 711

Hi Zdeveloper

As far as I can tell, you have all data you need in the response of the /admin/checkouts.json API.

  • abandoned_checkout_url field that you can use when sending a recovery email
  • email field in the response document root or as part of the customer object
  • closed_at field will indicate wether the cart is closed (date) or still open (null)

Further, the endpoint supports the status parameter (filter by open or close).

Regarding checking the endpoint periodically, you will need some sort of backend scheduler or CRON-like job which is beyond the scope of Shopify platform itself and entirely up to you to implement.

That said, Shopify does offer this functionality out of the box. If you check in Setings > Checkout under the section Abandoned checkouts you can enable Automatically send abandoned checkout emails. Read more about that here. This feature also allows you to customize the email template used for recovery notifications.

Hope that helps!

Liked this post? You might also like our fantastic upsell apps Candy Rack and Candy Cart or offer free gifts with Gift Box. All made with ❤️  and care by Digismoothie
1 Like
Highlighted
Shopify Partner
2 0 0

Hi Karl
I am trying to check weather the option is available are not. I really appreciate your concern. Thank you for your Update.


cheers.

0 Likes
Highlighted
New Member
3 0 0

Any one let me know how to fetch latest record in abandon cart API

0 Likes