How to get transactions for abandoned checkouts

Can I retrieve payment failure information from abandoned checkouts using Shopify’s API?

https://shopify.dev/docs/api/admin-rest/2023-07/resources/transaction

I can get transactions for orders using the API , but not for abandoned checkouts.

Hey there! I’m sure you’ve found a solution already, but for other readers and their edification, I believe the URL will need to adjust:

https://{shop}.myshopify.com/admin/api/2023-07/checkouts.json

  1. Shopify Store Domain: Replace {shop} with your Shopify store’s domain.

  2. API Version: The 2023-07 segment in the URL represents the API version. You should use the most current version of the API or the one that best suits your needs. Check Shopify’s API documentation for the latest or appropriate version.

  3. Endpoint: The /admin/api/{version}/checkouts.json is the endpoint for accessing checkout information.

  4. Query Parameters: Depending on your requirements, you can add query parameters to filter or limit the results. For example, you might want to limit the results to only checkouts that were updated after a certain date or within a certain time frame.