Orders created through API not sending confirmation emails

Topic summary

Order confirmation emails aren’t being sent for API-created orders despite providing a customer email and enabling notifications. The flow: orders are created via POST /admin/api/2023-07/orders.json, then marked as paid via /admin/api/2023-07/orders/[ID]/transactions.json?source=external (source=external).

Key likely cause: The send_receipt parameter on order creation is not being set. By default, send_receipt=false, which prevents Shopify from sending the order confirmation email. Setting send_receipt=true when calling orders.json triggers the confirmation email. Marking the order as paid via the transactions endpoint does not override this default.

Outcome: A clear fix was suggested (set send_receipt=true). No confirmation yet from the original poster, so the resolution status is pending.

Summarized with AI on January 11. AI used: gpt-5.

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!