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: Prevent confirmation email when creating an order via graphql

Prevent confirmation email when creating an order via graphql

fullmetal
Shopify Partner
13 0 2

When using draftOrderComplete even with the email parameter set to a dummy email and immediately archiving the order, a confirmation email is sent to the customer. Is there any way to suppress this email?

Replies 6 (6)

Liam
Community Manager
3108 342 884

Hi Fullmetal,

 

After looking into this more it looks like Shopify's API doesn't provide a direct method to prevent an order confirmation email from being sent when you complete a draft order, even if you archive the order immediately. This is due to the fact that completing a draft order automatically triggers the order confirmation email.

 

I totally do see the benefit of this however so I'll create a feature request to allow API access to adjust rules for how email notifications can be managed. 

 

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

fullmetal
Shopify Partner
13 0 2

That would be great. Thank you!

MichaelSellintu
Shopify Partner
7 0 1

+1 for this feature request as well

The only limitation is your own imagination.
Sibari
Shopify Partner
9 0 0

+1 for this feature request as well

rabraham
Shopify Partner
3 0 1

+1 for this feature as well, thanks!

CodeMan82
Shopify Partner
2 0 0

+ 1 for this feature!!