VoucherCreated Object
Event sent when new voucher is created.
type VoucherCreated implements Event {
issuedAt: DateTime
version: String
issuingPrincipal: IssuingPrincipal
recipient: App
voucher(channel: String): Voucher
}
Fields
VoucherCreated.issuedAt
● DateTime
scalar miscellaneous
Time of the event.
VoucherCreated.version
● String
scalar miscellaneous
Saleor version that triggered the event.
VoucherCreated.issuingPrincipal
● IssuingPrincipal
union miscellaneous
The user or application that triggered the event.
VoucherCreated.recipient
● App
object apps
The application receiving the webhook.
VoucherCreated.voucher
● Voucher
object discounts
The voucher the event relates to.
VoucherCreated.voucher.channel
● String
scalar miscellaneous
Slug of a channel for which the data should be returned.