How can customers subscribe and receive email notifications in Shopify?

how to subscribe customer in shopify using shopify rest api or shopify storefront api? and how to subscribed customer get email notification in shopify?