Skip to main content
Question

Unable to use the "Find Order" action to work for draft orders in Shopify


I’m trying to make some automation from Shopify to Monday to keep track of Draft orders in Shopify.  However, I can’t seem to get “Find Order” to work for Draft Orders.  If I use “Get Order ID”, then I can pull up a draft order, but I don’t get any of the properties.  When I use “Find Order”, I can pull up the normal orders, but it won’t pull up the Draft Order.  Any suggestions?

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

5 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • June 16, 2024

Hi @weslby 

Maybe try using the Raw Query in Find Order

 


  • Author
  • New
  • June 16, 2024

@Troy Tessalone , I assume this is what you’re talking about. Same issue here… I’ve tried a million syntaxes.  It can still pull Order info, but not the Draft Orders.  Unless there’s a specific syntax that I can’t find, I’m not sure the Raw Query works either.

 

 


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • June 16, 2024

@weslby 

Follow the guidance of the field description for how to properly format.

e.g. the variable looks like it needs to be enclosed in double quotes “

 


  • Author
  • New
  • June 16, 2024

Thanks for the help @Troy Tessalone .  Unfortunately, still not working.  Same thing again, when I test it with a completed order, it works, but does not work with a Draft order #.


Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • June 16, 2024

@weslby 

Reference the link in the field description.

https://shopify.dev/docs/api/admin-graphql/2024-04/queries/orders#argument-query

 

status:”draft”

 

Shopify API

Search Draft Order by ID

  • API Request
  • Custom Action (with the help of AI)

 

?status=draft

curl -X GET "https://{store-name}.myshopify.com/admin/api/2023-01/draft_orders.json?status=draft" \
-H "Content-Type: application/json" \
-H "X-Shopify-Access-Token: {access-token}"

 

Get DraftOrder by ID

https://shopify.dev/docs/api/admin-graphql/2024-04/queries/draftOrder

You may need to specify which data points to return for the Shopify Order.