Skip to main content
Version: 3.x

VoucherCreated

Event sent when new voucher is created.

Added in Saleor 3.4
type VoucherCreated implements Event {
issuedAt: DateTime
version: String
issuingPrincipal: IssuingPrincipal
recipient: App
voucher(channel: String): Voucher
}

Fields

VoucherCreated.issuedAt ● DateTime scalar

Time of the event.

VoucherCreated.version ● String scalar

Saleor version that triggered the event.

VoucherCreated.issuingPrincipal ● IssuingPrincipal union

The user or application that triggered the event.

VoucherCreated.recipient ● App object

The application receiving the webhook.

VoucherCreated.voucher ● Voucher object

The voucher the event relates to.

VoucherCreated.voucher.channel ● String scalar

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

Interfaces

Event interface


Was this page helpful?