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.

Create order via GraphQL without sending order confirmation email

Create order via GraphQL without sending order confirmation email

ronald_g
Explorer
80 2 16

Hi,

 

Is there a way to create an order via draft order (i.e. draftOrderCreate and draftOrderComplete ) that includes an email address, but doesn't send an order confirmation email? There seems to be a send_receipt flag in REST Create an order but there doesn't seem to have a counterpart in GraphQL (Of course there's no orderCreate GraphQL). If we include email: xxx or purchasingEntity: {customerId: xxx} in draftOrderCreate, when draftOrderComplete is run to create an order, Shopify automatically sends an order confirmation. We haven't found a way around that.

 

Any ideas?

Reply 1 (1)

SomeUsernameHe
Shopify Partner
517 57 110

No, unfortunately from my experience, that is not possible with GraphQL.

Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee