Set Member Subscription Status to “SUBSCRIBED” During Registration

I am using custom code for member registration and would like to set the member’s subscription status to “SUBSCRIBED” as part of the registration process.

I’ve explored some workarounds that achieve this, but I am looking for a more direct and efficient solution. If anyone has insights on how to accomplish this natively within Wix, I would appreciate your guidance.

Thank you!

Hello! Take a look at the Marketing Consent API for options Velo Deps Wix Marketing V 2 Marketing Consent Introduction | Velo

Is this currently working? When I tried to use this (in backend code), I get an editor warning (Module ‘“wix-marketing.v2” has no exported member ‘marketingConsent’). When I tried to use it anyway, I get a runtime error trying to access one of the functions (Cannot read properties of undefined (reading ‘getMarketingConsentByIdentifier’)).

Response from Wix support: Please install @wix/marketing 1.0.124 MIT NPM package via Packages tab in velo code panel and use Get Marketing Consent SDK API instead because currently getMarketingConsent( ) Velo API is under development review and is not recommended for production.

Doing this resolved the issue.