> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# productBackInStockNotify

> Queues a back-in-stock send for every subscriber still waiting on this product. Sends asynchronously. When a send for this variant is already running, this call adds nobody and reports `ALREADY_RUNNING`. Returns null if no product with that id is owned by the caller.

**Required scopes:** [`campaigns_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-campaigns_write)

**Store must have one of:** `EMAIL_SMS`

## Arguments

**id** `ID!` *required*

The product to notify waiting subscribers about.

**newInventory** `Int!` *required*

The inventory count after the restock. Must be at least 1 and greater than `previousInventory`.

**previousInventory** `Int!` *required*

The inventory count before the restock. Must be zero or greater, and less than `newInventory`.

## Returns

**productBackInStockNotify** `[ProductBackInStockNotifyResult](/docs/api-reference/v3/reference/marketing/product-back-in-stock-notify-result)`

What this notify call did for one product.

**fields**

**outcome** `[ProductBackInStockNotifyOutcome!](/docs/api-reference/v3/reference/marketing/product-back-in-stock-notify-outcome)` *required*

Whether this call started a send, found one already running, or found nobody waiting.

**queuedNotificationCount** `Int!` *required*

Waiting subscribers handed to the send this call started. Zero unless `outcome` is `QUEUED`.

## Example

```graphql theme={null}
mutation {
  productBackInStockNotify(id: "...", newInventory: 10, previousInventory: 10) {
    outcome
    queuedNotificationCount
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.