Edit in GitHubLog an issue

unsubscribeProductAlertStockAll mutation

The unsubscribeProductAlertStockAll mutation removes all stock availability alert subscriptions for the logged-in customer across the current website. After calling this mutation, the customer no longer receives any stock alert email notifications.

This mutation requires a valid customer authentication token.

Syntax

Copied to your clipboard
mutation {
unsubscribeProductAlertStockAll: ProductAlertSubscriptionResult
}

Reference

The unsubscribeProductAlertStockAll reference provides detailed information about the types and fields defined in this mutation.

Example usage

The following example removes all stock alert subscriptions for the logged-in customer.

Request:

Copied to your clipboard
mutation {
unsubscribeProductAlertStockAll {
success
message
}
}

Response:

Copied to your clipboard
{
"data": {
"unsubscribeProductAlertStockAll": {
"success": true,
"message": "You will no longer receive stock alerts."
}
}
}

Errors

ErrorDescription
Customer is not logged in.
The request does not include a valid customer authentication token.
Unable to unsubscribe to all stock alert
An internal error occurred while removing the subscriptions.
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2026 Adobe. All rights reserved.