@plentymarkets/shop-api / doSubscribeNewsletter
Function: doSubscribeNewsletter() ​
doSubscribeNewsletter(
context
,params
):Promise
<Data
<NewsletterSubscribeResponse
>>
Method doSubscribeNewsletter - to subscribe to the newsletter
Parameters ​
• context: PlentysystemsIntegrationContext
• params: NewsletterParams
Returns ​
Promise
<Data
<NewsletterSubscribeResponse
>>
Remarks ​
- Calls /rest/io/customer/newsletter
- This method is used to subscribe to the newsletter
Example ​
ts
const { data } = await useSdk().plentysystems.doSubscribeNewsletter({
email: 'test@plentymarkets.com',
firstName: 'John',
lastName: 'Doe',
emailFolder: 10
});