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.
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...
By Ollie May 25, 2023Summary of EventsBeginning in January of 2023, some merchants reported seeing a large amo...
By Trevor May 15, 2023With 2-Factor Authentication being required to use Shopify Payments, we’re here to help yo...
By Imogen Apr 26, 2023