Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Re: How to retrieve abandonment/abandoned checkout Ids in GraphQL?

Solved

How to retrieve abandonment/abandoned checkout Ids in GraphQL?

Zacker
Shopify Partner
2 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
1453 238 518

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

Replies 2 (2)

ShopifyDevSup
Shopify Staff
1453 238 518

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

yodankful
Shopify Partner
18 0 11

Thanks for letting them know! Yeah this would be amazing to have in Graph QL since you could hopefully query by Abandonment_type and get only carts as opposed to checkouts