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 5 (5)

Liam
Community Manager
3108 341 879

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
8 0 0

+1 for this feature request as well

rabraham
Shopify Partner
3 0 1

+1 for this feature as well, thanks!