Admin API - send_receipt & send_fulfillment_receipt not working

Highlighted
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

1 Like
Highlighted
Highlighted
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.

1 Like
Highlighted
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

0 Likes
Highlighted
New Member
2 0 0

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...

 

0 Likes