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.
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.
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.