Discussing APIs and development related to customers, discounts, and order management.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
As stated on the page,
A checkout is considered abandoned after the customer has added contact information, but before the customer has completed their purchase.
The cancellation reason for an order can be customer, declined, fraud, inventory, and other based on GraphQL page
I downloaded abandoned checkouts that don't have any information about an order, like the order id.
So, both data from abandoned checkout and order RESTful endpoints can not be correlated, right?
I want to do some analysis on abandoned checkout like the abandoned rate given a time period. Or, there are other ways around for my purposes
Solved! Go to the solution
This is an accepted solution.
Hi Guoguang,
Abandoned checkouts and orders are considered separate entities in the Shopify data model, and as you've found you cannot directly correlate an abandoned checkout with an order.
Once a checkout is abandoned, it remains in the abandoned state even if a customer later comes back and completes the purchase. When the purchase is completed, it creates a new order record. The abandoned checkout and the order will have different IDs, and there's no direct link between them in Shopify's system.
That said, the abandoned checkouts endpoint provides a lot of detail, including the customer's contact information, line items, and more. You can calculate the abandoned checkout rate by dividing the number of abandoned checkouts by the total number of checkouts (completed and abandoned) for a given time period.
Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me 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
This is an accepted solution.
Hi Guoguang,
Abandoned checkouts and orders are considered separate entities in the Shopify data model, and as you've found you cannot directly correlate an abandoned checkout with an order.
Once a checkout is abandoned, it remains in the abandoned state even if a customer later comes back and completes the purchase. When the purchase is completed, it creates a new order record. The abandoned checkout and the order will have different IDs, and there's no direct link between them in Shopify's system.
That said, the abandoned checkouts endpoint provides a lot of detail, including the customer's contact information, line items, and more. You can calculate the abandoned checkout rate by dividing the number of abandoned checkouts by the total number of checkouts (completed and abandoned) for a given time period.
Hope this helps!
Liam | Developer Advocate @ Shopify
- Was my reply helpful? Click Like to let me 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
Appreciate the ins and outs about how abandoned checkouts and orders works 👍
Hey Liam.
Abandoned checkout api works well, but unfortunately, there is no ability to to get abandoned checkout by id.
Is there any solution from Shopify side for this?
The graphQL abandoned checkout api has this ability but it doesnt have important data related to the checkout like the customer id and marketing concent.
Hey @OrDondy ,
Just taking a look at our documents here, customer is available on the abandonment object, so if the data exists for the customer, those details will be provided.
Here's the direct link: https://shopify.dev/docs/api/admin-graphql/2024-04/objects/Abandonment#field-abandonment-customer
Hope that helps,
- Kyle G.
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