Skip to content

productVariantBackInStockSubscribe

Mutationin Back in stock

Ask to be mailed once when a sold-out variant is back in stock. Only a variant that is sold out is remembered; the answer is the same either way.

Arguments

ArgumentTypeDescription
skuString!
emailEmailAddress!

Returns

ProductVariantBackInStockSubscribeResponse!

FieldTypeDescription
successBoolean!True for every well-formed request, so the answer tells nothing about the address or the variant.
productErrors[ProductVariantBackInStockSubscribeError!]Error details if the request was malformed

Example

mutation ProductVariantBackInStockSubscribe(
$sku: String!
$email: EmailAddress!
) {
productVariantBackInStockSubscribe(sku: $sku, email: $email) {
success
productErrors {
__typename
... on ValidationError {
message
}
}
}
}

The query selects the return type's fields two levels deep; pick the ones you need. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved

Used by

The storefront packages that send it, in these GraphQL documents: