Search Documentation
Search for a documentation page...
Availability Notifications API
REST API endpoint for registering back-in-stock alerts on product variants.
Availability notifications let customers subscribe to back-in-stock alerts for out-of-stock variants. When the variant is restocked, the customer receives an email notification.
Create Availability Notification
Registers a back-in-stock alert for a product variant. Idempotent — if the same email is already subscribed for the same variant, the response indicates already_subscribed without creating a duplicate.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
email | string | Yes | Customer email to notify on restock |
name | string | No | Customer display name |
productVariantId | string (UUID) | Yes | Variant to watch for back-in-stock |
Response (201) — New Subscription
Response (200) — Already Subscribed
Error Responses
| Status | Description |
|---|---|
400 | Invalid request data (missing email, invalid UUID, etc.) |
404 | Variant not found or does not belong to this store |