SHOPIFY REST API - Abandoned Cart and Successful Payments HELP!

I work on a php application to track abandoned carts and further !

Questions;

  1. Is that request returns only abandoned carts ? GET /admin/api/2021-04/checkouts.json

  2. What request(s) I have to use to track that if the customer completed the abandoned cart.

My scenario like this; first get the abandoned carts, then get the successful transactions or orders or payments list (I don’t know) to compare the abandoned cart list in it. Eventually tracking the abandoned carts, then it ended by cancel, payment, forever abandoned.

Hi,

  1. Yes that’s the request

  2. I currently don’t remember what requests, maybe you have to track abandoned checkout’s order transactions or something like that using webhooks or something like that.

Maybe this can help you out.

Thank you for answering. For my 2nd question; i try for now orders request but there is no reference id or something, it only contains the same email address of the customer. Not very good idea but only way i guess.

If you use abandoned cart url in recovery attempts when retrieving orders, you can check referring_site field. It can even validate that the abandoned cart token is present in the referring_site url. It works in cases where the customer makes the payment directly after clicking on the link.