I want to send email to customer after uninstall app

Solved

I want to send email to customer after uninstall app

appaza
Shopify Partner
25 1 3

Hello Devs,
I need help for customer info query. 
for all customer 

await admin.rest.resources.Customer.all({
  session: session,
  ids: "207119551,1073339525",
});

Single customer 

await admin.rest.resources.Customer.find({
  session: session,
  id: 207119551,
});

I have to know, why need ids for all customer ? first we need to query all customer, then we can filter and find one customer. correct?
someone  you explain ? or share complete code for single customer info query?
Thanks
zoynul

Collaboration creates new things
Accepted Solution (1)
conversionist
Shopify Partner
78 8 9

This is an accepted solution.

Yes you can use this endpoint to get their email and then email them when they uninstall your app

Building 100 Shopify apps for that BMW M5 dream

Follow the journey at https://www.youtube.com/@conversinist
https://conversionist.online/

View solution in original post

Replies 8 (8)

sebastiandev
Shopify Partner
67 1 20

hmm, but why ? 🤔🤔

appaza
Shopify Partner
25 1 3

actually I want to send email to merchant when app uninstall

Collaboration creates new things

sebastiandev
Shopify Partner
67 1 20

you want to send emails to customers or merchant?

appaza
Shopify Partner
25 1 3

merchant

Collaboration creates new things

conversionist
Shopify Partner
78 8 9

You can use the APP_UNINSTALLED webhook to do that.

Building 100 Shopify apps for that BMW M5 dream

Follow the journey at https://www.youtube.com/@conversinist
https://conversionist.online/
appaza
Shopify Partner
25 1 3

Yes, I think first we need to collect merchant contact info. Correct?

Collaboration creates new things
conversionist
Shopify Partner
78 8 9

This is an accepted solution.

Yes you can use this endpoint to get their email and then email them when they uninstall your app

Building 100 Shopify apps for that BMW M5 dream

Follow the journey at https://www.youtube.com/@conversinist
https://conversionist.online/
appaza
Shopify Partner
25 1 3

Thanks

Collaboration creates new things