Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Abandoned Cart Json Api

Abandoned Cart Json Api

shalukumari
Tourist
14 0 2

Hi Team,
I'm unable to fetch the abandoned cart API because the "Shopify dev" provided abandoned checkout but I required abandoned carts those not purchased.
I have found only this JSON API only  
/admin/api/2022-10/checkouts.json
 Does someone have any idea about the "abandoned cart"  data using API?
Thanks
@Shopify @api 

Reply 1 (1)

ShopifyDevSup
Shopify Staff
1453 238 531

Hi @shalukumari - "abandoned checkouts" are how we refer to what some others may call "abandoned carts". The /admin/api/2022-10/checkouts.json endpoint you provided is the correct one to query through REST. 

You can confirm if the checkout is completed by looking at the completed_at field which would provide a timestamp of when the abandoned checkout has been paid for. If the checkout hasn't been completed, it would have a null value rather than a timestamp. There is a bit more information here in an older post from one of my colleagues. 

 

Hope this helps - please let us know if we can clarify anything on our end. 
 

Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog