---
title: "Register back-in-stock request"
method: POST
path: "/back-in-stock"
tags: ["Products"]
---

# Register back-in-stock request

`POST /back-in-stock`

Registers a customer's request to be notified when a product (pushed via the Commerce API) is back in stock. When a later product upsert marks the product or variant in stock again, the ecommerce.back_in_stock event fires for waiting subscribers.

## Request body

- object
  - `productId` string, required — Your product identifier
  - `variantId` string — Your variant identifier. Defaults to productId for products without variants.
  - `productTitle` string — Product title snapshot. Defaults to the synced product title.
  - `variantTitle` string — Variant title snapshot. Defaults to the synced variant title.
  - `customer` CommerceCustomer, required
    - `email` string, email, required
    - `externalId` string — Customer-owned app/customer/user ID
    - `firstName` string
    - `lastName` string
    - `attributes` object — Custom subscriber attributes to merge into the profile. Synced to ClickHouse for segment filtering.

## Response `200`

Back-in-stock request registered

- object
  - `success` boolean
  - `subscriberId` string

## Other responses

- `400` — Failed to create subscriber
- `401` — Unauthorized
- `500` — Internal server error

---

[API](https://skmtc.net/sequenzy/apis/sequenzy-api.md) · [All operations](https://skmtc.net/sequenzy/apis/sequenzy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sequenzy/sequenzy-api/versions/af1cf9620482/schema)
