Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

APIs to send customer email when customer make a transaction

APIs to send customer email when customer make a transaction

monaatiah
Tourist
3 0 1

We want to track so that whenever a customer makes a transaction
We can automatically send them an email asking them about their satisfaction using the third party system 

So we need the APIs to send the customer email to the third party we used when a customer makes a transaction

Replies 3 (3)

garyrgilbert
Shopify Partner
431 41 185

 

Not sure I understand what you need.. are you building an app, or have a store? 

The best way I can think of to accomplish what you are asking is to create a webhook for the orders/create. This will send the order information to the URL you specify then you can extract the customers email address and send it to the 3rd party so that they can send your satisfaction email.

 

See the webhooks documentation

https://shopify.dev/api/admin/rest/reference/events/webhook 

 

Cheers,

Gary

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
monaatiah
Tourist
3 0 1

Thank you for your reply

 

Yes I have store, but still have not created an app for this

Why do we need to create App for this 

Can we use shopify flow instead of creating webhook , because we are on Shopify plus 

garyrgilbert
Shopify Partner
431 41 185

Hi There,

Quite possibly. I haven't worked with Shopify flow yet personally but I know its pretty powerful in what it can do.

 

Cheers

- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution