@plentymarkets/shop-api / doSubscribeNotifyMe
Function: doSubscribeNotifyMe() ​
doSubscribeNotifyMe(
context,params):Promise<Data<NotifyMeSuccessResponse>>
Defined in: api/doSubscribeNotifyMe/index.ts:29
Method doSubscribeNotifyMe - Subscribe to back-in-stock notifications
Parameters ​
context ​
PlentysystemsIntegrationContext
params ​
Returns ​
Promise<Data<NotifyMeSuccessResponse>>
NotifyMeSuccessResponse
Remarks ​
- Calls /rest/storefront/stock/notification
- This method is used to subscribe to back-in-stock notifications
Example ​
ts
const { data } = await useSdk().plentysystems.doSubscribeNotifyMe({
email: 'test@plentymarkets.com',
lang: 'de',
variationId: 1234,
'cf-turnstile-response'?: [token];
});