Development discussions around Shopify APIs
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
I am observing the same behaviour
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.
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
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...
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.
User | RANK |
---|---|
6 | |
5 | |
5 | |
5 | |
4 |
Learn these 5 things I had to learn the hard way with starting and running my own business
By Kitana Jan 27, 2023Would you love to unleash the unbridled power of the Google Shopping Channel into your sho...
By Gabe Jan 6, 2023How can you turn a hobby into a career? That’s what Emmanuel did while working as a wa...
By Skye Dec 30, 2022