Orders created through API not sending confirmation emails

I am having an issue which order confirmation are not being sent to the customer. Below is my implimentation.

  • I am creating orders through: POST /admin/api/2023-07/orders.json.
  • I am passing an email into the ‘email’ field which successfully attaches the customer in the Shopify admin.
  • I am then marking the order as paid through: /admin/api/2023-07/orders/[ID]/transactions.json?source=external
  • I am marking the source as ‘external’

What am I doing wrong such that emails are not being sent? I have enabled all order notifications, inspected the email templates, and verified my email address and domain.

Thank you!

Hi Bc16,

When you’re creating the order with orders.json are you setting the send_receipt parameter to “true”? By default this is set to “false” which prevents order confirmations being sent.

Hope this helps!