I make sure to set send_receipt to true for orders made through the API to ensure order confirmations are sent.
However, these e-mails don't show in admin panel for the user, nor in the events (/admin/orders/...id.../events.json or /admin/events.json - the last one shows only "order received" types...).
Basically, how can I KNOW that e-mails are sent? Which part of the API to use?
Also, here is a strange one: While order confirmation e-mail don't show in history for order nor in the events-part of the API, order cancellation e-mails are getting to the history directly on the order, and you can hit resend! That's exactly what I want also for orders made through the API. After all, that has to be possible?
I will appreciate a quick answer to this, as we're taking our solution active today, and I need to have my app finished. :)
Strange. I see the order confirmation email showing up in the order history. (See attached)
You might be able to collect a list of sent emails by looking in order events.: https://docs.shopify.com/api/event#orders
This might allow you to scan through a list of events for a set of orders and pull out the mail_sent events. I don't think you can get the content of the emails but you at least you will have the list of emails sent.
Thank you for the reply! :)
Are your orders made through the API or normal POS / Web? I get the order confirmations under history for the orders made through web (checkout) or POS on iPad/iPhone, but NOT for my API orders.
My API orders are made with the parameter send_receipt => true (PHP code, that is), and the orders are made and working, the order confirmations are sent - but they don't end up in history.
I will investigate your suggestion, but I tried this allready:
Regular attempt through the API documentation at your link:
($ordreid = my order's id (API id, not order_number or name))
This only results in order created events.
I also tried this after a tip:
I can't find the documentation for this - I actually got all events here, but still NOT the order confirmations really sent to me/customer after I made the order through the API (not POS/web).
The orders I referred to are made with through the web.
It's possible that order creation though the web/POS has different functionality (creation of certain events) than that of through the API. You might need to contact Shopify directly to see if this is the case.