Skip to main content

subscribeRestock

Requires a customer (portal or buyer app) session.

Subscribe the buyer to a restock notification for a variant.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation SubscribeRestock($variantId: ID!) {
subscribeRestock(variantId: $variantId)
}

Variables:

{
"variantId": "id"
}

Response:

{
"data": {
"subscribeRestock": true
}
}
subscribeRestock(
variantId: ID!
): Boolean!

Arguments​

subscribeRestock.variantId ● ID! non-null scalar​

The ID of the product variant.

Type​

Boolean scalar​

The Boolean scalar type represents true or false.