New Shopify Certification now available: Liquid Storefronts for Theme Developers

How to retrieve abandonment/abandoned checkout Ids in GraphQL?

Solved
Zacker
Shopify Partner
1 0 0

According to admin-graphql/2023-01/objects/Abandonment#queries , "Abandonment" objects can be retrieve via ID or by "AbandonedCheckoutId".

 

I can retrieve the abandoned checkout IDs from the REST API, but how can I do the same for GraphQL?
Is there any way to retrieve abandoned checkouts? Or the Abandonment IDs to use for the former query?

Accepted Solution (1)
ShopifyDevSup
Shopify Staff
Shopify Staff
1203 190 420

This is an accepted solution.

Hi @Zacker 👋

 

At this time, Admin GraphQL doesn't support querying a list of abandoned checkouts. As you mentioned, the course of action would be to use the Admin REST endpoint for abandoned checkouts here.


We'll be sure to let the product team know that it would be valuable to have a parallel function in GraphQL.

 

Hope that helps!

 

 

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

View solution in original post

Reply 1 (1)
ShopifyDevSup
Shopify Staff
Shopify Staff
1203 190 420

This is an accepted solution.

Hi @Zacker 👋

 

At this time, Admin GraphQL doesn't support querying a list of abandoned checkouts. As you mentioned, the course of action would be to use the Admin REST endpoint for abandoned checkouts here.


We'll be sure to let the product team know that it would be valuable to have a parallel function in GraphQL.

 

Hope that helps!

 

 

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