Admin API - send_receipt & send_fulfillment_receipt not working

Alexandre_Bouch
Tourist
6 0 4

Hey there!

I've been running into an issue where send_receipt & send_fulfillment_receipt on POST /admin/orders.json does not seem to have any effect.

In my case, orders created via the API always send emails regardless of having this within the payload.

{
  send_receipt: false, // Doesn't work
  send_fulfillment_receipt: false, // Doesn't work
}

As per the documentation https://help.shopify.com/api/reference/order#create is should default to false anyway...

In that a known issue? Am I missing something?

Cheers

Replies 5 (5)
Kevin_C1
Tourist
9 0 2
Alexandre_Bouch
Tourist
6 0 4

Kevin, turns out that having the storefront api enabled on your app makes the api ignore the `send_receipt` & `send_fufillment_receipt` flags. Don't ask me why, only solution I found was to turn off the storefront api on my private app.

malexander
New Member
1 0 0

I tried your solution of turning off the storefront API. It makes no difference. 

send_receipt - sends emails

send_fufillment_receipt - does not send emails

ScaledFury
Tourist
3 0 1

Interestingly, I just had a bug that involved duplicate confirmations being sent when we created an order via API and also had the Storefront API enabled.  Sure enough, disabled the Storefront API and viola.   Never even crossed my mind to try that, this is clearly a bug...

 

Bill6
Shopify Partner
46 0 8

This is still a bug.  Will anyone at Shopify ever look at this and fix.  Its a huge obstacle for importing historical orders that include the customer's email.