@plentymarkets/shop-api / deleteNewsletterSubscription
Function: deleteNewsletterSubscription() ​
deleteNewsletterSubscription(
context
,params
):Promise
<Data
<NewsletterUnsubscribeResponse
>>
Method deleteNewsletterSubscription - unsubscribes user from newsletter
Parameters ​
• context: PlentysystemsIntegrationContext
• params: NewsletterParams
Returns ​
Promise
<Data
<NewsletterUnsubscribeResponse
>>
Remarks ​
- Calls /rest/io/customer/newsletter/
- This method is used to unsubscribe user from newsletter
Example ​
ts
const { data } = await useSdk().plentysystems.deleteNewsletterSubscription({
email: 'test@plentymarkets.com'
});