Re: Can I avoid the order confirmation email?

Can I avoid the order confirmation email?

Ani4
Shopify Partner
1 0 0

We are trying to send a free gift to people that abandon checkout to incentivize purchases. To give away these products, we are creating orders through the API. But when generating the order, the user receives a purchase confirmation email. We want to prevent this from happening so they don't raise a flag that they haven't purchased anything. We already created a private application without activating the Storefront API, and we are setting the 'send_receipt' property to false, as indicated in the API documentation. However, the confirmation email continues to be sent.
Is it possible to avoid that email issue?

Replies 3 (3)

ShopifyDevSup
Shopify Staff
1453 238 511

Hey @Ani4 - thanks for getting in touch - that's definitely odd. Can you confirm if  the send_fulfillment_receipt value is also set to "false". If you're not including that field in the API call, it should default to "false" as well, but this could potentially be why an email is still being sent out. Another possibility to check is if there is a third party email integration set up on the shop - it's possible that this could be triggering an email to be sent out even if the flags are set properly on the Shopify end of things. 

If you can confirm both possibilities aren't affecting the emails, could you reach out to our Partner Support team through your Partner Dashboard? They'll be able to get in touch with one of our more technical teams after taking some information from you (X-Request-ID for specific API requests, etc and can assist with further troubleshooting). I'd just refer directly to this forum post in the email and it should help with context for that team.

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

 

Al | Shopify Developer Support 

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

sancuscommerce
Shopify Partner
17 1 2

I am having the same issue. Setting "send_receipt" and "send_fulfillment_receipt" to false or not including either still sends a receipt to the customer. I am trying to import orders from my client's existing store into shopify for historical and loyalty purposes.

 

How can I avoid sending the customer an email when using the API to import historical orders?

 

Here is how I have it included in the order json i am sending:

{
"order": {
"buyer_accepts_marketing": false,
"confirmation_number": "<removed>",
"contact_email": "<removed>",
"created_at": "2023-10-15T19:41:08-04:00",
"currency": "USD",
"send_receipt":false,
"send_fulfillment_receipt":false,
....
}
}
DylanJ
Tourist
4 1 1

Hi, did you manage to figure this out?