REST Admin API send order status notification email to customers

Highlighted
Shopify Partner
12 2 0

I want to be able to automate the customer service handling for our store. We are finding as our sales double so does the amount of time we spend responding/sending emails from/to our customers.

 

One particular area that we haven't yet automated is sending our customers an order status notification especially for those orders that are only partly stocked i.e. customer ordered 5 units and we only have 4 in stock (due to damaged stock etc). In this scenario we want to be able to do 3 things:

 

1. Send an email to all customers whose orders are partially stocked advising which order items are fully stocked and which ones aren't and offering them the choice of either a FULL REFUND/PARTIAL REFUND & SHIP.

2. Embed a button in the email allowing the customer to notify us which option they chose.

3. Refund accordingly using the Orders Refund API (/admin/api/2020-01/orders/#{order_id}/refunds.json)

 

I know how to do step 3. But I can't see anywhere in the REST API that will allow me to do steps 1 and 2.

 

Is this possible? 

0 Likes
Highlighted
Shopify Staff
Shopify Staff
624 102 114

Hey @gdastgir ,

 

There is no functionality within the Shopify REST Admin API right now for sending emails to customers automatically. 

 

What you could do instead is build an app that is subscribed to the Webhook topic of order/create or fulfillments/create, so that your app will know any time a new order comes in and if that order potentially cannot ship due to stocking issues. Read more about Webhooks here:https://shopify.dev/docs/admin-api/rest/reference/events/webhook. At that point where your app gets that notification, it can use some type of e-mail integration to send that email and button from Steps 1 and 2 out to the customer

 

Hassain | Developer Support Specialist @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes
Highlighted
Shopify Partner
12 2 0
My app already knows (from our ERP system that injests the Shopify orders)
when a new order comes in if that order potentially cannot ship due to
stocking issues.

There are plenty of email libraries I can use to send/receive emails so
that isn't an issue either.

It's just better in my opinion to be able to send these emails to our
customers and other functions related to our store from within the Shopify
ecosystem. But if that's not possible no bother.

Thanks
0 Likes