Skip to main content
offer.availability.changed fires when availability flips between InStock and OutOfStock. Use it for back-in-stock and sold-out alerts. Subscribe with this event from Setup. A subscription with a selection currently receives one of these for every variation flip on that offer in the subscription’s locale, whichever size or color moved. subject.selection is the configuration you pinned. previous and current are the availability before and after the flip.
data.subject names the offer. The id stays the same when a delivery is retried.

Payload reference

Full schema for offer.availability.changed.