Ask to be e-mailed when a « Bientôt » category gets its first products
Guest write (a customer token, when present, only links the customer id — read from the TOKEN, never the body). The category must belong to the marketplace's MASTER tree, any status — 404 CATEGORY_NOT_FOUND otherwise (unknown id or a vendor's own category).
Idempotent per (marketplace, category, normalised e-mail — lower-cased, +tag dropped). The answer is the same 202 whether the subscription is new, already pending, already notified or re-armed after an unsubscribe: the caller never learns whether an address was known.
One e-mail is sent per subscription, by an hourly job, once the category's subtree holds ≥ 1 product the storefront shows (same count as GET /categories). Sending is OFF until the marketplace switches it on; subscriptions are accepted either way.
Auth: Public (no authentication); optional customer Bearer token.
Request Body
Responses
Subscription recorded (or already known — same answer).