Products
Register back-in-stock request
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.
post/back-in-stock
Request body
Example request
{
"productId": "SKU-PROTEIN-1KG",
"variantId": "SKU-PROTEIN-1KG-VANILLA",
"customer": {
"email": "buyer@example.com",
"externalId": "user_123",
"firstName": "Jane",
"lastName": "Doe",
"attributes": {
"acquisitionChannel": "tiktok",
"country": "US"
}
}
}Response
Back-in-stock request registered
Example response
{
"success": true
}