Solved

Email customers via API

styrk
Shopify Partner
2 0 0

Hello,

I am using the REST API and was wondering if it is possible to email customers using that API? (or via graphql)

 

I need to send customers an email with a link to their invoice and would like to use the already provided templates etc.

 

Thank you

Accepted Solution (1)

Liam
Shopify Staff
2731 297 768

This is an accepted solution.

Hi Styrk,

 

You can't create an email and send it via the API, but you could set up your own custom email service and send emails based on merchant information, and triggered with webhooks. Would this work for you?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 2 (2)

Liam
Shopify Staff
2731 297 768

This is an accepted solution.

Hi Styrk,

 

You can't create an email and send it via the API, but you could set up your own custom email service and send emails based on merchant information, and triggered with webhooks. Would this work for you?

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

styrk
Shopify Partner
2 0 0

Hello Liam,

That's that i ended up doing and simply copy/pasting the email HTML from some of the templates in the admin. That was my main concern because i wanted my emails to look like all the other templates.