Skip to main content

SaleToggle

The event informs about the start or end of the sale.

Added in Saleor 3.5

DEPRECATED: this event will be removed in Saleor 4.0. Use PromotionStarted and PromotionEnded events instead.

type SaleToggle implements Event {
issuedAt: DateTime
version: String
issuingPrincipal: IssuingPrincipal
recipient: App
sale(channel: String): Sale
}

Fields

SaleToggle.issuedAt ● DateTime scalar miscellaneous

Time of the event.

SaleToggle.version ● String scalar miscellaneous

Saleor version that triggered the event.

SaleToggle.issuingPrincipal ● IssuingPrincipal union miscellaneous

The user or application that triggered the event.

SaleToggle.recipient ● App object apps

The application receiving the webhook.

SaleToggle.sale ● Sale object discounts

The sale the event relates to.

Added in Saleor 3.5
SaleToggle.sale.channel ● String scalar miscellaneous

Slug of a channel for which the data should be returned.

Interfaces

Event interface miscellaneous