Activate now
Activation needs an approved live revision: the set must beinactive (a draft or pending-approval set → 409 invalid-state-transition). Activation and schedules need no change request (activate-provider-voucher-sets).
active at once and you receive the voucher-set-activated webhook. Deactivate now with :deactivate on an active or deactivation-scheduled set: it becomes inactive immediately and the next redemption attempt fails.
Schedule activation and deactivation
Rules:
- Instants need an offset, are stored in UTC and truncated to whole seconds, and may be at most 2 years ahead.
deactivateAtmust be in the future and afteractiveFrom; otherwise 422invalid-schedule.- In
:schedule-activation,deactivateAtabsent keeps the stored value,nullclears it, a value replaces it. - Schedules are applied within about a minute of the instant. The effective
statuschanges at the instant itself: reads, commands and redemptions already treat a due set asactive(orinactive). - A suspended set → 409
voucher-set-suspended; an archived set → 409voucher-set-archived.
Cancel a schedule
POST /provider/v1/voucher-sets/{voucherSetId}:cancel-schedule:
- on a
scheduledset: clearsactiveFromanddeactivateAt; the set isinactive; - on a
deactivation-scheduledset: clearsdeactivateAt; the set staysactive; - any other status → 409
invalid-state-transition(a set whoseactiveFromalready passed isactive, so there is nothing to cancel).
What consumers see
Consumers see a set only when it has an approved live revision, isscheduled, active or deactivation-scheduled, your partner is active, and AllRide has given them access to your sets. Its availability is:
Consumers receive catalog webhooks when a set becomes available, is scheduled, activated, deactivated or changes content, and they can redeem only while it is
active or deactivation-scheduled and has stock. Access per consumer is managed by AllRide; your availability field never means that a particular consumer has access.
You receive voucher-set-activated and voucher-set-deactivated for every activation and deactivation, whether triggered by you or by a schedule.