Email sent when order created by API and flag send_receipt not set (default false)

Email sent when order created by API and flag send_receipt not set (default false)

jankadlec
Shopify Partner
14 0 1

When we create new order using API, Shopify sends order confirmation to the customer - despite flag send_receipt is not set (defaults to false).

 

One specific to the API call is that we copy the order name of some existing order + adding some suffix, so the both orders has the same number. But we are creating the JSON data from scratch, not reusing the existing order JSON

 

The operation is basically to "edit" already paid order

 

Any idea why the email is emmited please?

 

Thank you in advance

 

Replies 2 (2)

Jason
Shopify Partner
11207 226 2319

Did you see this note in the api docs? Sound like it relates to you?

If you're working on a private app and order confirmations are still being sent to the customer when send_receipt is set to false, then you need to disable the Storefront API from the private app's page in the Shopify admin.

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★
jankadlec
Shopify Partner
14 0 1

Hi @Jason 

 

Thank you fo rthe response 

 

yes, I seen that - it's public unpublished app - does it falls to the same category please? 

 

I did not find the option where to disable Storefront API tbh

 

Thank you in advance

 

Jan