SaleCreated
Event sent when new sale is created.
Added in Saleor 3.2DEPRECATED: this event will be removed in Saleor 4.0. Use PromotionCreated
event instead.
type SaleCreated implements Event {
issuedAt: DateTime
version: String
issuingPrincipal: IssuingPrincipal
recipient: App
sale(channel: String): Sale
}
Fields
SaleCreated.issuedAt
● DateTime
scalar
Time of the event.
SaleCreated.version
● String
scalar
Saleor version that triggered the event.
SaleCreated.issuingPrincipal
● IssuingPrincipal
union
The user or application that triggered the event.
SaleCreated.recipient
● App
object
The application receiving the webhook.
SaleCreated.sale
● Sale
object
The sale the event relates to.
SaleCreated.sale.channel
●String
scalarSlug of a channel for which the data should be returned.