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: Don't send order confirmation email on drafOrderCreate

Don't send order confirmation email on drafOrderCreate

milan-stojanov
Shopify Partner
1 0 1

Is it possible to specify the flag to don't send order confirmation email to customer when creating the order by draftOrderCreate mutation https://shopify.dev/api/admin-graphql/2022-10/mutations/draftordercreate?

 

 

Replies 3 (3)

ShopifyDevSup
Shopify Staff
1453 238 527

Hey @milan-stojanov, by default, the draftOrderCreate mutation shouldn't send a confirmation email out. If you did want to send an invoice/confirmation email out, you'd have to use the draftOrderInvoiceSend mutation after the draft order has been created. 

 

Hope this helps - let us know if we can clarify anything on our end. 

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

ko-lem
Shopify Partner
15 0 10

When completing the draft order, is there a way to not send an order confirmation email?

ShopifyDevSup
Shopify Staff
1453 238 527

Hey @ko-lem

 

The draftOrderComplete mutation doesn't have a notify argument, so the order notifications will be determined by the store's notification settings. 

 

Hope that help, 

 

- Kyle G.

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