Skip to content

Onsale

An onsale: a period when a product sells, the customers it is open to, and what it allows.

type Onsale {
audience: Audience
closedToAttendee: [TagType!]!
closedToPurchaser: [TagType!]!
demand: OnsaleDemand
flags: [OnsaleFlag!]
id: Guid!
openToAttendee: [TagType!]!
openToPurchaser: [TagType!]!
product: Product
ruleGroups: [RuleGroup!]!
simulatedQuotaLimits: [QuotaSimulation!]!
timezone: String!
validFrom: LocalDateTime
validTo: LocalDateTime
}

The audience created from the onsale, if there is one. Its counts are from its last refresh.

Closed to attendees with any of these tag types.

Closed to purchasers with any of these tag types.

The expected demand, which Kaizen users set. The onsales dashboard groups and orders onsales by it.

What the onsale allows, such as purchase or reserve. Null: all of them.

Unique identifier.

Open to attendees with one of these tag types only. Empty: open to all attendees.

Open to purchasers with one of these tag types only. Empty: open to all purchasers.

The product that the onsale belongs to. Null when the acting organisation cannot see the product.

The rule groups applied to the onsale.

The applicable limits: quota limits on a purchase in the onsale. They come from a simulated purchase of the saved product, with no channel or customer.

The time zone of validFrom and validTo, such as Europe/London.

When the onsale opens, as a local time. Null: no start limit.

When the onsale closes, as a local time. Null: no end limit.

Audience object ● BasicProduct object ● Donation object ● Event object ● LocalProduct interface ● MembershipType object ● Merchandise object ● Package object ● Product interface ● Remote object