Subscribe to news letter using API

Subscribe to news letter using API

techboas
Visitor
1 0 0

I'm building an app with shopify as headless CMS, I need to make a part where a visitor can subscribe to our news letter, two cases:

-When client has account, I can subscribe using storefront API to update 'acceptsMarketing' and set it to true so that marketing apps can use it to email our campaigns.

-When it's a visitor, I'm not sure how to do this, is there a way to subscribe even a visitor?

Replies 0 (0)