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?
Topic summary
The discussion addresses whether order confirmation emails can be suppressed when creating orders via Shopify’s GraphQL API.
Key Points:
-
draftOrderCreate mutation: Does not send confirmation emails by default. To send an invoice/confirmation, the
draftOrderInvoiceSendmutation must be used after draft creation. -
draftOrderComplete mutation: Does not have a
notifyargument to control email sending. Order notifications are determined by the store’s notification settings.
Outcome:
Email behavior is controlled at different stages—draft creation sends nothing automatically, while completion follows store-level notification configurations. No direct API flag exists to suppress emails during draft completion.
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.
When completing the draft order, is there a way to not send an order confirmation email?
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.